From e66590e62be73a80d8df6b7322242aa37cee43fb Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Tue, 8 Oct 2013 21:47:01 +0200 Subject: [PATCH] add clean:all task which calls 'clean' then deletes ~/Library/RubyMotion/build --- lib/motion/project.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/motion/project.rb b/lib/motion/project.rb index dac9f447..29c4a509 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -38,7 +38,7 @@ end motion_bin_path = File.join(File.dirname(__FILE__), '../../bin/motion') system("/usr/bin/ruby \"#{motion_bin_path}\" update --check") -desc "Clear build objects" +desc "Clear local build objects" task :clean do App.info 'Delete', App.config.build_dir rm_rf(App.config.build_dir) @@ -50,6 +50,18 @@ task :clean do end end +namespace :clean do + desc "Clean all build objects" + task :all do + Rake::Task["clean"].invoke + path = Motion::Project::Builder.common_build_dir + if File.exist?(path) + App.info 'Delete', path + rm_rf path + end + end +end + desc "Show project config" task :config do map = App.config.variables