chef-cli 5.6.0 → 5.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8f6584f3f7241a9b2a700c32a5c2562b1d6010527a453405c42c1fba4511a16
4
- data.tar.gz: 2b038f40f4f990f3bfeca2c33a4478f23e34895d7a76c8c4f8cfa7bfdc6e522f
3
+ metadata.gz: 308c1bbb1d1f4d2070055036818dc566c577d28cd3c6ab476054029302082676
4
+ data.tar.gz: a5cc534e4f0d0ae65347b5b438ffc968b4dc982078a37e6c89ff1a351eee4ee3
5
5
  SHA512:
6
- metadata.gz: '06735193dc5c884a7260fa1d2376e7428635dcffbe846602483c1489c2670a451417ea2de0b22687e82216f76eb2351e1459b246c37ca20b4cdf31bcdf2e15a3'
7
- data.tar.gz: 49d095de278a34f76c6fb10943aaaf1589d8bc936e25f916b569ca2beaff20173b5657e953dda4314a8e1f9557662a9c4c375f392920fd17f0a29986ae8f3ab0
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
- @config_loader ||= Chef::WorkstationConfigLoader.new(config[:config_file])
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
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module ChefCLI
19
- VERSION = "5.6.0".freeze
19
+ VERSION = "5.6.1".freeze
20
20
  end
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-cli