Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added garlic:clean task which removes the work paths

  • Loading branch information...
commit 2c5ed139c4a73fed89446cddf1302b1559e35709 1 parent 0d80f86
Ian White authored
Showing with 9 additions and 0 deletions.
  1. +4 −0 lib/garlic/garlic.rb
  2. +5 −0 lib/garlic_tasks.rb
4 lib/garlic/garlic.rb
View
@@ -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
5 lib/garlic_tasks.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.