Skip to content

Commit

Permalink
Habitat plan updates
Browse files Browse the repository at this point in the history
Signed-off-by: Ashique Saidalavi <[email protected]>
  • Loading branch information
ashiqueps committed Jan 22, 2025
1 parent 58d349a commit a4ef842
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ pkg_description="The Chef Test Kitchen Enterprise"
pkg_license=('Apache-2.0')
pkg_bin_dirs=(
bin
vendor/bin
)
pkg_build_deps=(
core/make
core/bash
core/gcc
)
pkg_deps=(
$_chef_client_ruby
${_chef_client_ruby}
core/coreutils
core/git
)
Expand All @@ -29,13 +28,20 @@ do_before() {
update_pkg_version
}

do_setup_environment() {
build_line 'Setting GEM_HOME="$pkg_prefix/vendor"'
export GEM_HOME="$pkg_prefix/vendor"

build_line "Setting GEM_PATH=$GEM_HOME"
export GEM_PATH="$GEM_HOME"
}

do_unpack() {
mkdir -pv "$HAB_CACHE_SRC_PATH/$pkg_dirname"
cp -RT "$PLAN_CONTEXT"/.. "$HAB_CACHE_SRC_PATH/$pkg_dirname/"
}

do_build() {
echo $(pkg_path_for $_chef_client_ruby)
export GEM_HOME="$pkg_prefix/vendor"

build_line "Setting GEM_PATH=$GEM_HOME"
Expand Down
1 change: 1 addition & 0 deletions kitchen.dokken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
driver:
name: dokken
privileged: true
chef_version: unstable

provisioner:
name: dokken
Expand Down

0 comments on commit a4ef842

Please sign in to comment.