Class: Etcher::Loaders::YAML
- Inherits:
-
Object
- Object
- Etcher::Loaders::YAML
- Defined in:
- lib/etcher/loaders/yaml.rb
Overview
Loads a YAML configuration.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(path, fallback: Core::EMPTY_HASH, logger: LOGGER) ⇒ YAML
constructor
A new instance of YAML.
Constructor Details
Instance Method Details
#call ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/etcher/loaders/yaml.rb', line 22 def call load rescue Errno::ENOENT, TypeError then debug_invalid_path rescue Psych::AliasesNotEnabled then alias_failure rescue Psych::DisallowedClass => error then disallowed_failure error rescue Psych::SyntaxError => error then syntax_failure error end |