Class: Foreman::Export::Custom

Inherits:
Base
  • Object
show all
Defined in:
lib/foreman/export/custom.rb

Instance Method Summary collapse

Instance Method Details

#exportObject



5
6
7
8
9
10
11
# File 'lib/foreman/export/custom.rb', line 5

def export
  super
  error("Must specify template") unless options[:template]
  template = IO.read(options[:template])
  compiled = ERB.new(template).result(binding)
  write_file(app, compiled)
end