Sha256: e1ec53a3f481adf78a336317fef602652ae5696b3f47c4209f5d04ed4feedfa8

Contents?: true

Size: 751 Bytes

Versions: 4

Compression:

Stored size: 751 Bytes

Contents

class Hiera
  module Backend
    module Eyaml
      class Options

        def self.[]= key, value
          @@options ||= {}
          @@options[ key.to_sym ] = value
        end

        def self.[] key
          @@options ||= {}
          @@options[ key.to_sym ]
        end

        def self.set hash
          @@options = {}
          hash.each do |k, v|
            @@options[ k.to_sym ] = v
          end
        end

        def self.debug
          Utils::debug "Dump of eyaml tool options dict:"
          Utils::debug "--------------------------------"
          @@options.each do |k, v|
            Utils::debug "#{k.class.name}:#{k} = #{v.class.name}:#{v}"
          end
          Utils::debug ""
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hiera-eyaml-1.3.8 lib/hiera/backend/eyaml/options.rb
hiera-eyaml-1.3.7 lib/hiera/backend/eyaml/options.rb
hiera-eyaml-1.3.6 lib/hiera/backend/eyaml/options.rb
hiera-eyaml-1.3.5 lib/hiera/backend/eyaml/options.rb