Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
30185044
Commit
30185044
authored
Mar 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return non-zero status if gitlab-projects or gitlab-keys cmd was not successful
parent
f0eb8017
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
5 deletions
+18
-5
CHANGELOG
CHANGELOG
+3
-0
VERSION
VERSION
+1
-1
bin/gitlab-keys
bin/gitlab-keys
+6
-2
bin/gitlab-projects
bin/gitlab-projects
+6
-2
lib/gitlab_keys.rb
lib/gitlab_keys.rb
+1
-0
lib/gitlab_projects.rb
lib/gitlab_projects.rb
+1
-0
No files found.
CHANGELOG
View file @
30185044
v1.2.0
- Return non-zero result if gitlab-projects and gitlab-keys execution was not successful
v1.1.0
v1.1.0
- added mv-project feature
- added mv-project feature
- increased test coverage
- increased test coverage
...
...
VERSION
View file @
30185044
1.
1
.0
1.
2
.0
bin/gitlab-keys
View file @
30185044
...
@@ -12,6 +12,10 @@ require_relative '../lib/gitlab_init'
...
@@ -12,6 +12,10 @@ require_relative '../lib/gitlab_init'
#
#
require
File
.
join
(
ROOT_PATH
,
'lib'
,
'gitlab_keys'
)
require
File
.
join
(
ROOT_PATH
,
'lib'
,
'gitlab_keys'
)
GitlabKeys
.
new
.
exec
exit
# Return non-zero if command execution was not successful
if
GitlabKeys
.
new
.
exec
exit
0
else
exit
1
end
bin/gitlab-projects
View file @
30185044
...
@@ -16,6 +16,10 @@ require_relative '../lib/gitlab_init'
...
@@ -16,6 +16,10 @@ require_relative '../lib/gitlab_init'
# /bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git
# /bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git
#
#
require
File
.
join
(
ROOT_PATH
,
'lib'
,
'gitlab_projects'
)
require
File
.
join
(
ROOT_PATH
,
'lib'
,
'gitlab_projects'
)
GitlabProjects
.
new
.
exec
exit
# Return non-zero if command execution was not successful
if
GitlabProjects
.
new
.
exec
exit
0
else
exit
1
end
lib/gitlab_keys.rb
View file @
30185044
...
@@ -18,6 +18,7 @@ class GitlabKeys
...
@@ -18,6 +18,7 @@ class GitlabKeys
when
'rm-key'
;
rm_key
when
'rm-key'
;
rm_key
else
else
puts
'not allowed'
puts
'not allowed'
false
end
end
end
end
...
...
lib/gitlab_projects.rb
View file @
30185044
...
@@ -31,6 +31,7 @@ class GitlabProjects
...
@@ -31,6 +31,7 @@ class GitlabProjects
when
'import-project'
;
import_project
when
'import-project'
;
import_project
else
else
puts
'not allowed'
puts
'not allowed'
false
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment