Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,15 @@ function main() {
local phase
phase="$(basename "${0}")"

if ! which ruby > /dev/null; then
mkdir -p "${RUBY_DIR}"
# Always install and use buildpack Ruby to ensure consistent version
# regardless of system Ruby availability
mkdir -p "${RUBY_DIR}"

if [ ! -d "${RUBY_DIR}/bin" ]; then
util::install
util::environment::setup
fi

util::environment::setup

exec "${BUILDPACK_DIR}/bin/ruby-run" "${phase}" "${@-}"
}
Expand Down
2 changes: 2 additions & 0 deletions config/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# limitations under the License.

# Configuration for Ruby
# Note: Ruby 3.2.8+ is required for Psych 5.0.1+ which supports YAML.load_file
# with permitted_classes and aliases keyword arguments used throughout the buildpack
---
version: 3.2.+
repository_root: https://raw.githubusercontent.com/cloudfoundry/ruby-buildpack/master/java-index