Created
July 14, 2011 22:48
-
-
Save tabletcorry/1083656 to your computer and use it in GitHub Desktop.
Fab decorator issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
import test | |
@task | |
def noop(): | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chaines@Sharpimac:fabric-test 15:57:20 | |
$ fab --list | |
Available commands: | |
noop | |
test.inner | |
test.test_runsonce | |
test.test_task | |
chaines@Sharpimac:fabric-test 15:57:33 | |
$ fab -V | |
Fabric 1.1.0 | |
chaines@Sharpimac:fabric-test 16:08:21 | |
$ sudo pip install fabric==1.2 | |
Downloading/unpacking fabric==1.2 | |
Downloading Fabric-1.2.0.tar.gz (154Kb): 154Kb downloaded | |
Running setup.py egg_info for package fabric | |
warning: no previously-included files matching '*' found under directory 'docs/_build' | |
warning: no files found matching 'fabfile.py' | |
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=1.9 in /Library/Python/2.6/site-packages (from fabric==1.2) | |
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.7.6 in /Library/Python/2.6/site-packages (from fabric==1.2) | |
Installing collected packages: fabric | |
Found existing installation: Fabric 1.1.0 | |
Uninstalling Fabric: | |
Successfully uninstalled Fabric | |
Running setup.py install for fabric | |
warning: no previously-included files matching '*' found under directory 'docs/_build' | |
warning: no files found matching 'fabfile.py' | |
Installing fab script to /usr/local/bin | |
Successfully installed fabric | |
Cleaning up... | |
chaines@Sharpimac:fabric-test 16:08:42 | |
$ fab --list | |
Available commands: | |
noop | |
test.inner | |
test.test_runsonce | |
test.test_task | |
chaines@Sharpimac:fabric-test 16:08:47 | |
$ fab -V | |
Fabric 1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
@task | |
def test_task(): | |
return | |
@task | |
@runs_once | |
def test_runsonce(): | |
return | |
@runs_once | |
@task | |
def test_runsonce_first(): | |
return | |
@with_settings(host_string=None) | |
@task | |
def test_withsettings_first(): | |
return | |
@task | |
@with_settings(host_string=None) | |
def test_withsettings_second(): | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment