Class Hiera
In: lib/hiera.rb
lib/hiera/backend/json_backend.rb
lib/hiera/backend/yaml_backend.rb
lib/hiera/util.rb
lib/hiera/console_logger.rb
lib/hiera/noop_logger.rb
lib/hiera/backend.rb
lib/hiera/puppet_logger.rb
Parent: Object

Methods

debug   logger=   lookup   new   version   warn  

Classes and Modules

Module Hiera::Backend
Module Hiera::Console_logger
Module Hiera::Noop_logger
Module Hiera::Puppet_logger
Module Hiera::Util
Class Hiera::Config

Constants

VERSION = "1.1.0"

Attributes

config  [R] 
logger  [R] 
options  [R] 

Public Class methods

Loggers are pluggable, just provide a class called Hiera::Foo_logger and respond to :warn and :debug

See hiera-puppet for an example that uses the Puppet loging system instead of our own

If the config option is a string its assumed to be a filename, else a hash of what would have been in the YAML config file

Public Instance methods

Calls the backends to do the actual lookup.

The scope can be anything that responds to [], if you have input data like a Puppet Scope that does not you can wrap that data in a class that has a [] method that fetches the data from your source. See hiera-puppet for an example of this.

The order-override will insert as first in the hierarchy a data source of your choice.

[Validate]