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