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
- #setup_options ⇒ Object
Constructor Details
#initialize(options) ⇒ EnvironmentLoader
Returns a new instance of EnvironmentLoader.
18 19 20 |
# File 'lib/shoryuken/environment_loader.rb', line 18 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/shoryuken/environment_loader.rb', line 5 def @options end |
Class Method Details
.load_for_rails_console ⇒ Object
13 14 15 16 |
# File 'lib/shoryuken/environment_loader.rb', line 13 def self.load_for_rails_console instance = (config_file: (Rails.root + 'config' + 'shoryuken.yml')) instance.load end |
.setup_options(options) ⇒ Object
7 8 9 10 11 |
# File 'lib/shoryuken/environment_loader.rb', line 7 def self.() instance = new() instance. instance end |
Instance Method Details
#load ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/shoryuken/environment_loader.rb', line 28 def load prefix_active_job_queue_names parse_queues require_workers validate_queues validate_workers end |
#setup_options ⇒ Object
22 23 24 25 26 |
# File 'lib/shoryuken/environment_loader.rb', line 22 def initialize_rails if load_rails? initialize_logger end |