summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-07-09 17:13:19 +0200
committerGabriel Mazetto <gabriel@gitlab.com>2016-08-04 18:55:37 +0200
commit67ae8adc72c1b59c440e0bfbde31df4e0b9920ec (patch)
tree6a31c3de1f9fb2b76c83d66ccd208db18be36bad /lib
parent6f318795083ca3d3726bb6bf5f4dc4081cfba8bf (diff)
downloadgitlab-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.rb4
-rw-r--r--lib/gitlab/redis.rb6
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