summaryrefslogtreecommitdiff
path: root/lib/net/ssh/multi/session_actions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ssh/multi/session_actions.rb')
-rw-r--r--lib/net/ssh/multi/session_actions.rb4
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