Fabric API

Fabric is made up of Core API + Contrib API.

Operations is part of the core api:

  • local – Run a command on the local system.
  • run – Run a shell command on a remote host.
  • sudo – Run a shell command on a remote host, with superuser privileges.
  • put – Upload one or more files to a remote host.
  • get – Download one or more files from a remote host.
  • prompt – Prompt user with text and return the input
  • reboot – Reboot the remote system.

Basic Usage:

fab [-f fabfile.py] [-H hostname] [-p password123] deploy_task:parameter1=xxx,...

Reference:

Advertisements
Posted in Fabric, Python

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: