add import repo gitlab_shell call
This commit is contained in:
parent
ea0cb39d63
commit
2a1fac9e4f
1 changed files with 11 additions and 0 deletions
|
@ -13,6 +13,17 @@ module Gitlab
|
||||||
system("/home/git/gitlab-shell/bin/gitlab-projects add-project #{name}.git")
|
system("/home/git/gitlab-shell/bin/gitlab-projects add-project #{name}.git")
|
||||||
end
|
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
|
# Remove repository from file system
|
||||||
#
|
#
|
||||||
# name - project path with namespace
|
# name - project path with namespace
|
||||||
|
|
Loading…
Reference in a new issue