How to move/copy files locally with Chef
How to copy single file First way I use file statement to copy file (compile-time check) file “/etc/init.d/someService” do owner ‘root’ group ‘root’ mode 0755 content ::File.open(“/home/someService”).read action :create end here : “/etc/init.d/someService” – target file, “/home/someService” – source file Also you can wrap ::File.open(“/home/someService”).read in lazy block … lazy { ::File.open(“/home/someService”).read } … Second … Read more