conjur-cli 2.3.0 → 2.4.0
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/Gemfile +0 -6
- data/lib/conjur/command/roles.rb +15 -1
- data/lib/conjur/version.rb +1 -1
- metadata +4 -4
data/Gemfile
CHANGED
@@ -5,9 +5,3 @@ gemspec
|
|
5
5
|
|
6
6
|
# when developing in parallel, you might want to uncomment the following:
|
7
7
|
# gem 'conjur-api', git: 'https://github.com/inscitiv/api-ruby.git', branch: 'master'
|
8
|
-
|
9
|
-
gem 'conjur-asset-cmi-study', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-cmi-study', branch: 'master'
|
10
|
-
gem 'conjur-asset-environment', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-environment', branch: 'master'
|
11
|
-
gem 'conjur-asset-deployment', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-deployment', branch: 'master'
|
12
|
-
gem 'conjur-asset-service-gateway', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-service-gateway', branch: 'master'
|
13
|
-
gem 'conjur-asset-key-pair', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-key-pair', branch: 'master'
|
data/lib/conjur/command/roles.rb
CHANGED
@@ -40,9 +40,23 @@ class Conjur::Command::Roles < Conjur::Command
|
|
40
40
|
desc "Lists all members of the role"
|
41
41
|
arg_name "role"
|
42
42
|
command :members do |c|
|
43
|
+
c.desc "Verbose output"
|
44
|
+
c.switch [:v,:verbose]
|
45
|
+
|
43
46
|
c.action do |global_options,options,args|
|
44
47
|
role = args.shift || api.user(api.username).roleid
|
45
|
-
|
48
|
+
result = if options[:v]
|
49
|
+
api.role(role).members.collect {|member|
|
50
|
+
{
|
51
|
+
member: member.member.roleid,
|
52
|
+
grantor: member.grantor.roleid,
|
53
|
+
admin_option: member.admin_option
|
54
|
+
}
|
55
|
+
}
|
56
|
+
else
|
57
|
+
api.role(role).members.map(&:member).map(&:roleid)
|
58
|
+
end
|
59
|
+
display result
|
46
60
|
end
|
47
61
|
end
|
48
62
|
|
data/lib/conjur/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjur-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: conjur-api
|
@@ -246,7 +246,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
246
246
|
version: '0'
|
247
247
|
segments:
|
248
248
|
- 0
|
249
|
-
hash:
|
249
|
+
hash: -2076572012475465536
|
250
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
251
|
none: false
|
252
252
|
requirements:
|
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: '0'
|
256
256
|
segments:
|
257
257
|
- 0
|
258
|
-
hash:
|
258
|
+
hash: -2076572012475465536
|
259
259
|
requirements: []
|
260
260
|
rubyforge_project:
|
261
261
|
rubygems_version: 1.8.25
|