Commit 2a1fac9e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

add import repo gitlab_shell call

parent ea0cb39d
......@@ -13,6 +13,17 @@ module Gitlab
system("/home/git/gitlab-shell/bin/gitlab-projects add-project #{name}.git")
end
# Import repository
#
# name - project path with namespace
#
# Ex.
# import_repository("gitlab/gitlab-ci", "https://github.com/randx/six.git")
#
def import_repository(name, url)
system("/home/git/gitlab-shell/bin/gitlab-projects import-project #{name}.git #{url}")
end
# Remove repository from file system
#
# name - project path with namespace
......
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