Implement Remote#config:

Load SSH configuration for targeted host name.
This commit is contained in:
Thibault Jouan
2013-09-26 19:22:07 +00:00
parent 9985fceb63
commit 768a6755de
2 changed files with 22 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ module Producer
@session ||= Net::SSH.start(@hostname, user_name)
end
def config
@config ||= Net::SSH::Config.for(@hostname)
end
def user_name
Etc.getlogin
end