Sha256: 51d7b5c1cfef70ba00f7a682972e9af438b6a1a7c79002df06015a29204a0abb

Contents?: true

Size: 1.04 KB

Versions: 55

Compression:

Stored size: 1.04 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.
############

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

while getopts pnv:c:f:P:d: 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";;
    \?)   # unknown flag
      echo >&2 \
      "usage: $0 [-P project] [-c release_channel] [-v version] [-f filename | -d download_dir]"
      exit 1;;
  esac
done

shift `expr $OPTIND - 1`

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
mixlib-install-3.3.4 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.3.3 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.3.2 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.3.1 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.3.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.2.2 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.2.1 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.2.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.1.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-3.0.0 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.12 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.11 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.10 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-1.2.4 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.9 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.8 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.7 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.6 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.5 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
mixlib-install-2.1.4 lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh