Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

These changes fix the README example #77

Merged
merged 1 commit into from

2 participants

@nayden

This change makes the example work with ruby 1.9.2p290

@delano delano merged commit cac15e0 into net-ssh:master
@delano
Collaborator

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 29, 2013
  1. @nayden
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
4 README.rdoc
@@ -47,12 +47,12 @@ In a nutshell:
# "on_data" is called when the process writes something to stdout
ch.on_data do |c, data|
- $STDOUT.print data
+ $stdout.print data
end
# "on_extended_data" is called when the process writes something to stderr
ch.on_extended_data do |c, type, data|
- $STDERR.print data
+ $stderr.print data
end
ch.on_close { puts "done!" }
Something went wrong with that request. Please try again.