Class: Patches::Config::Configuration
- Inherits:
-
Object
- Object
- Patches::Config::Configuration
- Defined in:
- lib/patches/config.rb
Instance Attribute Summary collapse
-
#application_version ⇒ Object
Returns the value of attribute application_version.
-
#notification_prefix ⇒ Object
Returns the value of attribute notification_prefix.
-
#notification_suffix ⇒ Object
Returns the value of attribute notification_suffix.
-
#retry_after_version_mismatch_in ⇒ Object
Returns the value of attribute retry_after_version_mismatch_in.
-
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
-
#sidekiq_parallel ⇒ Object
Returns the value of attribute sidekiq_parallel.
-
#sidekiq_queue ⇒ Object
Returns the value of attribute sidekiq_queue.
-
#slack_options ⇒ Object
Returns the value of attribute slack_options.
-
#use_sidekiq ⇒ Object
Returns the value of attribute use_sidekiq.
-
#use_slack ⇒ Object
Returns the value of attribute use_slack.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #slack_channel ⇒ Object
- #slack_username ⇒ Object
- #slack_webhook_url ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
29 30 31 |
# File 'lib/patches/config.rb', line 29 def initialize @sidekiq_queue = 'default' end |
Instance Attribute Details
#application_version ⇒ Object
Returns the value of attribute application_version.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def application_version @application_version end |
#notification_prefix ⇒ Object
Returns the value of attribute notification_prefix.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def notification_prefix @notification_prefix end |
#notification_suffix ⇒ Object
Returns the value of attribute notification_suffix.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def notification_suffix @notification_suffix end |
#retry_after_version_mismatch_in ⇒ Object
Returns the value of attribute retry_after_version_mismatch_in.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def retry_after_version_mismatch_in @retry_after_version_mismatch_in end |
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def end |
#sidekiq_parallel ⇒ Object
Returns the value of attribute sidekiq_parallel.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def sidekiq_parallel @sidekiq_parallel end |
#sidekiq_queue ⇒ Object
Returns the value of attribute sidekiq_queue.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def sidekiq_queue @sidekiq_queue end |
#slack_options ⇒ Object
Returns the value of attribute slack_options.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def end |
#use_sidekiq ⇒ Object
Returns the value of attribute use_sidekiq.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def use_sidekiq @use_sidekiq end |
#use_slack ⇒ Object
Returns the value of attribute use_slack.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def use_slack @use_slack end |
Instance Method Details
#slack_channel ⇒ Object
41 42 43 |
# File 'lib/patches/config.rb', line 41 def slack_channel [:channel] end |
#slack_username ⇒ Object
45 46 47 |
# File 'lib/patches/config.rb', line 45 def slack_username [:username] end |
#slack_webhook_url ⇒ Object
49 50 51 |
# File 'lib/patches/config.rb', line 49 def slack_webhook_url [:webhook_url] end |