Class: Magma::Preparer

Inherits:
Object
  • Object
show all
Includes:
Common, Utils
Defined in:
lib/magma/preparer.rb

Instance Method Summary collapse

Methods included from Utils

#pipe, #read_file_or_stdin, #run, #symbolize_keys, #uuid?, #which

Methods included from Common

#handle_output!

Constructor Details

#initialize(infile, options = {}) ⇒ Preparer

Returns a new instance of Preparer.



11
12
13
14
# File 'lib/magma/preparer.rb', line 11

def initialize(infile, options = {})
  @infile = infile
  @options = options
end

Instance Method Details

#callObject



16
17
18
19
20
# File 'lib/magma/preparer.rb', line 16

def call
  expand_resource_paths!
  handle_output! xml, options.merge(infile: infile)
  xml
end