Skip to content

Commit 294de15

Browse files
committed
Rename to nginx.{kill,start}
The previous task names were unnecessarily confusing. Since they are already namespaced under `nginx.*`.
1 parent 1a6b909 commit 294de15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nginx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ def gracefulstop(wait=True):
1010
run('while pgrep nginx >/dev/null; do echo "Waiting for Nginx to exit.."; sleep 1; done')
1111

1212
@task
13-
def killnginx():
13+
def kill():
1414
"""Shut down Nginx immediately without waiting for it to finish running"""
1515
sudo('service nginx stop')
1616

1717
@task
18-
def gracefulstart():
18+
def start():
1919
"""Start up Nginx on a machine"""
2020
sudo('service nginx start')
2121

2222
@task
2323
def hello_it():
2424
"""Turns Nginx off and on again"""
25-
killnginx()
26-
gracefulstart()
25+
kill()
26+
start()

0 commit comments

Comments
 (0)