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 'lib/tasks/import.rake')
-rw-r--r--lib/tasks/import.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake
index d2056338350..54aee5ff9f5 100644
--- a/lib/tasks/import.rake
+++ b/lib/tasks/import.rake
@@ -1,8 +1,5 @@
# frozen_string_literal: true
-require 'benchmark'
-require 'rainbow/ext/string'
-
class GithubImport
def self.run!(...)
new(...).run!
@@ -124,6 +121,9 @@ class GithubRepos
end
namespace :import do
+ require 'benchmark'
+ require 'rainbow/ext/string'
+
desc 'GitLab | Import | Import a GitHub project - Example: import:github[ToKeN,root,root/blah,my/github_repo] (optional my/github_repo)'
task :github, [:token, :gitlab_username, :project_path] => :environment do |_t, args|
abort 'Project path must be: namespace(s)/project_name'.color(:red) unless args.project_path.include?('/')