lib/capistrano/configuration/actions/invocation.rb
# Invokes the given command. If a +via+ key is given, it will be used
# to determine what method to use to invoke the command. It defaults
# to :run, but may be :sudo, or any other method that conforms to the
# same interface as run and sudo.
Invokes the given command. If a +via+ key is given, it will be used
to determine what method to use to invoke the command. It defaults
to :run, but may be :sudo, or any other method that conforms to the
same interface as run and sudo.
Invokes the given command . If a + via + key is given it will be used to determine what method to use to invoke the command . It defaults to : run but may be : sudo or any other method that conforms to the same interface as run and sudo .
def invoke_command(cmd, options={}, &block)
          options = options.dup
          via = options.delete(:via) || :run
          send(via, cmd, options, &block)
        end
def invoke_command ( cmd , options = { } , & block ) options = options . dup via = options . delete ( :via ) || :run send ( via , cmd , options , & block ) end
Invokes the given command.
Invokes the given command .
cmd
<not_specific>
options
<not_specific>
block
<not_specific>