Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: r0.2.6
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (22 sloc) 0.86 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
ndo does things N times.

SYNOPSIS

  mc = Ndo::MultiCommand.new('uname -n', %w(hostA hostB hostC))
  results = mc.run
  
  results['hostA'] # => 'hostA'
  results.each do |result|
    result # => "hostA", "hostB", "hostC"
  end
  
ON THE COMMAND LINE

1) Create a host set

A host set is a file in below ~/.ndo that contains a list of host names,
separated by newlines. Easily generated.

2) Run a command on a host set

  $ ndo my_host_set ls
  callisto Tue Sep 13 09:17:41 CEST 2011
  cyllene Tue Sep 13 09:17:41 CEST 2011
  helike Tue Sep 13 09:17:41 CEST 2011
  himalia Tue Sep 13 09:17:41 CEST 2011
  
As you can see, it appears that time synch works on these machines.

STATUS

This is a very early version; It could handle errors better. That said, ndo is
a very useful tool that can replace vlad or capistrano for easy things.
Something went wrong with that request. Please try again.