Copy a directory from remote resource using Chef

chef

I want to copy a directory from a remote respository. To copy a single setup/file I am using remote_file resource. but this doesn't work if you want to copy a complete directory. I also checked chef's remote_directory resource, but that can be used only if the directory is in the cookbook itself. Any ideas as how to achieve the same.

Best Answer

Create an archive for the files and transfer the archive using remote_file.