Skip to content

Commit

Permalink
Added garlic:clean task which removes the work paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Oct 16, 2008
1 parent 0d80f86 commit 2c5ed13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/garlic/garlic.rb
Expand Up @@ -54,6 +54,10 @@ def reset_repos
repos.each {|repo| repo.reset} repos.each {|repo| repo.reset}
end end


def clean
rm_rf work_path
end

def prepare def prepare
determine_targets.each {|target| target.prepare } determine_targets.each {|target| target.prepare }
ensure ensure
Expand Down
5 changes: 5 additions & 0 deletions lib/garlic_tasks.rb
Expand Up @@ -18,6 +18,11 @@ def garlic(&block)
task :prepare_targets do task :prepare_targets do
garlic.prepare garlic.prepare
end 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)" desc "Run the CI 'run' task in specified TARGET(S) (default all)"
task :run_targets do task :run_targets do
Expand Down

0 comments on commit 2c5ed13

Please sign in to comment.