Implement Remote#config:
Load SSH configuration for targeted host name.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user