Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-11 11:00:05 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-11 18:40:32 +0300
commitfe8b842a755375e4ab9e716c5ab8c34ea868e96a (patch)
treebe9afb21a4614543129ed35ec34b5251b79380be /db
parentb9ea4e35ac679a87ea16ca01a5f02bd96b3b16c3 (diff)
Use Rails.root for CommonMetricsImporter
Diffstat (limited to 'db')
-rw-r--r--db/importers/common_metrics_importer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/importers/common_metrics_importer.rb b/db/importers/common_metrics_importer.rb
index 01fbbd6866b..6302394d7a6 100644
--- a/db/importers/common_metrics_importer.rb
+++ b/db/importers/common_metrics_importer.rb
@@ -35,8 +35,8 @@ module Importers
attr_reader :content
- def initialize(file = 'config/prometheus/common_metrics.yml')
- @content = YAML.load_file(file)
+ def initialize(filename = 'common_metrics.yml')
+ @content = YAML.load_file(Rails.root.join('config', 'prometheus', filename))
end
def execute