lib/hieracles/config.rb in hieracles-0.3.0 vs lib/hieracles/config.rb in hieracles-0.3.1

- old
+ new

@@ -2,18 +2,16 @@ require 'json' require 'yaml' require 'hieracles/utils' module Hieracles - # configuration singleton - module Config + class Config include Hieracles::Utils - extend self attr_reader :extraparams, :server, :classpath, :scope, :puppetdb, :usedb, :modulepath, :hierafile, :basepath, :encpath, :format, :interactive - def load(options) + def initialize(options) @options = options @optionfile = @options[:config] || defaultconfig @extraparams = extract_params(options[:params]) @values = get_config(@optionfile) @server = @values['server']