Differences between revisions 4 and 5
Revision 4 as of 2018-07-25 07:46:36
Size: 826
Editor: risca
Comment:
Revision 5 as of 2018-07-25 08:57:54
Size: 868
Editor: risca
Comment:
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
 * exited
Line 29: Line 30:
 * stdout
 * connection.host

Warning: from fabric 2 to version 1 everything changes!

Since 2.0 all commands are execute through invoke while fab manage only the Connection.

Quick reference

Runner

(from invoke http://docs.pyinvoke.org/en/latest/api/runners.html)

Main parameters for run:

  • command
  • shell
  • warn
  • hide: [out|err|both|None]
  • pty
  • echo: show what will be execute
  • env: inject variables
  • replace_env: it will be the only environment
  • watchers: automatic replay to stdout!
  • echo_stdin
  • respond: write in response of watcher

local: same as run but execute on the local host

Exit codes attributes:

  • ok|failed
  • exited
  • return_code
  • stdout
  • connection.host

Usage by examples

Documentation

MyWiki: fabric (last edited 2018-07-25 09:12:28 by risca)