diff options
author | Vishnu Atrai <vishnu.atrai@gmail.com> | 2011-05-27 20:12:11 +0530 |
---|---|---|
committer | Vishnu Atrai <vishnu.atrai@gmail.com> | 2011-05-27 20:12:11 +0530 |
commit | 008a0ecdb13642b6761b5d8b3bb6ce4c4eb0899a (patch) | |
tree | a5b1b75949375ea6b676227806cf77d88941fd52 /railties/lib | |
parent | 9d10c2a03d3f1c25a76528e1e99be2930efcd2ad (diff) | |
download | rails-008a0ecdb13642b6761b5d8b3bb6ce4c4eb0899a.tar.gz rails-008a0ecdb13642b6761b5d8b3bb6ce4c4eb0899a.tar.bz2 rails-008a0ecdb13642b6761b5d8b3bb6ce4c4eb0899a.zip |
rename task and Rake::FileList used
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/tasks/assets.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake index 1168409dcb..263a695214 100644 --- a/railties/lib/rails/tasks/assets.rake +++ b/railties/lib/rails/tasks/assets.rake @@ -11,10 +11,10 @@ namespace :assets do end desc "Remove compiled assets" - task :cleanup => :environment do + task :clean => :environment do assets = Rails.application.config.assets public_asset_path = Rails.public_path + assets.prefix - FileUtils.rm_r Dir.glob("#{public_asset_path}/*.js") - FileUtils.rm_r Dir.glob("#{public_asset_path}/*.css") + file_list = FileList.new("#{public_asset_path}/*.js", "#{public_asset_path}/*.css") + file_list.each{ |list| FileUtils.rm list } end end |