/compile-extensions

Bash library which provides extra functions and overrides for Cloud Foundry Buildpack compile scripts.

Primary LanguageRubyApache License 2.0Apache-2.0

compile extenions

A library which provides extra functions and overrides for Cloud Foundry Buildpack compile scripts.

This is included a git submodule in all the official Cloud Foundry buildpacks.

check_stack_support

Print out a lovely error message when the current stack is not supported by the buildpack.

Usage

./compile-extensions/bin/check_stack_support

download_dependency

Translates the URL given in ARGV[0] by matching the URL to a corresponding entry in manifest.yml and downloads the translated file with curl.

Usage

./compile-extensions/bin/download_dependency [URI] [INSTALL_DIR]

translate_dependency_url

Translates the URL given in ARGV[0] by matching the URL to a corresponding entry in manifest.yml.

Usage

./compile-extensions/bin/translate_dependency_url [URI]

is_cached

Returns an exit status of 0 if the current buildpack is a cached buildpack.

Usage

./compile-extensions/bin/is_cached

default_version_for

Returns the default version in the manifest (if specified) for a given dependency

Usage

./compile-extensions/bin/default_version_for [MANIFEST_FILE] [DEPENDENCY_NAME]
[VERSION]