Thibault Jouan 85a47df547 Use SSH user name configured for a given target:
When a user is configured for the targeted host name, use it for SSH
authentification instead of the name of current user logged in.

* Modify Remote#user_name to use configured user name.
2013-09-28 20:07:36 +00:00

7 lines
258 B
Ruby

# FIXME: current home directory shouldn't be changed here, maybe we should use
# a tag for features needing a fake home directory.
Given(/^an SSH config with:$/) do |config|
ENV['HOME'] = File.expand_path current_dir
write_file '.ssh/config', config
end