chef-cli 6.1.27 → 6.1.29

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b70ca4960348d4646b657df09b0b5157f90eb8aeb8c8167f21cdf52837ff63e2
4
- data.tar.gz: 8c1912808de76efaaada71f2414602b608be6a07365782ada11397e54c69a7d8
3
+ metadata.gz: 6a31e35e78215f9a0465bac4b9011b8c37855690a5547283b862a1917480fe3a
4
+ data.tar.gz: e1a1ecfd2b1d62a7a6db16041a0a9a7de8e3f5add164188d0be7133d26fd79ca
5
5
  SHA512:
6
- metadata.gz: 4dddac447ba3f2e3314be76e6409e6d9d5e31a56dc936001757a549c858feb4793d5b3703c6cef6377452f2ce1d866602c5765d6ac65885d4bd99e288bfdd62f
7
- data.tar.gz: 3be61bf08bbbe4f900d87a5cc5f7ff56114a8b52c398a7b8416fc2d6236a1ab0d1f26dcdaca00ee3870b0a8c5e4a3578cbc5ae12f75c9a611dbc1c813eda2c60
6
+ metadata.gz: eaa7aecb0549c2270b9ff935d4de006fb755c923356197ba4a87880f8d195a7828641fd0053527cef2252d9dee9338ddb88d93a30e802111ce611ba2f3f2aa3e
7
+ data.tar.gz: 90c58cb7e9d8e9a92f47d29a9978b69799a41bdfa63152bf8ebcb3a9ac8279a03463610248a867d726832a12c6024f3937477857fe1f8f4ff3892164fa887c9b
@@ -173,10 +173,12 @@ module ChefCLI
173
173
  raise "Error: Could not determine the vendor package prefix. Ensure #{ChefCLI::Dist::HAB_PKG_NAME} is installed and CHEF_CLI_VERSION is set correctly." unless vendor_pkg_prefix
174
174
 
175
175
  vendor_dir = File.join(vendor_pkg_prefix, "vendor")
176
- # Construct PATH
176
+ # Construct PATH including Ruby bin directory for chef-cli exec command
177
+ ruby_bin_dir = File.dirname(RbConfig.ruby)
177
178
  path = [
178
179
  File.join(bin_pkg_prefix, "bin"),
179
180
  File.join(vendor_dir, "bin"),
181
+ ruby_bin_dir, # Add Ruby bin directory so exec can find gem etc.
180
182
  ENV["PATH"].split(File::PATH_SEPARATOR), # Preserve existing PATH
181
183
  ].flatten.uniq
182
184
 
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module ChefCLI
19
- VERSION = "6.1.27".freeze
19
+ VERSION = "6.1.29".freeze
20
20
  end
@@ -112,8 +112,9 @@ describe ChefCLI::Helpers do
112
112
  context "when installed with habitat" do
113
113
  let(:chef_dke_path) { "/hab/pkgs/chef/chef-workstation/1.0.0/123" }
114
114
  let(:cli_hab_path) { "/hab/pkgs/chef/chef-cli/1.0.0/123" }
115
+ let(:ruby_bin_dir) { File.dirname(RbConfig.ruby) }
115
116
  let(:expected_gem_root) { Gem.default_dir }
116
- let(:expected_path) { [File.join(chef_dke_path, "bin"), File.join(cli_hab_path, "vendor", "bin"), "/usr/bin:/bin"].flatten }
117
+ let(:expected_path) { [File.join(chef_dke_path, "bin"), File.join(cli_hab_path, "vendor", "bin"), ruby_bin_dir, "/usr/bin:/bin"].flatten }
117
118
  let(:expected_env) do
118
119
  {
119
120
  "PATH" => expected_path.join(File::PATH_SEPARATOR),
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: 6.1.27
4
+ version: 6.1.29
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: 2026-03-12 00:00:00.000000000 Z
11
+ date: 2026-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-cli