Module: Gitlab::DatabaseImporters::SelfMonitoring::Helpers

Included in:
Project::CreateService, Project::DeleteService
Defined in:
lib/gitlab/database_importers/self_monitoring/helpers.rb

Instance Method Summary collapse

Instance Method Details

#application_settingsObject


7
8
9
# File 'lib/gitlab/database_importers/self_monitoring/helpers.rb', line 7

def application_settings
  @application_settings ||= ApplicationSetting.current_without_cache
end

#project_created?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/gitlab/database_importers/self_monitoring/helpers.rb', line 11

def project_created?
  self_monitoring_project.present?
end

#self_monitoring_projectObject


15
16
17
# File 'lib/gitlab/database_importers/self_monitoring/helpers.rb', line 15

def self_monitoring_project
  application_settings.self_monitoring_project
end

#self_monitoring_project_idObject


19
20
21
# File 'lib/gitlab/database_importers/self_monitoring/helpers.rb', line 19

def self_monitoring_project_id
  application_settings.self_monitoring_project_id
end