Class: Toiler::Utils::EnvironmentLoader
- Inherits:
-
Object
- Object
- Toiler::Utils::EnvironmentLoader
- Defined in:
- lib/toiler/utils/environment_loader.rb
Overview
Takes care of loading componentes to get toiler ready to run
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ EnvironmentLoader
constructor
A new instance of EnvironmentLoader.
- #load ⇒ Object
Constructor Details
#initialize(options) ⇒ EnvironmentLoader
Returns a new instance of EnvironmentLoader.
20 21 22 |
# File 'lib/toiler/utils/environment_loader.rb', line 20 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/toiler/utils/environment_loader.rb', line 10 def @options end |
Class Method Details
.load(options) ⇒ Object
12 13 14 |
# File 'lib/toiler/utils/environment_loader.rb', line 12 def self.load() new().load end |
.load_for_rails_console ⇒ Object
16 17 18 |
# File 'lib/toiler/utils/environment_loader.rb', line 16 def self.load_for_rails_console load(config_file: "#{Rails.root}configtoiler.yml") end |