Class: Metrux::ConfigBuilders::Yaml
- Inherits:
-
Object
- Object
- Metrux::ConfigBuilders::Yaml
- Defined in:
- lib/metrux/config_builders/yaml.rb
Constant Summary collapse
- FileLoadError =
Class.new(ConfigurationError)
- EnvironmentNotFoundError =
Class.new(FileLoadError)
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(config_path, env) ⇒ Yaml
constructor
A new instance of Yaml.
Constructor Details
#initialize(config_path, env) ⇒ Yaml
Returns a new instance of Yaml.
7 8 9 10 |
# File 'lib/metrux/config_builders/yaml.rb', line 7 def initialize(config_path, env) @config_path = config_path @env = env end |
Instance Method Details
#build ⇒ Object
12 13 14 |
# File 'lib/metrux/config_builders/yaml.rb', line 12 def build file_exists? ? yaml_content : null_content end |