class DTK::Client::ServiceAndComponentInfo::TransformTo::Info::Component

Public Instance Methods

read_inputs_and_compute_outputs!() click to toggle source
# File lib/client/service_and_component_info/transform_to/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

  # 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_to/info/component.rb, line 47
def component_dsl_input_files_processor
  @component_dsl_input_files_processor ||= input_files_processor(:module)
end
component_dsl_path() click to toggle source
# File lib/client/service_and_component_info/transform_to/info/component.rb, line 41
def component_dsl_path
  matches = directory_file_paths.select { |path| component_dsl_input_files_processor.match?(path) }
  # raise Error, "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_to/info/component.rb, line 37
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_to/info/component.rb, line 33
def info_type
  :component_info
end