lib/dockage/ssh.rb in dockage-0.1.1 vs lib/dockage/ssh.rb in dockage-0.1.2
- old
+ new
@@ -26,9 +26,10 @@
def set_ssh_command(opts)
raise SSHOptionsError if !opts[:login] || !opts[:host]
return if @command
@command = which_ssh
@command += SSH_OPTS.map { |opt| " -o #{opt}" }.join if SSH_OPTS.any?
+ @command += " -A" if opts[:forward_agent]
@command += " -i #{opts[:identity_file]}" if opts[:identity_file]
@command += " #{opts[:login]}@#{opts[:host]}"
@command += " -p #{opts[:port]}" if opts[:port]
@command += " -q" unless Dockage.verbose_mode
end