Class: CiSlack::Configuration
- Inherits:
-
Object
- Object
- CiSlack::Configuration
- Defined in:
- lib/ci_slack/configuration.rb
Instance Attribute Summary collapse
-
#bot_name ⇒ Object
Returns the value of attribute bot_name.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#ci_computer ⇒ Object
Returns the value of attribute ci_computer.
-
#failed_icon ⇒ Object
Returns the value of attribute failed_icon.
-
#failed_title ⇒ Object
Returns the value of attribute failed_title.
-
#project ⇒ Object
Returns the value of attribute project.
-
#skip_success_message ⇒ Object
Returns the value of attribute skip_success_message.
-
#slack_names ⇒ Object
Returns the value of attribute slack_names.
-
#success_icon ⇒ Object
Returns the value of attribute success_icon.
-
#success_title ⇒ Object
Returns the value of attribute success_title.
-
#webhook ⇒ Object
Returns the value of attribute webhook.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ci_slack/configuration.rb', line 9 def initialize @webhook = '' @channel = '#ci' @bot_name = 'CI BOT' @project = '' @slack_names = {} @ci_computer = 'CI' @failed_icon = 'failed' @success_icon = 'successful' @failed_title = 'CI FAILED!' @success_title = 'SUCCESS' = [] end |
Instance Attribute Details
#bot_name ⇒ Object
Returns the value of attribute bot_name.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def bot_name @bot_name end |
#channel ⇒ Object
Returns the value of attribute channel.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def channel @channel end |
#ci_computer ⇒ Object
Returns the value of attribute ci_computer.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def ci_computer @ci_computer end |
#failed_icon ⇒ Object
Returns the value of attribute failed_icon.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def failed_icon @failed_icon end |
#failed_title ⇒ Object
Returns the value of attribute failed_title.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def failed_title @failed_title end |
#project ⇒ Object
Returns the value of attribute project.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def project @project end |
#skip_success_message ⇒ Object
Returns the value of attribute skip_success_message.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def end |
#slack_names ⇒ Object
Returns the value of attribute slack_names.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def slack_names @slack_names end |
#success_icon ⇒ Object
Returns the value of attribute success_icon.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def success_icon @success_icon end |
#success_title ⇒ Object
Returns the value of attribute success_title.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def success_title @success_title end |
#webhook ⇒ Object
Returns the value of attribute webhook.
3 4 5 |
# File 'lib/ci_slack/configuration.rb', line 3 def webhook @webhook end |