From 35e6849f91cad8685f2089c724477a74e76aaab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trung=20Le=CC=82?= Date: Thu, 24 Nov 2011 18:12:57 +1100 Subject: [PATCH] Enforce removal for rake clean task --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 1c6114d82db..8e115363558 100644 --- a/Rakefile +++ b/Rakefile @@ -52,7 +52,7 @@ task :clean do %w(api auth core dash promo).each do |gem_name| puts "Cleaning #{gem_name}:" puts " Deleting #{gem_name}/Gemfile" - FileUtils.rm("#{gem_name}/Gemfile") + FileUtils.rm_f("#{gem_name}/Gemfile") puts " Deleting #{gem_name}/pkg" FileUtils.rm_rf("#{gem_name}/pkg") puts " Deleting #{gem_name}'s dummy application" @@ -85,7 +85,7 @@ namespace :gem do %w(core auth api dash promo sample).each do |gem_name| puts "########################### #{gem_name} #########################" puts "Deleting #{gem_name}/pkg" - FileUtils.rm("#{gem_name}/pkg") + FileUtils.rm_rf("#{gem_name}/pkg") cmd = "cd #{gem_name} && bundle exec rake gem"; puts cmd; system cmd cmd = "cd #{gem_name}/pkg && gem install spree_#{gem_name}-#{version}.gem"; puts cmd; system cmd end