knife-opc 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/opc_user_list.rb +12 -2
- data/lib/knife-opc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3a53e5648286443bac177c18abd99f1fab7c2859e6536c5513a48ca8cc50b84
|
4
|
+
data.tar.gz: eac1bd7ce2e7cd8e18bd4ee29d5d151f89ebe9a2f2b8364f1d5a49e9cfec034a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe3ab2ac4123cc30e7bdf06035c0cd8fa7d3d1bf24efb971135f54c1e887940b81d76a39596cfe703739d857ae549a2dbca05630586ea56256d6baf0936553f
|
7
|
+
data.tar.gz: 58648d6287565e3b145d7e34224d9873d2199ed2e6d1310e07b5baf5d71bb957662d9266dbcf0f02fc1e7ddf242861519498d4e82b01e3094ece058ef3d2d823
|
@@ -27,11 +27,21 @@ module Opc
|
|
27
27
|
short: "-w",
|
28
28
|
description: "Show corresponding URIs"
|
29
29
|
|
30
|
+
option :all_info,
|
31
|
+
long: "--all-info",
|
32
|
+
short: "-a",
|
33
|
+
description: "Show corresponding details i.e. username, email, first_name, last_name, display_name"
|
34
|
+
|
30
35
|
include Chef::Mixin::RootRestv0
|
31
36
|
|
32
37
|
def run
|
33
|
-
|
34
|
-
|
38
|
+
if config[:all_info]
|
39
|
+
results = root_rest.get("users?verbose=true")
|
40
|
+
ui.output results
|
41
|
+
else
|
42
|
+
results = root_rest.get("users")
|
43
|
+
ui.output(ui.format_list_for_display(results))
|
44
|
+
end
|
35
45
|
end
|
36
46
|
end
|
37
47
|
end
|
data/lib/knife-opc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-opc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Danna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Knife Tools for Chef Server
|
14
14
|
email: steve@chef.io
|