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:
#
# * :default_environment: If the :env key already exists, the :env
#   key is merged into default_environment and then added back into
#   options.
# * :default_shell: if the :shell key already exists, it will be used.
#   Otherwise, if the :default_shell key exists in the configuration,
#   it will be used. Otherwise, no :shell key is added.
Merges the various default command options into the options hash and
returns the result. The default command options that are understand
are.

:default_environment: If the :env key already exists, the :env
key is merged into default_environment and then added back into
options.
:default_shell: if the :shell key already exists, it will be used.
Otherwise, if the :default_shell key exists in the configuration,
it will be used. Otherwise, no :shell key is added.
Merges the various default command options into the options hash and returns the result . The default command options that are understand are . : default_environment : If the : env key already exists the : env key is merged into default_environment and then added back into options . : default_shell : if the : shell key already exists it will be used . Otherwise if the : default_shell key exists in the configuration it will be used . Otherwise no : shell key is added .
def add_default_command_options(options)
          defaults = self[:default_run_options]
          options = defaults.merge(options)
          env = self[:default_environment]
          env = env.merge(options[:env]) if options[:env]
          options[:env] = env unless env.empty?
          shell = options[:shell] || self[:default_shell]
          options[:shell] = shell unless shell.nil?
          options
        end
def add_default_command_options ( options ) defaults = self [ :default_run_options ] options = defaults . merge ( options ) env = self [ :default_environment ] env = env . merge ( options [ :env ] ) if options [ :env ] options [ :env ] = env unless env . empty? shell = options [ :shell ] || self [ :default_shell ] options [ :shell ] = shell unless shell . nil? options end
Merges the various default command options into the options hash and
returns the result.
Merges the various default command options into the options hash and returns the result .
options
<not_specific>