Sha256: ade3529b14d9e57c56e1bab89164a17766f1549cdcb7e38fd6f442b5fb17f063

Contents?: true

Size: 335 Bytes

Versions: 11

Compression:

Stored size: 335 Bytes

Contents

module Tdc
  module YamlReaders
    #
    # YAML source is a YAML file that undergoes ERB expansion.
    #
    class YamlReaderWithExpansion < Tdc::YamlReaders::YamlReaderBase
      def file_extension
        ".yml.erb"
      end

      def source_string
        ERB.new(File.read(definitions_file)).result
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tdc-1.1 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-1.0 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.6.2 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.6.1 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.6.0 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.5.0 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.4.7 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.4.6.1 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.4.6 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.4.4.1 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb
tdc-0.4.4 lib/tdc/yaml_readers/yaml_reader_with_expansion.rb