Guest User

Untitled

a guest
Jun 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ruby_block "copy mystart" do
  2. block do
  3. myfile = IO.read("/opt/mybin/mystart")
  4. rc = Chef::RunContext.new(node, {})
  5. f = Chef::Resource::File("/usr/local/bin/mystart", rc)
  6. f.content(myfile)
  7. f.run_action(:create)
  8. end
  9. end
Add Comment
Please, Sign In to add comment