Sha256: 52809b89ad363dd4a14b8d46d48e0bb39456e1e89d9c556e2fd194807a53d26c

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

Version Path
geordi-11.2.0 lib/geordi/commands/clean.rb
geordi-11.1.0 lib/geordi/commands/clean.rb
geordi-11.0.0 lib/geordi/commands/clean.rb
geordi-10.1.0 lib/geordi/commands/clean.rb
geordi-10.0.1 lib/geordi/commands/clean.rb
geordi-10.0.0 lib/geordi/commands/clean.rb