Permalink
Browse files

Issue 5 - delete lockfile before updating plist

  • Loading branch information...
1 parent 1e8d93a commit 844a252c48237f89cb27e650f1b02aa784a5f803 @jtimberman jtimberman committed Dec 21, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 providers/plist_file.rb
@@ -18,6 +18,10 @@
#
action :create do
+ file "#{ENV['HOME']}/Library/Preferences/#{new_resource.source}" do
+ action :delete
+ end
+
cookbook_file "#{ENV['HOME']}/Library/Preferences/#{new_resource.source}" do
source new_resource.source
cookbook new_resource.cookbook unless new_resource.cookbook.empty?

0 comments on commit 844a252

Please sign in to comment.