diff options
author | Jamis Buck <jamis@37signals.com> | 2008-04-07 22:41:12 -0600 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2008-04-07 22:41:12 -0600 |
commit | 9782ac60ccc82169a0e942c7d0eaba008bae44e8 (patch) | |
tree | e348c0f1c86e2a1f2e1c9cb149bab711ed3ec5f1 /lib/net/ssh/multi.rb | |
parent | 97e3f9e56a6e8d7ad0027228a497d7f144402ee4 (diff) | |
download | net-ssh-multi-9782ac60ccc82169a0e942c7d0eaba008bae44e8.tar.gz |
make with() and on() yield a new subsession object that encapsulates the set of matching servers, and add a new servers_for method.
Diffstat (limited to 'lib/net/ssh/multi.rb')
-rw-r--r-- | lib/net/ssh/multi.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/multi.rb b/lib/net/ssh/multi.rb index ae24f99..8f393df 100644 --- a/lib/net/ssh/multi.rb +++ b/lib/net/ssh/multi.rb @@ -28,11 +28,11 @@ module Net; module SSH # session.use 'app2', 'user' # end # - # # execute commands + # # execute commands on all servers # session.exec "uptime" # # # execute commands on a subset of servers - # session.with(:app) { session.exec "hostname" } + # session.with(:app).exec "hostname" # # # run the aggregated event loop # session.loop |