Class: Soapstone::Config::Load

Inherits:
Object
  • Object
show all
Defined in:
lib/soapstone/config/load.rb

Constant Summary collapse

DEFAULT_CONFIG_FILE =
File.expand_path("~/.soapstone/config.yml")

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLoad

Returns a new instance of Load.



10
11
12
13
14
# File 'lib/soapstone/config/load.rb', line 10

def initialize
  @config_file = DEFAULT_CONFIG_FILE
  ensure_config_directory
  setup_config
end

Class Method Details

.callObject



6
7
8
# File 'lib/soapstone/config/load.rb', line 6

def self.call
  new.call
end

Instance Method Details

#callObject



16
17
18
# File 'lib/soapstone/config/load.rb', line 16

def call
  Soapstone::Config::Configuration.new(config)
end