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.



20
21
22
# File 'lib/patches/config.rb', line 20

def initialize
  @sidekiq_queue = 'default'
end

Instance Attribute Details

#hipchat_optionsObject

Returns the value of attribute hipchat_options.



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

def hipchat_options
  @hipchat_options
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_hipchatObject

Returns the value of attribute use_hipchat.



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

def use_hipchat
  @use_hipchat
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

#hipchat_api_tokenObject



28
29
30
# File 'lib/patches/config.rb', line 28

def hipchat_api_token
  hipchat_options[:api_token]
end

#hipchat_init_optionsObject



32
33
34
# File 'lib/patches/config.rb', line 32

def hipchat_init_options
  hipchat_options.except(:api_token, :room, :user)
end

#hipchat_roomObject



36
37
38
# File 'lib/patches/config.rb', line 36

def hipchat_room
  hipchat_options[:room]
end

#hipchat_userObject



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

def hipchat_user
  hipchat_options[:user]
end

#slack_channelObject



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

def slack_channel
  slack_options[:channel]
end

#slack_usernameObject



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

def slack_username
  slack_options[:username]
end

#slack_webhook_urlObject



52
53
54
# File 'lib/patches/config.rb', line 52

def slack_webhook_url
  slack_options[:webhook_url]
end