Merge pull request #5876 from inspec/cw/use-ruby27-in-hab

Use ruby 2.7 in habitat for inspec 4
This commit is contained in:
Clinton Wolfe 2022-02-27 21:00:55 -05:00 committed by GitHub
commit 6794a26ce5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ $pkg_maintainer="The Chef Maintainers <humans@chef.io>"
$pkg_license=('Apache-2.0')
$pkg_deps=@(
"chef/ruby-plus-devkit"
"chef/ruby27-plus-devkit"
)
$pkg_bin_dirs=@("bin"
"vendor/bin")

View file

@ -10,7 +10,7 @@ pkg_license=('Apache-2.0')
pkg_deps=(
core/coreutils
core/git
core/ruby26
core/ruby27
core/bash
)
pkg_build_deps=(
@ -80,7 +80,7 @@ export PATH="/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:\$PATH
export GEM_HOME="$GEM_HOME"
export GEM_PATH="$GEM_PATH"
exec $(pkg_path_for core/ruby26)/bin/ruby $real_bin \$@
exec $(pkg_path_for core/ruby27)/bin/ruby $real_bin \$@
EOF
chmod -v 755 "$bin"
}