Sha256: 2061b92a6bea85e13a211718ad2c8b839d35a265823279fc24bc1fba68f36078

Contents?: true

Size: 1016 Bytes

Versions: 79

Compression:

Stored size: 1016 Bytes

Contents

# The 'rake/clean' file defines two file lists (CLEAN and CLOBBER) and
# two rake tasks (:clean and :clobber).
#
# [:clean] Clean up the project by deleting scratch files and backup
#          files.  Add files to the CLEAN file list to have the :clean
#          target handle them.
#
# [:clobber] Clobber all generated and non-source files in a project.
#            The task depends on :clean, so all the clean files will
#            be deleted as well as files in the CLOBBER file list.
#            The intent of this task is to return a project to its
#            pristine, just unpacked state.

require 'rake'

# :stopdoc:
CLEAN = Rake::FileList["**/*~", "**/*.bak", "**/core"]
CLEAN.clear_exclude.exclude { |fn|
  fn.pathmap("%f") == 'core' && File.directory?(fn)
}

desc "Remove any temporary products."
task :clean do
  CLEAN.each { |fn| rm_r fn rescue nil }
end

CLOBBER = Rake::FileList.new

desc "Remove any generated file."
task :clobber => [:clean] do
  CLOBBER.each { |fn| rm_r fn rescue nil }
end

Version data entries

79 entries across 65 versions & 20 rubygems

Version Path
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/clean.rb
challah-0.6.1 vendor/bundle/gems/rake-0.9.2.2/lib/rake/clean.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/clean.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/clean.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/clean.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb
ftl-0.2.0 vendor/bundle/gems/rake-0.9.2.2/lib/rake/clean.rb
challah-0.6.0 vendor/bundle/gems/rake-0.9.2.2/lib/rake/clean.rb
horseman-0.0.5 vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/clean.rb
challah-0.5.4 vendor/bundle/gems/rake-0.9.2.2/lib/rake/clean.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb
challah-0.5.3 vendor/bundle/gems/rake-0.9.2.2/lib/rake/clean.rb
challah-0.5.2 vendor/bundle/gems/rake-0.9.2.2/lib/rake/clean.rb
challah-0.5.1 vendor/bundle/gems/rake-0.9.2.2/lib/rake/clean.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb