Class: Patches::Config::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_versionObject

Returns the value of attribute application_version.



17
18
19
# File 'lib/patches/config.rb', line 17

def application_version
  @application_version
end

#notification_prefixObject

Returns the value of attribute notification_prefix.



17
18
19
# File 'lib/patches/config.rb', line 17

def notification_prefix
  @notification_prefix
end

#notification_suffixObject

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_inObject

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_optionsObject

Returns the value of attribute sidekiq_options.



17
18
19
# File 'lib/patches/config.rb', line 17

def sidekiq_options
  @sidekiq_options
end

#sidekiq_parallelObject

Returns the value of attribute sidekiq_parallel.



17
18
19
# File 'lib/patches/config.rb', line 17

def sidekiq_parallel
  @sidekiq_parallel
end

#sidekiq_queueObject

Returns the value of attribute sidekiq_queue.



17
18
19
# File 'lib/patches/config.rb', line 17

def sidekiq_queue
  @sidekiq_queue
end

#slack_optionsObject

Returns the value of attribute slack_options.



17
18
19
# File 'lib/patches/config.rb', line 17

def slack_options
  @slack_options
end

#use_sidekiqObject

Returns the value of attribute use_sidekiq.



17
18
19
# File 'lib/patches/config.rb', line 17

def use_sidekiq
  @use_sidekiq
end

#use_slackObject

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_channelObject



41
42
43
# File 'lib/patches/config.rb', line 41

def slack_channel
  slack_options[:channel]
end

#slack_usernameObject



45
46
47
# File 'lib/patches/config.rb', line 45

def slack_username
  slack_options[:username]
end

#slack_webhook_urlObject



49
50
51
# File 'lib/patches/config.rb', line 49

def slack_webhook_url
  slack_options[:webhook_url]
end