# File lib/puppet/module_tool/applications/generator.rb, line 115 def self.matches?(path) path.file? && path.extname == '.erb' end
# File lib/puppet/module_tool/applications/generator.rb, line 122 def contents template = ERB.new(read) template.result(@generator.send(:get_binding)) end
# File lib/puppet/module_tool/applications/generator.rb, line 126 def install! target.open('w') { |f| f.write contents } end
# File lib/puppet/module_tool/applications/generator.rb, line 118 def target path = super path.parent + path.basename('.erb') end