add clean:all task which calls 'clean' then deletes ~/Library/RubyMotion/build

This commit is contained in:
Laurent Sansonetti
2013-10-08 21:47:01 +02:00
committed by Watson
parent 9534a30414
commit e66590e62b

View File

@@ -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