Class: DTK::DSL::FileGenerator
- Inherits:
-
Object
- Object
- DTK::DSL::FileGenerator
- Defined in:
- lib/dsl/file_generator.rb,
lib/dsl/file_generator/yaml_object.rb,
lib/dsl/file_generator/content_input.rb,
lib/dsl/file_generator/content_input/hash.rb,
lib/dsl/file_generator/content_input/array.rb,
lib/dsl/file_generator/content_input/string.rb
Defined Under Namespace
Classes: ContentInput, YamlObject
Class Method Summary collapse
-
.generate_yaml_file_path__content_array(parse_template_type, top_file_path, content_input, dsl_version, opts = {}) ⇒ Object
opts can have keys :filter.
-
.generate_yaml_object(parse_template_type, content_input, dsl_version, opts = {}) ⇒ Object
opts can have keys :filter.
-
.generate_yaml_text(parse_template_type, content_input, dsl_version, opts = {}) ⇒ Object
opts can have keys :filter.
Class Method Details
.generate_yaml_file_path__content_array(parse_template_type, top_file_path, content_input, dsl_version, opts = {}) ⇒ Object
opts can have keys
:filter
40 41 42 43 |
# File 'lib/dsl/file_generator.rb', line 40 def self.generate_yaml_file_path__content_array(parse_template_type, top_file_path, content_input, dsl_version, opts = {}) template_class = Template.template_class(parse_template_type, dsl_version) template_class.create_for_generation(content_input, opts).generate_yaml_file_path__content_array(top_file_path) end |
.generate_yaml_object(parse_template_type, content_input, dsl_version, opts = {}) ⇒ Object
opts can have keys
:filter
26 27 28 29 |
# File 'lib/dsl/file_generator.rb', line 26 def self.generate_yaml_object(parse_template_type, content_input, dsl_version, opts = {}) template_class = Template.template_class(parse_template_type, dsl_version) template_class.create_for_generation(content_input, opts).generate_yaml_object end |
.generate_yaml_text(parse_template_type, content_input, dsl_version, opts = {}) ⇒ Object
opts can have keys
:filter
33 34 35 36 |
# File 'lib/dsl/file_generator.rb', line 33 def self.generate_yaml_text(parse_template_type, content_input, dsl_version, opts = {}) template_class = Template.template_class(parse_template_type, dsl_version) template_class.create_for_generation(content_input, opts).generate_yaml_text end |