lib/rye/box.rb in rye-0.9.11 vs lib/rye/box.rb in rye-0.9.12

- old
+ new

@@ -88,15 +88,15 @@ def post_command_hook=(val); @rye_post_command_hook = val; end # A Hash. The keys are exception classes, the values are Procs to execute def exception_hook=(val); @rye_exception_hook = val; end # * +host+ The hostname to connect to. Default: localhost. - # * +user+ The username to connect as. Default: SSH config file or current shell user. # * +opts+ a hash of optional arguments. # # The +opts+ hash excepts the following keys: # + # * :user => the username to connect as. Default: SSH config file or current shell user. # * :safe => should Rye be safe? Default: true # * :port => remote server ssh port. Default: SSH config file or 22 # * :keys => one or more private key file paths (passwordless login) # * :via => the Rye::Hop to access this host through # * :info => an IO object to print Rye::Box command info to. Default: nil @@ -1067,10 +1067,10 @@ channel.on_close { |ch| channel[:handler] = ":on_close" } channel.on_data { |ch, data| channel[:handler] = ":on_data" - @rye_stdout_hook.call(data) if !@rye_pty && !@rye_quiet && @rye_stdout_hook.kind_of?(Proc) + @rye_stdout_hook.call(data, user, host, nickname) if !@rye_pty && !@rye_quiet && @rye_stdout_hook.kind_of?(Proc) if rye_pty && data =~ /password/i channel[:prompt] = data channel[:state] = :await_input else channel[:stdout].append(data)