mattman-gitauth 0.0.3.2 → 0.0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/USAGE +27 -0
- data/bin/gitauth +9 -2
- metadata +3 -1
data/USAGE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
GitAuth is an SSH and Ruby based authenticated Git server.
|
|
2
|
+
|
|
3
|
+
gitauth install ADMIN_PUBLIC_KEY
|
|
4
|
+
Pass in a valid SSH public key that will be used by the GitAuth administrator
|
|
5
|
+
|
|
6
|
+
gitauth permissions REPO USERORGROUP [PERMISSION=all,read,write]
|
|
7
|
+
REPO: the repository name you wish to set permissions on
|
|
8
|
+
USER/GROUP: the user or group name you with to give permissions
|
|
9
|
+
PERMISSION:
|
|
10
|
+
Default = all
|
|
11
|
+
The level of permissions you want to give the user or group on the repository in question
|
|
12
|
+
all = read/write
|
|
13
|
+
read = the user can see the repository and pull it, but cannot push changes
|
|
14
|
+
write = user can push changes but can't pull it.
|
|
15
|
+
|
|
16
|
+
gitauth addrepo NAME PATH
|
|
17
|
+
NAME: the name you want your repository to have
|
|
18
|
+
PATH: the part path you want the repository to have, will be ~REPOBASE~/PATH
|
|
19
|
+
|
|
20
|
+
gitauth adduser [--admin] NAME PUBLIC_KEY
|
|
21
|
+
NAME: the name of your new user
|
|
22
|
+
PUBLIC_KEY: a valid path to a copy of the users SSH public key file
|
|
23
|
+
|
|
24
|
+
--admin: pass this flag if you want your user to be able to administer the gitauth install
|
|
25
|
+
|
|
26
|
+
gitauth addgroup NAME
|
|
27
|
+
NAME: the name of your new group
|
data/bin/gitauth
CHANGED
|
@@ -26,8 +26,9 @@ require File.join(File.dirname(__FILE__), "..", "lib", "gitauth")
|
|
|
26
26
|
|
|
27
27
|
class GitAuthRunner < Thor
|
|
28
28
|
|
|
29
|
-
map "
|
|
29
|
+
map "-h" => :help
|
|
30
30
|
map "--help" => :help
|
|
31
|
+
map "--usage" => :usage
|
|
31
32
|
|
|
32
33
|
# Adding users, groups and repos
|
|
33
34
|
|
|
@@ -223,7 +224,13 @@ class GitAuthRunner < Thor
|
|
|
223
224
|
end
|
|
224
225
|
|
|
225
226
|
def usage
|
|
226
|
-
|
|
227
|
+
counter = 1
|
|
228
|
+
file = File.new("USAGE", "r")
|
|
229
|
+
while (line = file.gets)
|
|
230
|
+
puts line
|
|
231
|
+
counter = counter + 1
|
|
232
|
+
end
|
|
233
|
+
file.close
|
|
227
234
|
end
|
|
228
235
|
|
|
229
236
|
protected
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mattman-gitauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.3.
|
|
4
|
+
version: 0.0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Darcy Laycock
|
|
@@ -44,6 +44,7 @@ extensions: []
|
|
|
44
44
|
extra_rdoc_files:
|
|
45
45
|
- README.rdoc
|
|
46
46
|
- LICENSE
|
|
47
|
+
- USAGE
|
|
47
48
|
files:
|
|
48
49
|
- bin/gitauth
|
|
49
50
|
- bin/gitauth-shell
|
|
@@ -60,6 +61,7 @@ files:
|
|
|
60
61
|
- public/gitauth.js
|
|
61
62
|
- public/jquery.js
|
|
62
63
|
- README.rdoc
|
|
64
|
+
- USAGE
|
|
63
65
|
- views/group.erb
|
|
64
66
|
- views/index.erb
|
|
65
67
|
- views/layout.erb
|