Sha256: f9eadce05a8e8c8a23d011a367effa871ce70139d7243c6021b14c12e0e3879a

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 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

  Hint.did_you_know [
    :remove_executable_flags
  ]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geordi-9.6.1 lib/geordi/commands/clean.rb
geordi-9.6.0 lib/geordi/commands/clean.rb