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
def run_tests():
local("echo running tests")
# local("false")

View File

@ -5,6 +5,7 @@ env.roledefs = {
'db': ['db1', 'db2']
}
def cd_example():
with cd('/tmp'):
run('pwd')

View File

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

View File

@ -2,5 +2,6 @@ from fabric.api import env, run
env.hosts = ['web1', 'web2', 'web3']
def hello():
run('hostname')

View File

@ -1,8 +1,10 @@
from fabric.api import env, run
env.roledefs = {
'web': ['web1', 'web2', 'web3'],
'db': ['db1', 'db2']
}
def hello():
run('hostname')

View File

@ -1,5 +1,6 @@
from fabric.api import run, local
def run_tests():
local("echo running tests")
# local("false")