class DTK::Client::ServiceAndComponentInfo::TransformFrom::Info::Component

Public Instance Methods

read_inputs_and_compute_outputs!() click to toggle source
# File lib/client/service_and_component_info/transform_from/info/component.rb, line 21
def read_inputs_and_compute_outputs!
  # Input component dsl file and module_ref filedslpdslp
  if component_dsl_path = component_dsl_path()
    add_content!(component_dsl_input_files_processor, component_dsl_path)
  end

  if module_refs_path = module_refs_path()
    add_content!(module_ref_input_files_processor, module_refs_path)
  end

  # compute and cache outputs
  dtk_dsl_component_info_processor.compute_outputs!
end

Private Instance Methods

component_dsl_input_files_processor() click to toggle source
# File lib/client/service_and_component_info/transform_from/info/component.rb, line 51
def component_dsl_input_files_processor
  @component_dsl_input_files_processor ||= input_files_processor(:component_dsl_file)
end
component_dsl_path() click to toggle source
# File lib/client/service_and_component_info/transform_from/info/component.rb, line 45
def component_dsl_path
  matches = dsl_file_matches { |path| component_dsl_input_files_processor.match?(path) }
  raise Error::MissingDslFile, "Unexpected that there is not a unique component dsl file" if matches.size != 1
  matches.first
end
dtk_dsl_component_info_processor() click to toggle source
# File lib/client/service_and_component_info/transform_from/info/component.rb, line 41
def dtk_dsl_component_info_processor
  @dtk_dsl_info_processor
end
info_type() click to toggle source
# File lib/client/service_and_component_info/transform_from/info/component.rb, line 37
def info_type
  :component_info
end