desc "make executable" directory.matches('/bin') do |dir| dir.for('*') { |f| f.make_executable! } end desc "replace __FILE__ with everyone" files.all do |file| file.gsub!('__FILE__', 'everyone') end