Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot
2023-11-11 00:12:08 +00:00
parent cdcfa7dc14
commit debef4f897
38 changed files with 579 additions and 117 deletions

View File

@ -0,0 +1,34 @@
# frozen_string_literal: true
require 'thor'
module Gitlab
module Backup
module Cli
# GitLab Backup CLI
#
# This supersedes the previous backup rake files and will be
# the default interface to handle backups
class Runner < Thor
def self.exit_on_failure?
true
end
map %w[--version -v] => :version
desc 'version', 'Display the version information'
def version
puts "GitLab Backup CLI (#{VERSION})"
end
private
def rails_environment!
require APP_PATH
Rails.application.load_tasks
end
end
end
end
end

View File

@ -0,0 +1,9 @@
# frozen_string_literal: true
module Gitlab
module Backup
module Cli
VERSION = "0.0.1"
end
end
end