Skip to content
This repository has been archived by the owner on Jul 14, 2018. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 1.5 KB

2.x-DSL-Documentation-Action-Module.md

File metadata and controls

21 lines (14 loc) · 1.5 KB

There are several helper methods that Capistrano provides for you to use in your recipes. These helpers vary in purpose from executing commands, to transferring files, to manipulating the output of a command:

Invocation

  • run Execute commands on one or more servers ([[more...|2.x-dsl-action-invocation-run]])
  • sudo (Deprecated) Execute commands on one or more servers via sudo. ([[more...|2.x-dsl-action-invocation-sudo]])
  • parallel Execute multiple commands on multiple servers in parallel ([[more...|2.x-dsl-action-invocation-parallel]])

Inspection

  • capture Executes a command on a single host and returns ("captures") the output as a string. ([[more...|2.x-dsl-action-inspection-capture]])
  • stream Very similar to run, but optimized for displaying live streams of text (like tailed log files) from multiple hosts. ([[more...|2.x-dsl-action-inspection-stream]])

File Transfer

The file-transfer actions all use either scp or sftp to move files to or from the remote hosts.

  • put Store the contents of a file on multiple servers. ([[more...|2.x-dsl-action-file-transfer-put]])
  • get Transfers a file from a single remote server to the local host. ([[more...|2.x-dsl-action-file-transfer-get]])
  • upload Transfers a file or directory from the local host to multiple remote hosts, in parallel. ([[more...|2.x-dsl-action-file-transfer-upload]])
  • download Transfers a file or directory from multiple remote hosts to the local host, in parallel. ([[more...|2.x-dsl-action-file-transfer-download]])