diff --git a/lib/garlic/garlic.rb b/lib/garlic/garlic.rb index 32a5893..85845e5 100644 --- a/lib/garlic/garlic.rb +++ b/lib/garlic/garlic.rb @@ -54,6 +54,10 @@ def reset_repos repos.each {|repo| repo.reset} end + def clean + rm_rf work_path + end + def prepare determine_targets.each {|target| target.prepare } ensure diff --git a/lib/garlic_tasks.rb b/lib/garlic_tasks.rb index 1a42f78..710b100 100644 --- a/lib/garlic_tasks.rb +++ b/lib/garlic_tasks.rb @@ -18,6 +18,11 @@ def garlic(&block) task :prepare_targets do garlic.prepare end + + desc "Clean all of the work away, but not the repos" + task :clean do + garlic.clean + end desc "Run the CI 'run' task in specified TARGET(S) (default all)" task :run_targets do