mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
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:
commit
6794a26ce5
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue