Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created October 13, 2010 19:30
Show Gist options
  • Save jtimberman/624707 to your computer and use it in GitHub Desktop.
Save jtimberman/624707 to your computer and use it in GitHub Desktop.
myfile = IO.read("/opt/mybin/mystart")
file "/usr/local/bin/mystart" do
content myfile
end
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment