Class: Sidekiq::Tasks::Config
- Inherits:
-
Object
- Object
- Sidekiq::Tasks::Config
- Includes:
- Validations
- Defined in:
- lib/sidekiq/tasks/config.rb
Constant Summary collapse
- DEFAULT_SIDEKIQ_OPTIONS =
{ queue: "default", retry: false, }.freeze
- DEFAULT_STRATEGIES =
[ Sidekiq::Tasks::Strategies::RakeTask.new( rules: [ Sidekiq::Tasks::Strategies::Rules::TaskFromLib.new, Sidekiq::Tasks::Strategies::Rules::EnableWithComment.new, ] ), ].freeze
Instance Attribute Summary collapse
-
#authorization ⇒ Object
Returns the value of attribute authorization.
-
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
-
#strategies ⇒ Object
Returns the value of attribute strategies.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Methods included from Validations
validate_array_classes!, validate_class!, validate_expected_values!, validate_hash_option!
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
22 23 24 25 26 |
# File 'lib/sidekiq/tasks/config.rb', line 22 def initialize = DEFAULT_SIDEKIQ_OPTIONS @strategies = DEFAULT_STRATEGIES = ->(_env) { true } end |
Instance Attribute Details
#authorization ⇒ Object
Returns the value of attribute authorization.
20 21 22 |
# File 'lib/sidekiq/tasks/config.rb', line 20 def end |
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
20 21 22 |
# File 'lib/sidekiq/tasks/config.rb', line 20 def end |
#strategies ⇒ Object
Returns the value of attribute strategies.
20 21 22 |
# File 'lib/sidekiq/tasks/config.rb', line 20 def strategies @strategies end |