Created
October 20, 2015 19:57
-
-
Save fxposter/c2ec29a813f0a8b56a1f to your computer and use it in GitHub Desktop.
Hacking Chef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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