Skip to content

Instantly share code, notes, and snippets.

@ranjib
Created March 27, 2013 18:02
Show Gist options
  • Save ranjib/5256608 to your computer and use it in GitHub Desktop.
Save ranjib/5256608 to your computer and use it in GitHub Desktop.
conf_files = Dir['/etc/profile.d/*']
template "/etc/template-example" do
variable :files => conf_files
source "template-example.erb"
end
<% @files.each do |f| %>
<%= f %>
<%%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment