Class: Soapstone::Config::Load
- Inherits:
-
Object
- Object
- Soapstone::Config::Load
- Defined in:
- lib/soapstone/config/load.rb
Constant Summary collapse
- DEFAULT_CONFIG_FILE =
File.("~/.soapstone/config.yml")
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Load
constructor
A new instance of Load.
Constructor Details
#initialize ⇒ Load
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
.call ⇒ Object
6 7 8 |
# File 'lib/soapstone/config/load.rb', line 6 def self.call new.call end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'lib/soapstone/config/load.rb', line 16 def call Soapstone::Config::Configuration.new(config) end |