diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2016-07-09 17:13:19 +0200 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2016-08-04 18:55:37 +0200 |
commit | 67ae8adc72c1b59c440e0bfbde31df4e0b9920ec (patch) | |
tree | 6a31c3de1f9fb2b76c83d66ccd208db18be36bad /lib | |
parent | 6f318795083ca3d3726bb6bf5f4dc4081cfba8bf (diff) | |
download | gitlab-ce-67ae8adc72c1b59c440e0bfbde31df4e0b9920ec.tar.gz |
Fixed MailRoom specs and make sure it works with new resque.yml format
Some codestyle changes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/mail_room.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/redis.rb | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/gitlab/mail_room.rb b/lib/gitlab/mail_room.rb index 781c89579b6..b49cf1c633b 100644 --- a/lib/gitlab/mail_room.rb +++ b/lib/gitlab/mail_room.rb @@ -14,6 +14,10 @@ module Gitlab @config ||= fetch_config end + def reload_config! + @config = fetch_config + end + private def fetch_config diff --git a/lib/gitlab/redis.rb b/lib/gitlab/redis.rb index 9c4b01bfe1a..70e333eb29f 100644 --- a/lib/gitlab/redis.rb +++ b/lib/gitlab/redis.rb @@ -24,7 +24,7 @@ module Gitlab # @deprecated Use .params instead to get sentinel support def url - raw_config_hash[:url] + new.url end def with @@ -45,6 +45,10 @@ module Gitlab redis_store_options end + def url + raw_config_hash[:url] + end + private def redis_store_options |