# 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}/ class Array include Rush::Commands def entries self end include Rush::HeadTail end