Permalink
Browse files

Make git recipe clean up properly

  • Loading branch information...
michaelklishin committed Mar 9, 2012
1 parent 4bdc8f3 commit 1a2fd3ca2ac36326f7f103d3a860f690ec2bb0c0
Showing with 5 additions and 0 deletions.
  1. +5 −0 ci_environment/git/recipes/default.rb
@@ -50,11 +50,16 @@
group node.travis_build_environment.group
end
+ file(path) do
+ action :nothing
+ end
+
package(deb) do
action :install
source path
provider Chef::Provider::Package::Dpkg
+ notifies :delete, resources(:file => path)
not_if "which git"
end
end # each

0 comments on commit 1a2fd3c

Please sign in to comment.