Sha256: 32efe931c035f89172cc0a26f5ed3265fba7baa994179219b3c76105f180aa4a
Contents?: true
Size: 461 Bytes
Versions: 37
Compression:
Stored size: 461 Bytes
Contents
desc 'clean', 'Remove unneeded files from the current directory' def clean Interaction.announce 'Removing tempfiles' for pattern in %w[ webrat-* capybara-* tmp/webrat-* tmp/capybara-* tmp/rtex/* log/*.log ] Interaction.note pattern puts `rm -vfR #{pattern}` end Interaction.announce 'Finding recursively and removing backup files' %w[*~].each do |pattern| Interaction.note pattern `find . -name #{pattern} -exec rm {} ';'` end end
Version data entries
37 entries across 37 versions & 1 rubygems