Skip to content

Instantly share code, notes, and snippets.

@fxposter
Created October 20, 2015 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxposter/c2ec29a813f0a8b56a1f to your computer and use it in GitHub Desktop.
Save fxposter/c2ec29a813f0a8b56a1f to your computer and use it in GitHub Desktop.
Hacking Chef
@chef.eval_and_check_for_changes do |frame|
template "/etc/default/#{service_id}" do
source "service.erb"
variables :name => service_id, :port => frame.eval{@service.port}
mode 0755
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment