diff --git a/db/fixtures/production/001_application_settings.rb b/db/fixtures/production/001_application_settings.rb index cf6476501424d057f4da9a233ba15b84e3dd9db5..47ce812a70bec91cbccf35781d485950efc1183b 100644 --- a/db/fixtures/production/001_application_settings.rb +++ b/db/fixtures/production/001_application_settings.rb @@ -1,4 +1,4 @@ # frozen_string_literal: true -puts "Creating the default ApplicationSetting record.".color(:green) +puts Rainbow("Creating the default ApplicationSetting record.").green Gitlab::CurrentSettings.current_application_settings diff --git a/db/fixtures/production/003_admin.rb b/db/fixtures/production/003_admin.rb index 2c024f3c32147e66a0b3d40cca95deffc417853b..46d752b8ee596c847649f9bbbf6b058d8ddd37da 100644 --- a/db/fixtures/production/003_admin.rb +++ b/db/fixtures/production/003_admin.rb @@ -21,25 +21,25 @@ if user.persisted? Organizations::Organization.default_organization.add_owner(user) - puts "Administrator account created:".color(:green) + puts Rainbow("Administrator account created:").green puts - puts "login: root".color(:green) + puts Rainbow("login: root").green if user_args.key?(:password) if ::Settings.gitlab['display_initial_root_password'] - puts "password: #{user_args[:password]}".color(:green) + puts Rainbow("password: #{user_args[:password]}").green else - puts "password: ******".color(:green) + puts Rainbow("password: ******").green end else - puts "password: You'll be prompted to create one on your first visit.".color(:green) + puts Rainbow("password: You'll be prompted to create one on your first visit.").green end puts else - puts "Could not create the default administrator account:".color(:red) + puts Rainbow("Could not create the default administrator account:").red puts user.errors.full_messages.map do |message| - puts "--> #{message}".color(:red) + puts Rainbow("--> #{message}").red end puts diff --git a/db/fixtures/production/010_settings.rb b/db/fixtures/production/010_settings.rb index f4e5aed32d8d3ea7a6aae1cd476a632059b00a2a..1df73ea0676d50e4073203aa097ad92f1cd5872c 100644 --- a/db/fixtures/production/010_settings.rb +++ b/db/fixtures/production/010_settings.rb @@ -1,11 +1,11 @@ def save(settings, topic) if settings.save - puts "Saved #{topic}".color(:green) + puts Rainbow("Saved #{topic}").green else - puts "Could not save #{topic}".color(:red) + puts Rainbow("Could not save #{topic}").red puts settings.errors.full_messages.map do |message| - puts "--> #{message}".color(:red) + puts Rainbow("--> #{message}").red end puts exit(1)