class DTK::DSL::ServiceAndComponentInfo::Parser

Attributes

info_object[R]
output_hash[R]

Public Class Methods

new(output_hash, info_object) click to toggle source
# File lib/dsl/service_and_component_info/parser.rb, line 23
def initialize(output_hash, info_object)
  @output_hash         = output_hash
  @info_object         = info_object
  @indexed_input_files = info_object.indexed_input_files
end
update_output_hash?(output_hash, info_object) click to toggle source
# File lib/dsl/service_and_component_info/parser.rb, line 30
def self.update_output_hash?(output_hash, info_object)
  new(output_hash, info_object).update_output_hash?
  output_hash
end

Private Instance Methods

input_file_hash?(type) click to toggle source
# File lib/dsl/service_and_component_info/parser.rb, line 45
def input_file_hash?(type)
  if input_files = input_files?(type)
    input_files.content_hash?
  end
end
input_files(type) click to toggle source
# File lib/dsl/service_and_component_info/parser.rb, line 37
def input_files(type)
  input_files?(type) || raise(Error, "Unexpected that no indexed_input_files of type '#{type}'")
end
input_files?(type) click to toggle source
# File lib/dsl/service_and_component_info/parser.rb, line 41
def input_files?(type)
  @indexed_input_files[type]
end
raise_error_missing_field(key) click to toggle source
# File lib/dsl/service_and_component_info/parser.rb, line 51
def raise_error_missing_field(key)
  raise Error, "Unexpected that field '#{key}' is missing"
end