chef-cli 5.6.0 → 5.6.1
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.
- checksums.yaml +4 -4
- data/lib/chef-cli/command/push.rb +9 -0
- data/lib/chef-cli/configurable.rb +5 -1
- data/lib/chef-cli/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: 308c1bbb1d1f4d2070055036818dc566c577d28cd3c6ab476054029302082676
|
|
4
|
+
data.tar.gz: a5cc534e4f0d0ae65347b5b438ffc968b4dc982078a37e6c89ff1a351eee4ee3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d53620886e274948207b24d28dcb1bae9f3b784d64783ae42b9698f5359c6ef1653bb1a65417d3309a0bdef10d3254663049447c9a6cdfdcfe1321739335a7d
|
|
7
|
+
data.tar.gz: abc2a02f25e66edb3bd03b9c1a4903310f1029f699107b23565e3629cacb65b8254faaacb8354f2a00b1c9b6155eaa39df1f3709542eb840f5a2477310b221e4
|
|
@@ -44,6 +44,15 @@ module ChefCLI
|
|
|
44
44
|
|
|
45
45
|
E
|
|
46
46
|
|
|
47
|
+
option :credential,
|
|
48
|
+
long: "--credentials string",
|
|
49
|
+
description: "The credentials file to load for user profiles (default $HOME/.chef/credentials)"
|
|
50
|
+
|
|
51
|
+
option :profile,
|
|
52
|
+
short: "-p",
|
|
53
|
+
long: "--profile PROFILE",
|
|
54
|
+
description: "The credentials profile to select."
|
|
55
|
+
|
|
47
56
|
attr_reader :policyfile_relative_path
|
|
48
57
|
attr_reader :policy_group
|
|
49
58
|
|
|
@@ -61,7 +61,11 @@ module ChefCLI
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def config_loader
|
|
64
|
-
|
|
64
|
+
if !config[:profile].nil?
|
|
65
|
+
@config_loader ||= Chef::WorkstationConfigLoader.new(config[:config_file], profile: config[:profile])
|
|
66
|
+
else
|
|
67
|
+
@config_loader ||= Chef::WorkstationConfigLoader.new(config[:config_file])
|
|
68
|
+
end
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
def generator_config
|
data/lib/chef-cli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.6.
|
|
4
|
+
version: 5.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chef Software, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-cli
|