Tuesday 1 April 2014

python fabfile

Notes:
http://docs.fabfile.org/
sudo easy_install fabric
In [1]: import fabric

In [2]: dir(fabric)
Out[2]: ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']

In [3]: from fabric.api import run

In [4]: dir(fabric.api)
Out[4]:
['__builtins__',
 '__doc__',
 '__file__',
 '__name__',
 '__package__',
 'abort',
 'cd',
 'env',
 'execute',
 'fastprint',
 'get',
 'hide',
 'hosts',
 'lcd',
 'local',
 'open_shell',
 'output',
 'parallel',
 'path',
 'prefix',
 'prompt',
 'put',
 'puts',
 'quiet',
 'reboot',
 'remote_tunnel',
 'require',
 'roles',
 'run',
 'runs_once',
 'serial',
 'settings',
 'shell_env',
 'show',
 'sudo',
 'task',
 'warn',
 'warn_only',
 'with_settings']

No comments:

Post a Comment