diff options
author | Lance Albertson <lance@osuosl.org> | 2021-04-09 15:10:12 -0700 |
---|---|---|
committer | Lance Albertson <lance@osuosl.org> | 2021-04-09 16:12:53 -0700 |
commit | c9eacde882fc413627168c557853fef2bd6aa49e (patch) | |
tree | 0c9f955b477057ed2fa6542b75e9f97e5ba25891 /lib | |
parent | bb776e0ea82618c7c9038518ef9649c8d216b70d (diff) | |
download | chef-c9eacde882fc413627168c557853fef2bd6aa49e.tar.gz |
Create ChefUtils::Dist::Workstation::DIR_SUFFIX dist constant
This allows community distributions the ability to set the directory suffix for
where Workstation resides (aka /opt/chef-workstation).
Signed-off-by: Lance Albertson <lance@osuosl.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/package/rubygems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb index db3696dbd8..83f9cc18a5 100644 --- a/lib/chef/provider/package/rubygems.rb +++ b/lib/chef/provider/package/rubygems.rb @@ -423,7 +423,7 @@ class Chef end def is_omnibus? - if %r{/(#{ChefUtils::Dist::Org::LEGACY_CONF_DIR}|#{ChefUtils::Dist::Infra::SHORT}|chef-workstation)/embedded/bin}.match?(RbConfig::CONFIG["bindir"]) + if %r{/(#{ChefUtils::Dist::Org::LEGACY_CONF_DIR}|#{ChefUtils::Dist::Infra::SHORT}|#{ChefUtils::Dist::Workstation::DIR_SUFFIX})/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 |