copy - chef copying a directory -


I am trying to copy from one folder to another folder in another folder:

 < Code> directory "C: \\ test go \\" recursive true action: create cookbook_file end "C: \\ automation" source "C: \\ automation" path "C: \\ test \\" action: create_if_missing end  

This target creates the folder C: \ test \ go but does not copy anything, the documentation says that it does not copy directories. Should be handled so that there is no idea why? I have also tried a wildcard source "C: \ Automation \ *" and further deducted ...

Here's the solution:

  Block "Block the windows resources" Ruby_block FileUtils.mkdir_p mod_path FileUtils.cp_r (Dir ["# {RESOURCE_DIR} / * .exe"], Chef :: Configuration [: file_cache_path]) End End  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -