Sha256: f4a6cd98cdcd24113877725f226235523c154c52e1f770bcb2ab0e0d9c1dd632

Contents?: true

Size: 746 Bytes

Versions: 14

Compression:

Stored size: 746 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/_treadstone"
require 'ao'

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

require sub "$BASH_SOURCE" "$@"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
alpha_omega-1.3.12 libexec/aoh-lock
alpha_omega-1.3.11 libexec/aoh-lock
alpha_omega-1.3.10 libexec/aoh-lock
alpha_omega-1.4.1 libexec/aoh-lock
alpha_omega-1.4.0 libexec/aoh-lock
alpha_omega-1.3.9 libexec/aoh-lock
alpha_omega-1.3.8 libexec/aoh-lock
alpha_omega-1.3.7 libexec/aoh-lock
alpha_omega-1.3.6 libexec/aoh-lock
alpha_omega-1.3.5 libexec/aoh-lock
alpha_omega-1.3.4 libexec/aoh-lock
alpha_omega-1.3.3 libexec/aoh-lock
alpha_omega-1.3.2 libexec/aoh-lock
alpha_omega-1.3.1 libexec/aoh-lock