Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gitlab-backup-cli')
-rwxr-xr-xbin/gitlab-backup-cli14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/gitlab-backup-cli b/bin/gitlab-backup-cli
new file mode 100755
index 00000000000..4037684be07
--- /dev/null
+++ b/bin/gitlab-backup-cli
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+
+$:.unshift File.expand_path("../../lib", __FILE__)
+
+# We require APP_PATH when the rails environment is required only,
+# this allows for faster CLI execution when rails is not needed
+APP_PATH = File.expand_path('../config/application', __dir__)
+
+require_relative '../config/boot'
+
+require 'gitlab/backup/cli'
+
+Gitlab::Backup::Cli::Runner.start(ARGV)