Skip to content

Commit

Permalink
Implement ':forward_agent' setting. Closes #23.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Sep 8, 2012
1 parent a7d01e5 commit 7bacc8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mina/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ def ssh(cmd, options={})
#
# puts ssh_command
# #=> 'ssh diggity@foo.com'
#

def ssh_command
args = domain!
args = "#{user}@#{args}" if user?
args << " -i #{identity_file}" if identity_file?
args << " -p #{port}" if port?
args << " -A" if forward_agent?
args << " -t"
"ssh #{args}"
end
Expand Down

0 comments on commit 7bacc8a

Please sign in to comment.