forked from berkshelf/berkshelf
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chef-18535 Removed the release branch changes and fixed pipeline (#53)
* Updated the version for workstation-LTS to major version Signed-off-by: nikhil2611 <[email protected]> * corrected the plan file Signed-off-by: nikhil2611 <[email protected]> * updated the env from HAB_BLDR_CHANNEL to HAB_REFRESH_CHANNEL Signed-off-by: nikhil2611 <[email protected]> * remoed the release branch changes and fixing pipeline Signed-off-by: nikhil2611 <[email protected]> * adding back berkshelf rubygem Signed-off-by: nikhil2611 <[email protected]> * fixing expeditor config error Signed-off-by: nikhil2611 <[email protected]> --------- Signed-off-by: nikhil2611 <[email protected]>
- Loading branch information
1 parent
2b78c7b
commit e2a7c30
Showing
9 changed files
with
39 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
--- | ||
env: | ||
HAB_REFRESH_CHANNEL: "LTS-2024" | ||
|
||
origin: chef | ||
|
||
expeditor: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.12 | ||
8.0.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
export HAB_BLDR_CHANNEL="LTS-2024" | ||
_chef_client_ruby="core/ruby3_1" | ||
pkg_name="berkshelf" | ||
pkg_origin="chef" | ||
ruby_pkg="core/ruby3_1" | ||
pkg_maintainer="The Chef Maintainers <[email protected]>" | ||
pkg_description="Manage Chef Infra cookbooks and cookbook dependencies." | ||
pkg_license=('Apache-2.0') | ||
pkg_bin_dirs=( | ||
bin | ||
vendor/bin | ||
) | ||
pkg_deps=(${ruby_pkg} core/coreutils) | ||
pkg_bin_dirs=(bin) | ||
pkg_build_deps=( | ||
core/make | ||
core/bash | ||
core/gcc | ||
) | ||
pkg_deps=( | ||
$_chef_client_ruby | ||
core/coreutils | ||
core/git | ||
) | ||
pkg_svc_user=root | ||
|
||
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" | ||
} | ||
|
||
pkg_version() { | ||
cat "$SRC_PATH/VERSION" | ||
|
@@ -35,8 +34,8 @@ do_unpack() { | |
} | ||
|
||
do_build() { | ||
echo $(pkg_path_for $_chef_client_ruby) | ||
export GEM_HOME="$pkg_prefix/vendor/gems" | ||
|
||
export GEM_HOME="$pkg_prefix/vendor" | ||
|
||
build_line "Setting GEM_PATH=$GEM_HOME" | ||
export GEM_PATH="$GEM_HOME" | ||
|
@@ -49,13 +48,13 @@ do_build() { | |
} | ||
|
||
do_install() { | ||
export GEM_HOME="$pkg_prefix/vendor/gems" | ||
export GEM_HOME="$pkg_prefix/vendor" | ||
|
||
build_line "Setting GEM_PATH=$GEM_HOME" | ||
export GEM_PATH="$GEM_HOME" | ||
gem install berkshelf-*.gem --no-document | ||
wrap_ruby_berkshelf | ||
set_runtime_env "GEM_PATH" "${pkg_prefix}/vendor/gems" | ||
set_runtime_env "GEM_PATH" "${pkg_prefix}/vendor" | ||
} | ||
|
||
wrap_ruby_berkshelf() { | ||
|
@@ -76,10 +75,10 @@ set -e | |
export PATH="/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:\$PATH" | ||
# Set Ruby paths defined from 'do_setup_environment()' | ||
export GEM_HOME="$pkg_prefix/vendor/gems" | ||
export GEM_PATH="\$GEM_HOME" | ||
export GEM_HOME="$pkg_prefix/vendor" | ||
export GEM_PATH="$GEM_PATH" | ||
exec $(pkg_path_for $_chef_client_ruby)/bin/ruby $real_bin \$@ | ||
exec $(pkg_path_for ${ruby_pkg})/bin/ruby $real_bin \$@ | ||
EOF | ||
chmod -v 755 "$bin" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Berkshelf | ||
VERSION = "0.1.12".freeze | ||
VERSION = "8.0.16".freeze | ||
end |