Sha256: b321128bc74b7be233870464c3dfae124344733698801fe3fa686cd4305d56b9

Contents?: true

Size: 1.48 KB

Versions: 15

Compression:

Stored size: 1.48 KB

Contents

# script_cli_parameters.sh
############
# This section reads the CLI parameters for the install script and translates
#   them to the local parameters to be used later by the script.
#
# Outputs:
# $version: Requested version to be installed.
# $channel: Channel to install the product from
# $project: Project to be installed
# $cmdline_filename: Name of the package downloaded on local disk.
# $cmdline_dl_dir: Name of the directory downloaded package will be saved to on local disk.
# $install_strategy: Method of package installations. default strategy is to always install upon exec. Set to "once" to skip if project is installed
# $download_url_override: Install package downloaded from a direct URL.
# $checksum: SHA256 for download_url_override file (optional)
############

# Defaults
channel="stable"
project="chef"

while getopts pnv:c:f:P:d:s:l:a opt
do
  case "$opt" in

    v)  version="$OPTARG";;
    c)  channel="$OPTARG";;
    p)  channel="current";; # compat for prerelease option
    n)  channel="current";; # compat for nightlies option
    f)  cmdline_filename="$OPTARG";;
    P)  project="$OPTARG";;
    d)  cmdline_dl_dir="$OPTARG";;
    s)  install_strategy="$OPTARG";;
    l)  download_url_override="$OPTARG";;
    a)  checksum="$OPTARG";;
    \?)   # unknown flag
      echo >&2 \
      "usage: $0 [-P project] [-c release_channel] [-v version] [-f filename | -d download_dir] [-s install_strategy] [-l download_url_override] [-a checksum]"
      exit 1;;
  esac
done

shift `expr $OPTIND - 1`

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mixlib-install-3.11.21 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.11.18 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.11.12 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.11.11 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.11.5 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.11.2 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.10.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.9.4 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.9.3 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.9.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.8.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.7.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.6.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.5.1 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.5.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh