Method: Axl::Configuration#initialize
- Defined in:
- lib/axl/configuration.rb
#initialize(path, env: nil) ⇒ Configuration
INITIALIZER
40 41 42 43 44 45 46 |
# File 'lib/axl/configuration.rb', line 40 def initialize(path, env: nil) begin @config = YAML.load_file(path)[env.to_s] rescue Errno::ENOENT raise ConfigurationFileNotFoundError.new(path) unless Pathname.new(path).exist? end end |