-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlita_config.rb
56 lines (43 loc) · 2.09 KB
/
lita_config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# frozen_string_literal: true
Lita.configure do |config|
# The name your robot will use.
config.robot.name = ENV['ROBOT_NAME']
config.robot.mention_name = ENV['ROBOT_MENTION_NAME']
config.robot.alias = ENV['ROBOT_ALIAS']
config.robot.adapter = ENV['ROBOT_ADAPTER'].to_sym
config.robot.admins = ENV['ROBOT_ADMINS'].split(',')
config.adapters.slack.token = ENV['SLACK_TOKEN']
config.adapters.slack.link_names = ENV['SLACK_LINK_NAMES'] == 'true'
config.adapters.slack.parse = ENV['SLACK_PARSE']
config.adapters.slack.unfurl_links = ENV['SLACK_UNFURL_LINKS'] == 'true'
config.adapters.slack.unfurl_media = ENV['SLACK_UNFURL_MEDIA'] == 'true'
config.handlers.consul.consul_host = ENV['CONSUL_HOST']
config.handlers.consul.consul_port = ENV['CONSUL_PORT']
config.handlers.teamcity.endpoint = ENV['TEAMCITY_ENDPOINT']
config.handlers.teamcity.user = ENV['TEAMCITY_USER']
config.handlers.teamcity.password = ENV['TEAMCITY_PASSWORD']
config.handlers.marathon.url = ENV['MARATHON_URL']
# The locale code for the language to use.
config.robot.locale = :en
# The severity of messages to log. Options are:
# :debug, :info, :warn, :error, :fatal
# Messages at the selected level and above will be logged.
config.robot.log_level = :debug
# An array of user IDs that are considered administrators. These users
# the ability to add and remove other users from authorization groups.
# What is considered a user ID will change depending on which adapter you use.
# config.robot.admins = ["1", "2"]
# The adapter you want to connect with. Make sure you've added the
# appropriate gem to the Gemfile.
# config.robot.adapter = :shell
## Example: Set options for the chosen adapter.
# config.adapter.username = "myname"
# config.adapter.password = "secret"
## Example: Set options for the Redis connection.
# config.redis.host = "127.0.0.1"
# config.redis.port = 1234
config.redis[:url] = ENV['REDIS_URL']
## Example: Set configuration for any loaded handlers. See the handler's
## documentation for options.
# config.handlers.some_handler.some_config_key = "value"
end