pep8
This commit is contained in:
parent
3beaa660d7
commit
afa0a2899e
@ -1,5 +1,6 @@
|
||||
from fabric.api import run, local
|
||||
|
||||
|
||||
def run_tests():
|
||||
local("echo running tests")
|
||||
# local("false")
|
||||
|
@ -5,6 +5,7 @@ env.roledefs = {
|
||||
'db': ['db1', 'db2']
|
||||
}
|
||||
|
||||
|
||||
def cd_example():
|
||||
with cd('/tmp'):
|
||||
run('pwd')
|
||||
|
1
hosts.py
1
hosts.py
@ -2,5 +2,6 @@ from fabric.api import env, run
|
||||
|
||||
env.hosts = ['web1', 'web2', 'web3']
|
||||
|
||||
|
||||
def hello():
|
||||
run('hostname')
|
||||
|
@ -1,8 +1,10 @@
|
||||
from fabric.api import env, run
|
||||
|
||||
env.roledefs = {
|
||||
'web': ['web1', 'web2', 'web3'],
|
||||
'db': ['db1', 'db2']
|
||||
}
|
||||
|
||||
|
||||
def hello():
|
||||
run('hostname')
|
||||
|
@ -1,5 +1,6 @@
|
||||
from fabric.api import run, local
|
||||
|
||||
|
||||
def run_tests():
|
||||
local("echo running tests")
|
||||
# local("false")
|
||||
|
Loading…
Reference in New Issue
Block a user