Class: Servitude::Configuration

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/servitude/configuration.rb

Direct Known Subclasses

EnvironmentConfiguration

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Configuration



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/servitude/configuration.rb', line 8

def initialize( options={} )
  options.reject! { |k,v| v.nil? }

  if options[:use_config]
    @_config = Hashie::Mash.new( file_options( options[:config] ))
    _config.merge!( options )
  else
    @_config = Hashie::Mash.new( options )
  end

  super _config
end