add import repo gitlab_shell call

This commit is contained in:
Dmitriy Zaporozhets 2013-02-11 19:41:02 +02:00
parent ea0cb39d63
commit 2a1fac9e4f

View file

@ -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