Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README

  • Loading branch information...
commit f67438057ea5b2f6864b602a63dea0fe08e0073e 1 parent e267b9d
@drichert authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
View
6 README.rdoc
@@ -165,6 +165,12 @@ So, the hostname 'filibuster' is used from 'firewall.lan'
rset.uptime
# => [[17:17:44 up 548 days, 13:37, 20 users, load average: 0.12, 0.07, 0.06], [01:17:49 up 6 days, 1:39, 9 users, load average: 0.13, 0.09, 0.09]]
+== Example 9 -- Disable password prompt
+
+If you're running in a terminal but you want <tt>Net::SSH::AuthenticationFailed</tt> to be raised instead of getting a password prompt when authentication fails, use the <tt>:no_password_prompt</tt> option:
+
+ rbox = Rye::Box.new("foo.com", :user => "dan", :password => "inkorrect", :no_password_prompt => true)
+ rbox.uptime # => raises Net::SSH::AuthenticationFailed
== About Safe-Mode
Please sign in to comment.
Something went wrong with that request. Please try again.