Class: Shoryuken::EnvironmentLoader
- Inherits:
-
Object
- Object
- Shoryuken::EnvironmentLoader
- Defined in:
- lib/shoryuken/environment_loader.rb
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.
13 14 15 |
# File 'lib/shoryuken/environment_loader.rb', line 13 def initialize @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/shoryuken/environment_loader.rb', line 3 def @options end |
Class Method Details
.load(options) ⇒ Object
5 6 7 |
# File 'lib/shoryuken/environment_loader.rb', line 5 def self.load() new().load end |
.load_for_rails_console ⇒ Object
9 10 11 |
# File 'lib/shoryuken/environment_loader.rb', line 9 def self.load_for_rails_console load(config_file: (Rails.root + 'config' + 'shoryuken.yml')) end |
Instance Method Details
#load ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/shoryuken/environment_loader.rb', line 17 def load initialize_logger load_rails if [:rails] Shoryuken..merge!() merge_cli_defined_queues Shoryuken..merge!() parse_queues require_workers initialize_aws validate_queues validate_workers patch_deprecated_workers end |