Sha256: 9a73954e7f335448b80efdd5cf978973923e39f8c1ad047f8b0c23e45829b513

Contents?: true

Size: 717 Bytes

Versions: 3

Compression:

Stored size: 717 Bytes

Contents

#!/bin/bash

#/ NAME
#/     lock --
#/
#/ SYNOPSIS
#/     
#/     lock
#/     lock compare|migrate
#/

# 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/libexec/_jason"
require 'ao'

function aomain {
  case "${1}" in
    compare|migrate)
      nm_lock="${1}"; shift
      set -- $(for a in "$@"; do echo $a.app; done)
      cap "$@" deploy:began deploy:dont_unlock "deploy:lock_${nm_lock}" deploy:finished
      ;;
    *)
      set -- $(for a in "$@"; do echo $a.app; done)
      cap "$@" deploy:began deploy:dont_unlock deploy:lock deploy:finished
      ;;
  esac
}

require sub "$BASH_SOURCE" "$@"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alpha_omega-1.5.15 libexec/aoh-lock
alpha_omega-1.5.14 libexec/aoh-lock
alpha_omega-1.5.12 libexec/aoh-lock