Module: Unifig

Defined in:
lib/unifig.rb,
lib/unifig/var.rb,
lib/unifig/init.rb,
lib/unifig/vars.rb,
lib/unifig/config.rb,
lib/unifig/errors.rb,
lib/unifig/version.rb,
lib/unifig/providers.rb,
lib/unifig/providers/local.rb

Overview

Handle all your configuration variables.

Defined Under Namespace

Modules: Init, Providers, Vars Classes: Config, Var

Constant Summary collapse

Error =

Top-level error class. All other errors subclass this.

Class.new(StandardError)
YAMLSyntaxError =

Raised if the YAML in invalid.

Class.new(Error)
MissingConfigError =

Raised if there is no config at the start of the YAML.

Class.new(Error)
MissingProviderError =

Raised if there is no provider that matches the one given in the config.

Class.new(Error)
MissingRequiredError =

Raised if a required var is blank.

Class.new(Error)
DuplicateNameError =

Raised if a variable produces a duplicate method name.

Class.new(Error)
CyclicalSubstitutionError =

Raised if substitutions result in a cyclical dependency.

Class.new(Error)
MissingSubstitutionError =

Raised if a substitution does not exist.

Class.new(Error)
InvalidTypeError =

Raised if a type does not exist.

Class.new(Error)
VERSION =
'0.4.0'