Module | Capistrano::Configuration::Actions::Invocation |
In: |
lib/capistrano/configuration/actions/invocation.rb
|
Merges the various default command options into the options hash and returns the result. The default command options that are understand are:
Execute the given command on all servers that are the target of the current task. If a block is given, it is invoked for all output generated by the command, and should accept three parameters: the SSH channel (which may be used to send data back to the remote process), the stream identifier (:err for stderr, and :out for stdout), and the data that was received.
Like run, but executes the command via sudo. This assumes that the sudo password (if required) is the same as the password for logging in to the server.
Also, this module accepts a :sudo configuration variable, which (if specified) will be used as the full path to the sudo executable on the remote machine:
set :sudo, "/opt/local/bin/sudo"