class DTK::DSL::ServiceAndComponentInfo::TransformTo::Parser::ComponentModule::TopDSL

Constants

COMPONENT_MODULE_DSL_VERSION

Public Instance Methods

update_output_hash?() click to toggle source
# File lib/dsl/service_and_component_info/transform_to/parser/component_module/top_dsl.rb, line 22
def update_output_hash?
  if module_dsl_canonical_hash = input_file_hash?(:module)
    add_module_info_to_output_hash!
    if component_defs = module_dsl_canonical_hash.val(:ComponentDefs)
      add_components_to_output_hash!(component_defs)
      output_hash
    end
  end
end

Private Instance Methods

add_components_to_output_hash!(component_defs) click to toggle source
# File lib/dsl/service_and_component_info/transform_to/parser/component_module/top_dsl.rb, line 40
def add_components_to_output_hash!(component_defs)
  output_hash['components'] = component_defs
end
add_module_info_to_output_hash!() click to toggle source
# File lib/dsl/service_and_component_info/transform_to/parser/component_module/top_dsl.rb, line 35
def add_module_info_to_output_hash!
  output_hash['module']      = info_object.module_ref.module_name
  output_hash['dsl_version'] = COMPONENT_MODULE_DSL_VERSION
end