instance method
command
Ruby on Rails 2.1.2
Since v1.9.3 Last seen in v2.11.0 PrivateSignature
command(args, options)
Override to merge options returned by commands in the args list with options passed by the CLI and pass them along as kwargs.
Parameters
-
argsreq -
optionsreq
Source
# File lib/kamal/sshkit_with_ext.rb, line 36
def command(args, options)
more_options, args = args.partition { |a| a.is_a? Hash }
more_options << options
build_command(args, **more_options.reduce(:deep_merge))
end
Defined in lib/kamal/sshkit_with_ext.rb line 36
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in SSHKit::Backend::Abstract::CommandEnvMerge