Commit 54bf54d8 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '208454-create-self-monitor-project-on-new-install' into 'master'

Add fixtures to automatically create self monitoring project for new GitLab installations

See merge request gitlab-org/gitlab!40404
parents 107377a8 8e6bbdad
---
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