Created
August 15, 2011 22:18
-
-
Save adamhjk/1148021 to your computer and use it in GitHub Desktop.
load a template with data
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
begin | |
r = resources(:template => "/tmp/yourthing") | |
rescue Chef::Exceptions::ResourceNotFound => e | |
r = template "/tmp/yourthing" do | |
variables { :your_defaults => ... } | |
end | |
end | |
r.variables[:your_stuff] = "here" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment