class Hiera::Backend::Eyaml::Options
Public Class Methods
Source
# File lib/hiera/backend/eyaml/options.rb, line 10 def self.[](key) @@options ||= {} @@options[key.to_sym] end
Source
# File lib/hiera/backend/eyaml/options.rb, line 5 def self.[]=(key, value) @@options ||= {} @@options[key.to_sym] = value end
Source
# File lib/hiera/backend/eyaml/options.rb, line 15 def self.set(hash) @@options = {} hash.each do |k, v| @@options[k.to_sym] = v end end
Source
# File lib/hiera/backend/eyaml/options.rb, line 22 def self.trace LoggingHelper.trace 'Dump of eyaml tool options dict:' LoggingHelper.trace '--------------------------------' @@options.each do |k, v| LoggingHelper.trace format '%18s %-18s = %18s %-18s', "(#{k.class.name})", k.to_s, "(#{v.class.name})", v.to_s rescue StandardError LoggingHelper.trace format '%18s %-18s = %18s %-18s', "(#{k.class.name})", k.to_s, "(#{v.class.name})", '<unprintable>' # case where v is binary end LoggingHelper.trace '--------------------------------' end