lib/geordi/commands/clean.rb in geordi-2.12.3 vs lib/geordi/commands/clean.rb in geordi-3.0.0

- old
+ new

@@ -1,16 +1,14 @@ desc 'clean', 'Remove unneeded files from the current directory' def clean - announce 'Removing tempfiles' - for pattern in %w[ webrat-* capybara-* tmp/webrat-* tmp/capybara-* tmp/rtex/* log/*.log ] + %w[webrat-* capybara-* tmp/webrat-* tmp/capybara-* tmp/rtex/* log/*.log].each do |pattern| note pattern puts `rm -vfR #{pattern}` end announce 'Finding recursively and removing backup files' - for pattern in %w[ *~ ] + %w[*~].each do |pattern| note pattern `find . -name #{pattern} -exec rm {} ';'` end - end