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 +4 -4
- data/lib/chef-cli/helpers.rb +3 -1
- data/lib/chef-cli/version.rb +1 -1
- data/spec/unit/helpers_spec.rb +2 -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: 6a31e35e78215f9a0465bac4b9011b8c37855690a5547283b862a1917480fe3a
|
|
4
|
+
data.tar.gz: e1a1ecfd2b1d62a7a6db16041a0a9a7de8e3f5add164188d0be7133d26fd79ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaa7aecb0549c2270b9ff935d4de006fb755c923356197ba4a87880f8d195a7828641fd0053527cef2252d9dee9338ddb88d93a30e802111ce611ba2f3f2aa3e
|
|
7
|
+
data.tar.gz: 90c58cb7e9d8e9a92f47d29a9978b69799a41bdfa63152bf8ebcb3a9ac8279a03463610248a867d726832a12c6024f3937477857fe1f8f4ff3892164fa887c9b
|
data/lib/chef-cli/helpers.rb
CHANGED
|
@@ -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
|
|
data/lib/chef-cli/version.rb
CHANGED
data/spec/unit/helpers_spec.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2026-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-cli
|