--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns the command string used by capistrano to invoke a comamnd via sudo.
- !ruby/struct:SM::Flow::VERB 
  body: "  run &quot;#{sudo :as =&gt; 'bob'} mkdir /path/to/dir&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: "It can also be invoked like #run, but executing the command via sudo. This assumes that the sudo password (if required) is the same as the password for logging in to the server."
- !ruby/struct:SM::Flow::VERB 
  body: "  sudo &quot;mkdir /path/to/dir&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: "Also, this method understands a <tt>:sudo</tt> configuration variable, which (if specified) will be used as the full path to the sudo executable on the remote machine:"
- !ruby/struct:SM::Flow::VERB 
  body: "  set :sudo, &quot;/opt/local/bin/sudo&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: If you know what you're doing, you can also set <tt>:sudo_prompt</tt>, which tells capistrano which prompt sudo should use when asking for a password. (This is so that capistrano knows what prompt to look for in the output.) If you set :sudo_prompt to an empty string, Capistrano will not send a preferred prompt.
full_name: Capistrano::Configuration::Actions::Invocation#sudo
is_singleton: false
name: sudo
params: (*parameters, &block)
visibility: public
