class DTK::DSL::ServiceAndComponentInfo::Info

Attributes

indexed_input_files[R]
module_ref[R]

Public Class Methods

new(parent) click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 24
def initialize(parent)
  @parent      = parent
  @module_ref  = parent.module_ref
  # indexed by input file type
  @indexed_input_files = ret_indexed_input_files(info_type)
end

Public Instance Methods

compute_outputs!() click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 31
def compute_outputs!        
  raise Error::NoMethodForConcreteClass.new(self.class)
end
output_path_hash_pairs() click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 35
def output_path_hash_pairs
  @parent.output_path_hash_pairs
end
output_path_text_pairs() click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 39
def output_path_text_pairs
  @parent.output_path_text_pairs
end

Private Instance Methods

input_files_class() click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 62
def input_files_class
  @input_files_class ||= @parent.class::Info::InputFiles
end
input_type_hash(input_type) click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 50
def input_type_hash(input_type)
  self.class::INFO_HASH[input_type] || fail(Error, "Illegal input_type '#{input_type}'")
end
output_file_hash(path) click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 54
def output_file_hash(path)
  @parent.output_path_hash_pairs[path] || {}
end
ret_indexed_input_files(input_type) click to toggle source

indexed by input file type

# File lib/dsl/service_and_component_info/info.rb, line 46
def ret_indexed_input_files(input_type)
  input_type_hash(input_type)[:input_files].inject({}) { |h, (k, v) | h.merge(k => input_files_class.new(v[:regexps])) }
end
update_or_add_output_hash!(path, hash_content) click to toggle source
# File lib/dsl/service_and_component_info/info.rb, line 58
def update_or_add_output_hash!(path, hash_content)
  @parent.update_or_add_output_hash!(path, hash_content)
end