Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Call the on_process_run callback with the shell object, since thats h…
Browse files Browse the repository at this point in the history
…ow net-ssh typically does callbacks
  • Loading branch information
mitchellh committed Jan 12, 2011
1 parent 5bce0f5 commit 5eb4684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ssh/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def on_channel_close(channel)
def run_next_process
if processes.any?
process = processes.first
@on_process_run.call(process) if @on_process_run
@on_process_run.call(self, process) if @on_process_run
process.run
end
end
Expand Down

0 comments on commit 5eb4684

Please sign in to comment.