Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby_block "copy mystart" do
- block do
- myfile = IO.read("/opt/mybin/mystart")
- rc = Chef::RunContext.new(node, {})
- f = Chef::Resource::File("/usr/local/bin/mystart", rc)
- f.content(myfile)
- f.run_action(:create)
- end
- end
Add Comment
Please, Sign In to add comment