diff options
author | Miklós Fazekas <mfazekas@szemafor.com> | 2014-09-02 05:24:28 +0200 |
---|---|---|
committer | Miklós Fazekas <mfazekas@szemafor.com> | 2014-09-02 05:24:28 +0200 |
commit | 1bf2686763a0238cb030998962e700827115acf1 (patch) | |
tree | 0cf05b6902c41fa37829bd12a1ea185dd776ffb4 | |
parent | 043bbca9b65cb7f8d862371f66cd4e163287291b (diff) | |
parent | c55016c9bb64af56ee7e2d88f59908e93645dc43 (diff) | |
download | net-ssh-1bf2686763a0238cb030998962e700827115acf1.tar.gz |
Merge pull request #181 from amatsuda/warnings
Ruby Warnings
-rw-r--r-- | lib/net/ssh/config.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/net/ssh/config.rb b/lib/net/ssh/config.rb index 137b8e3..e2590a9 100644 --- a/lib/net/ssh/config.rb +++ b/lib/net/ssh/config.rb @@ -59,7 +59,7 @@ module Net; module SSH # #default_files), translates the resulting hash into the options # recognized by Net::SSH, and returns them. def for(host, files=default_files) - hash = translate(files.inject({}) { |settings, file| + translate(files.inject({}) { |settings, file| load(file, host, settings) }) end @@ -76,7 +76,6 @@ module Net; module SSH globals = {} matched_host = nil - multi_host = [] seen_host = false IO.foreach(file) do |line| next if line =~ /^\s*(?:#.*)?$/ |