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