Sha256: 36eff6439bb588abe4fd6f7b1ad0c3b31fe8dc1c9c41f7685f946be20875c045

Contents?: true

Size: 757 Bytes

Versions: 5

Compression:

Stored size: 757 Bytes

Contents

#!/bin/bash

#/ NAME
#/     ao-lock -- lock a deploy
#/
#/ SYNOPSIS
#/     ao lock [deploy_set...]
#/     ao lock migreate|compare [deploy_set...]

# figure out the project root under which bin, lib live
shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"

# load a jason bourne library
source "$shome/sbin/_treadstone"

# parse the command-line

# entry point
function main {
  case "${1}" in
    compare|migrate)
      nm_lock="${1}"; shift
      set -- $(for a in "$@"; do echo $a.app; done)
      bundle exec cap "$@" deploy:dont_unlock "deploy:lock_${nm_lock}"
      ;;
    *)
      set -- $(for a in "$@"; do echo $a.app; done)
      bundle exec cap "$@" deploy:dont_unlock deploy:lock
      ;;
  esac
}

require 'sub' "$BASH_SOURCE" "$@"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alpha_omega-1.2.1 libexec/ao-lock
alpha_omega-1.2.0 libexec/ao-lock
alpha_omega-1.1.11 libexec/ao-lock
alpha_omega-1.1.10 libexec/ao-lock
alpha_omega-1.1.9 libexec/ao-lock