Class: DTK::DSL::ServiceAndComponentInfo::TransformFrom::Info::InputFiles

Inherits:
Info::InputFiles
  • Object
show all
Defined in:
lib/dsl/service_and_component_info/transform_from/info/input_files.rb

Instance Method Summary collapse

Methods inherited from Info::InputFiles

#content_hash?, #content_hash_array, #empty?, #initialize, #input_paths, #match?

Constructor Details

This class inherits a constructor from DTK::DSL::ServiceAndComponentInfo::Info::InputFiles

Instance Method Details

#add_content!(path, text_content) ⇒ Object



21
22
23
24
# File 'lib/dsl/service_and_component_info/transform_from/info/input_files.rb', line 21

def add_content!(path, text_content)
  file_obj = FileObj.new(nil, path, :content => text_content)
  add_hash_content!(path, YamlHelper.parse(file_obj))
end