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