Skip to content
Browse files

Merge branch 'master' of git@github.com:ianwhite/garlic

  • Loading branch information...
2 parents f446fe7 + 2c5ed13 commit 09af25f8d0b7cabb789a6875f29d1528cdc10ee8 @ianwhite committed
Showing with 9 additions and 0 deletions.
  1. +4 −0 lib/garlic/garlic.rb
  2. +5 −0 lib/garlic/tasks.rb
View
4 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
View
5 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

0 comments on commit 09af25f

Please sign in to comment.
Something went wrong with that request. Please try again.