Commit 8e6bbdad authored by rpereira2's avatar rpereira2

Add fixtures to create self monitoring project

Add production and development fixtures to ensure that the self
monitoring project is automatically created for new GitLab
installations.
parent 33535063
---
title: Automatically create self monitoring project on new GitLab installations
merge_request: 40404
author:
type: changed
# frozen_string_literal: true
response = ::Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService.new.execute
if response[:status] == :success
puts "Successfully created self monitoring project."
else
puts "Could not create self monitoring project due to error: '#{response[:message]}'"
puts "Check logs for more details."
end
# frozen_string_literal: true
::Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService.new.execute
if response[:status] == :success
puts "Successfully created self monitoring project."
else
puts "Could not create self monitoring project due to error: '#{response[:message]}'"
puts "Check logs for more details."
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment