summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <lance@osuosl.org>2021-04-07 15:09:19 -0700
committerLance Albertson <lance@osuosl.org>2021-04-09 15:06:10 -0700
commitdb1d60056f7ab64bf6c1cede96541309f483f58a (patch)
tree632aee76c2d90ad82b0916ec0725de1d06f02cbd
parentb19c83d51f98cf3ba16cf7d202b4fea1dc448ae1 (diff)
downloadchef-db1d60056f7ab64bf6c1cede96541309f483f58a.tar.gz
Update to use chef-workstation instead of chefdk
Signed-off-by: Lance Albertson <lance@osuosl.org>
-rw-r--r--lib/chef/provider/package/rubygems.rb2
-rw-r--r--spec/unit/provider/package/rubygems_spec.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb
index e665e210d2..bb4262a8d7 100644
--- a/lib/chef/provider/package/rubygems.rb
+++ b/lib/chef/provider/package/rubygems.rb
@@ -421,7 +421,7 @@ class Chef
end
def is_omnibus?
- if %r{/(#{ChefUtils::Dist::Org::LEGACY_CONF_DIR}|#{ChefUtils::Dist::Infra::SHORT}|chefdk)/embedded/bin}.match?(RbConfig::CONFIG["bindir"])
+ if %r{/(#{ChefUtils::Dist::Org::LEGACY_CONF_DIR}|#{ChefUtils::Dist::Infra::SHORT}|chef-workstation)/embedded/bin}.match?(RbConfig::CONFIG["bindir"])
logger.trace("#{new_resource} detected omnibus installation in #{RbConfig::CONFIG["bindir"]}")
# Omnibus installs to a static path because of linking on unix, find it.
true
diff --git a/spec/unit/provider/package/rubygems_spec.rb b/spec/unit/provider/package/rubygems_spec.rb
index 30b05e546a..5013b6505c 100644
--- a/spec/unit/provider/package/rubygems_spec.rb
+++ b/spec/unit/provider/package/rubygems_spec.rb
@@ -470,10 +470,10 @@ describe Chef::Provider::Package::Rubygems do
end
end
- context "when in omnibus chefdk" do
- let(:bindir) { "/opt/chefdk/embedded/bin" }
+ context "when in omnibus chef-workstation" do
+ let(:bindir) { "/opt/chef-workstation/embedded/bin" }
- it "recognizes chefdk as omnibus" do
+ it "recognizes chef-workstation as omnibus" do
expect(provider.is_omnibus?).to be true
end
end