This commit is contained in:
Stephen McQuay 2013-01-24 19:03:49 -08:00
parent 3beaa660d7
commit afa0a2899e
6 changed files with 7 additions and 0 deletions

View File

@ -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")

View File

@ -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')

View File

@ -1,4 +1,5 @@
from fabric.api import run from fabric.api import run
def hello(): def hello():
run("ls") run("ls")

View File

@ -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')

View File

@ -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')

View File

@ -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")