2020-01-07 12:07:55 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module DatabaseImporters
|
|
|
|
module SelfMonitoring
|
|
|
|
module Helpers
|
|
|
|
def application_settings
|
|
|
|
@application_settings ||= ApplicationSetting.current_without_cache
|
|
|
|
end
|
|
|
|
|
|
|
|
def project_created?
|
|
|
|
self_monitoring_project.present?
|
|
|
|
end
|
|
|
|
|
|
|
|
def self_monitoring_project
|
2020-01-28 15:08:36 +00:00
|
|
|
application_settings.self_monitoring_project
|
2020-01-07 12:07:55 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self_monitoring_project_id
|
2020-01-28 15:08:36 +00:00
|
|
|
application_settings.self_monitoring_project_id
|
2020-01-07 12:07:55 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|