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
- #application_settings ⇒ Object
- #project_created? ⇒ Boolean
- #self_monitoring_project ⇒ Object
- #self_monitoring_project_id ⇒ Object
Instance Method Details
#application_settings ⇒ Object
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
11 12 13 |
# File 'lib/gitlab/database_importers/self_monitoring/helpers.rb', line 11 def project_created? self_monitoring_project.present? end |
#self_monitoring_project ⇒ Object
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_id ⇒ Object
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 |