Stephen McQuay 6 years ago
parent
commit
afa0a2899e
6 changed files with 7 additions and 0 deletions
  1. 1
    0
      composition.py
  2. 1
    0
      context_managers.py
  3. 1
    0
      func.py
  4. 1
    0
      hosts.py
  5. 2
    0
      roldefs.py
  6. 1
    0
      super_composition.py

+ 1
- 0
composition.py View File

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

+ 1
- 0
context_managers.py View File

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

+ 1
- 0
func.py View File

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

+ 1
- 0
hosts.py View File

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

+ 2
- 0
roldefs.py View File

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

+ 1
- 0
super_composition.py View File

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

Loading…
Cancel
Save