Skip to content

Commit

Permalink
Enforce removal for rake clean task
Browse files Browse the repository at this point in the history
  • Loading branch information
Trung Lê committed Nov 24, 2011
1 parent 19bbc52 commit 35e6849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35e6849

Please sign in to comment.