[chef] strage behaviour of remote_directory


Chronological Thread 
  • From: Grzegorz Marszałek < >
  • To:
  • Subject: [chef] strage behaviour of remote_directory
  • Date: Wed, 9 Feb 2011 23:01:35 +0100

Hello!

I'm trying to copy whole directory tree from cookbook files/default/far2 to 
windows workstation.

Im using following code:

remote_directory "#{ENV["DFCLIENT"]}/opt/far2" do
 source "far2"
 files_backup 0
 purge true
 overwrite true
end

funny thins is - that each 2 runs it DELETES everything in opt/far2 directory!

Is that bug, or maybe I don't understand how purge works?

Im using chef 0.9.12 on windows.
---
Grzegorz Marszałek






Archive powered by MHonArc 2.6.16.

§