Sha256: 58cd96c8ffb55a099d241516e845423a7460a0c70539f9d4fd85a5df7251525e

Contents?: true

Size: 705 Bytes

Versions: 10

Compression:

Stored size: 705 Bytes

Contents

#!/bin/bash -efu

function debug {
  if [[ -n "${VAGRANT_LOG:-}" ]]; then
    printf '[%s]: %s\n' "$(basename $0)" "$*" 1>&2
  fi
}

if [[ -n "${VAGRANT_LOG:-}" ]]; then
  set -x
fi

cmd="$1"; shift
case "$cmd" in
  run-instance)
    image="$1"; shift
    debug "run-instance $image"
    debug "run-instance args: $* 1>&2"
    echo "$image"
    ;;
  terminate-instance)
    instance="$1"; shift
    debug "terminate-instance $instance"
    ;;
  ssh-info)
    instance="$1"; shift
    debug "ssh-info $instance"
    debug "ssh-info: 127.0.0.1 22"
    echo "${instance} 22"
    ;;
  read-state)
    instance="$1"; shift
    debug "read-state $instance"
    echo "running"
    ;;
  *)
    exit 1
    ;;
esac

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vagrant-shell-0.2.22 libexec/shell-static
vagrant-shell-0.2.21 libexec/shell-static
vagrant-shell-0.2.20 libexec/shell-static
vagrant-shell-0.2.19 libexec/shell-static
vagrant-shell-0.2.17 libexec/shell-static
vagrant-shell-0.2.16 libexec/shell-static
vagrant-shell-0.2.14 libexec/shell-static
vagrant-shell-0.2.13 libexec/shell-static
vagrant-shell-0.2.9 libexec/shell-static
vagrant-shell-0.2.8 libexec/shell-static