diff options
author | Miklós Fazekas <mfazekas@szemafor.com> | 2016-03-27 10:37:33 +0200 |
---|---|---|
committer | Miklós Fazekas <mfazekas@szemafor.com> | 2016-03-27 10:37:33 +0200 |
commit | 66ab0bbc30c784734cfbbad737e68fc675728777 (patch) | |
tree | 67a3d756d170729ea9c14d9b403e3377dd052097 /lib/net/ssh/multi/session_actions.rb | |
parent | 58851c5c2673ce0ba9a29f89196a31d7ac09c061 (diff) | |
parent | 429529bda8db013808f4277e74d78f0d46291453 (diff) | |
download | net-ssh-multi-66ab0bbc30c784734cfbbad737e68fc675728777.tar.gz |
Merge pull request #18 from eugeneius/fix_warnings
Fix warnings
Diffstat (limited to 'lib/net/ssh/multi/session_actions.rb')
-rw-r--r-- | lib/net/ssh/multi/session_actions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/multi/session_actions.rb b/lib/net/ssh/multi/session_actions.rb index 2d87392..c6b1355 100644 --- a/lib/net/ssh/multi/session_actions.rb +++ b/lib/net/ssh/multi/session_actions.rb @@ -118,8 +118,8 @@ module Net; module SSH; module Multi # end def exec(command, &block) open_channel do |channel| - channel.exec(command) do |ch, success| - raise "could not execute command: #{command.inspect} (#{ch[:host]})" unless success + channel.exec(command) do |c, success| + raise "could not execute command: #{command.inspect} (#{c[:host]})" unless success channel.on_data do |ch, data| if block |