class Array

Rush mixes in Rush::Commands in order to allow operations on groups of Rush::Entry items. For example, dir[‘*/.rb’] returns an array of files, so dir[‘*/.rb’].destroy would destroy all the files specified.

One cool tidbit: the array can contain entries anywhere, so you can create collections of entries from different servers and then operate across them:

[ box1['/var/log/access.log'] + box2['/var/log/access.log'] ].search /#{url}/

Public Instance Methods

entries() click to toggle source
# File lib/rush/array_ext.rb, line 12
def entries; self; end