lib/hieracles/hiera.rb in hieracles-0.1.7 vs lib/hieracles/hiera.rb in hieracles-0.2.0

- old
+ new

@@ -1,10 +1,10 @@ module Hieracles class Hiera def initialize - raise IOError, "Hierafile #{Config.hierafile} not found." unless File.exist? Config.path('hierafile') - @hierafile = Config.path('hierafile') + raise IOError, "Hierafile #{Config.hierafile} not found." unless File.exist? Config.hierafile + @hierafile = Config.hierafile @loaded = YAML.load_file(@hierafile) end def datapath raise TypeError, "Sorry hieracles only knows yaml backend for now." unless @loaded[:yaml]