diff options
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 |