File: gitlab-projects

package info (click to toggle)
gitlab-shell 3.6.6-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 760 kB
  • ctags: 733
  • sloc: ruby: 6,084; makefile: 15; sh: 14
file content (30 lines) | stat: -rwxr-xr-x 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env ruby


$:.unshift File.expand_path('../lib', __FILE__)
require 'gitlab_init'

#
# GitLab Projects shell. Add/remove projects from /home/git/repositories
#
# Ex.
#   /bin/gitlab-projects add-project gitlab/gitlab-ci.git
#
#   /bin/gitlab-projects rm-project gitlab/gitlab-ci.git
#
#   /bin/gitlab-projects list-projects
#
#   /bin/gitlab-projects mv-project gitlab/gitlab-ci.git randx/fork.git
#
#   /bin/gitlab-projects fork-project gitlab/gitlab-ci.git randx
#
#   /bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git
#
require 'gitlab_projects'

# Return non-zero if command execution was not successful
if GitlabProjects.new.exec
  exit 0
else
  exit 1
end