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 /README.rdoc | |
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 'README.rdoc')
-rw-r--r-- | README.rdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rdoc b/README.rdoc index 0818e47..3a90d57 100644 --- a/README.rdoc +++ b/README.rdoc @@ -33,11 +33,11 @@ In a nutshell: 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 |