Class: Foreman::Export::Custom
- Inherits:
-
Base
- Object
- Base
- Foreman::Export::Custom
- Defined in:
- lib/foreman/export/custom.rb
Instance Method Summary collapse
Instance Method Details
#export ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/foreman/export/custom.rb', line 5 def export super error("Must specify template") unless [:template] template = IO.read([:template]) compiled = ERB.new(template).result(binding) write_file(app, compiled) end |