Skip to content

Instantly share code, notes, and snippets.

@Oshuma
Created July 24, 2008 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Oshuma/2285 to your computer and use it in GitHub Desktop.
Save Oshuma/2285 to your computer and use it in GitHub Desktop.
# example of using rush to access files on multiple servers (as one collection)
nginx_confs = %w(www1 www2 www3).map { |n| Rush::Box.new(n)['/etc/nginx/nginx.conf'] }
nginx_confs.search(/access_log/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment