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

Version Path
geordi-9.5.1 lib/geordi/commands/clean.rb
geordi-9.5.0 lib/geordi/commands/clean.rb
geordi-9.4.1 lib/geordi/commands/clean.rb
geordi-9.4.0 lib/geordi/commands/clean.rb
geordi-9.3.1 lib/geordi/commands/clean.rb
geordi-9.3.0 lib/geordi/commands/clean.rb
geordi-9.2.0 lib/geordi/commands/clean.rb
geordi-9.1.0 lib/geordi/commands/clean.rb
geordi-9.0.0 lib/geordi/commands/clean.rb
geordi-8.0.0 lib/geordi/commands/clean.rb
geordi-7.0.2 lib/geordi/commands/clean.rb
geordi-7.0.1 lib/geordi/commands/clean.rb
geordi-7.0.0 lib/geordi/commands/clean.rb
geordi-6.1.0 lib/geordi/commands/clean.rb
geordi-6.0.1 lib/geordi/commands/clean.rb
geordi-6.0.0 lib/geordi/commands/clean.rb
geordi-6.0.0.pre.rc1 lib/geordi/commands/clean.rb
geordi-5.4.0 lib/geordi/commands/clean.rb
geordi-5.3.0 lib/geordi/commands/clean.rb
geordi-5.2.4 lib/geordi/commands/clean.rb