gtool 0.0.5 → 0.0.6
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/README.markdown +42 -16
- data/lib/gtool/provision/group.rb +19 -0
- data/lib/gtool/version.rb +1 -1
- metadata +4 -4
data/README.markdown
CHANGED
@@ -34,12 +34,13 @@ Usage
|
|
34
34
|
|
35
35
|
% gtool
|
36
36
|
Tasks:
|
37
|
-
gtool auth [COMMAND]
|
38
|
-
gtool customerid
|
39
|
-
gtool group [COMMAND]
|
40
|
-
gtool help [TASK]
|
41
|
-
gtool
|
42
|
-
gtool
|
37
|
+
gtool auth [COMMAND] # GProv authentication operations
|
38
|
+
gtool customerid # Display Customer ID for the domain
|
39
|
+
gtool group [COMMAND] # GProv group provisioning
|
40
|
+
gtool help [TASK] # Describe available tasks or one specific task
|
41
|
+
gtool orgmember [COMMAND] # GProv organizational member provisioning
|
42
|
+
gtool orgunit [COMMAND] # GProv organizational unit provisioning
|
43
|
+
gtool user [COMMAND] # GProv user provisioning
|
43
44
|
|
44
45
|
- - -
|
45
46
|
|
@@ -63,14 +64,14 @@ Usage
|
|
63
64
|
|
64
65
|
- - -
|
65
66
|
|
66
|
-
**
|
67
|
+
**View Customer ID information**
|
67
68
|
|
68
|
-
% gtool
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
% gtool customerid
|
70
|
+
Customer id: CUSTOMER_ID_HERE
|
71
|
+
Name: example.com
|
72
|
+
Description:
|
73
|
+
Customer org unit name: example.com
|
74
|
+
Customer org unit description: example.com
|
74
75
|
|
75
76
|
- - -
|
76
77
|
|
@@ -84,15 +85,40 @@ Usage
|
|
84
85
|
gtool group list # List groups
|
85
86
|
gtool group members GROUP # Display members of a group
|
86
87
|
|
88
|
+
- - -
|
87
89
|
|
90
|
+
**Users**
|
91
|
+
|
92
|
+
% gtool user
|
93
|
+
Tasks:
|
94
|
+
gtool user create USER # Create a new user
|
95
|
+
gtool user delete USER # Delete a user
|
96
|
+
gtool user get USER # Get a user
|
97
|
+
gtool user groups USER # Retrieve groups for a user
|
98
|
+
gtool user help [COMMAND] # Describe subcommands or one specific subcommand
|
99
|
+
gtool user list # List users
|
100
|
+
gtool user update USER # Update an existing user
|
101
|
+
|
102
|
+
- - -
|
88
103
|
|
89
104
|
**Organizational Units**
|
90
105
|
|
91
106
|
% gtool orgunit
|
92
107
|
Tasks:
|
93
|
-
gtool orgunit get ORGUNIT
|
94
|
-
gtool orgunit
|
95
|
-
gtool orgunit
|
108
|
+
gtool orgunit get ORGUNIT # Get an orgunit
|
109
|
+
gtool orgunit help [COMMAND] # Describe subcommands or one specific subcommand
|
110
|
+
gtool orgunit list # List organizational units
|
111
|
+
|
112
|
+
- - -
|
113
|
+
|
114
|
+
**Organizational Unit Members**
|
115
|
+
|
116
|
+
% gtool orgmember
|
117
|
+
Tasks:
|
118
|
+
gtool orgmember get MEMBER # Retrieve a specific orgunit member
|
119
|
+
gtool orgmember help [COMMAND] # Describe subcommands or one specific subcommand
|
120
|
+
gtool orgmember list # Get the members of an orgunit
|
121
|
+
gtool orgmember move ORG_MEMBER, NEW_ORGUNIT # Move an organization unit member
|
96
122
|
|
97
123
|
- - -
|
98
124
|
|
@@ -63,6 +63,25 @@ module Gtool
|
|
63
63
|
# TODO update group This is pending on the the backing group being able
|
64
64
|
# to store the group_id for the case that the group_id here is changed,
|
65
65
|
# but needs to post back to a specific url
|
66
|
+
desc "update GROUP", "Update group information"
|
67
|
+
def update(groupname)
|
68
|
+
say "#{self.class}#update not implemented!", :yellow
|
69
|
+
end
|
70
|
+
|
71
|
+
desc "delete GROUP", "Delete a group"
|
72
|
+
def delete(groupname)
|
73
|
+
connection = Gtool::Auth.connection(options)
|
74
|
+
invoke "group:get", [groupname]
|
75
|
+
group = GProv::Provision::Group.get(connection, groupname)
|
76
|
+
|
77
|
+
if group.nil?
|
78
|
+
say "Group #{groupname} not found!", :red
|
79
|
+
elsif (yes? "Permanently delete this group?") and (groupname == ask("Type in #{groupname} to confirm:"))
|
80
|
+
group.delete!
|
81
|
+
else
|
82
|
+
say "Not deleting group \"#{groupname}\".", :yellow
|
83
|
+
end
|
84
|
+
end
|
66
85
|
|
67
86
|
desc "members GROUP", "Display members of a group"
|
68
87
|
def members(groupname)
|
data/lib/gtool/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adrien Thebo
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-02-
|
18
|
+
date: 2012-02-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: gprov
|