Differences between revisions 3 and 4
Revision 3 as of 2018-07-25 07:26:07
Size: 178
Editor: risca
Comment:
Revision 4 as of 2018-07-25 07:46:36
Size: 826
Editor: risca
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
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
 * return_code

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
  • return_code

Usage by examples

Documentation

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