Sha256: 62a8e6e79b0e076cad11f15f0fdde4a33fed3d61e736f98fc5aa8a308f24ed72

Contents?: true

Size: 813 Bytes

Versions: 12

Compression:

Stored size: 813 Bytes

Contents

#!/bin/bash

#/ NAME
#/     shocco -- wrapper to call shocco under virtualenv
#/
#/ SYNOPSIS
#/     shocco ...

# 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/bin/_treadstone"

# entry point
function main {
  export BUNDLE_GEMFILE="$shome/.doc/Gemfile"
  export shome

  ( cd $shome/.doc && bundle check 2>&1 >/dev/null || { bundle install --quiet --local --path vendor/bundle || bundle check > /dev/null; } )
  exec bundle exec $shome/bin/venv "$shome/libexec/shocco.sh" "$@"
}

# define command line options:
#   var name, default, description, short option

# parse the command-line
#parse_command_line "$@" || exit $?
#eval set -- "${FLAGS_ARGV}"

# pass arguments to entry point
main "$@"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alpha_omega-1.0.1 libexec/shocco
alpha_omega-0.0.226 libexec/shocco
alpha_omega-0.0.225 libexec/shocco
alpha_omega-0.0.224 libexec/shocco
alpha_omega-0.0.223 libexec/shocco
alpha_omega-0.0.222 libexec/shocco
alpha_omega-0.0.220 libexec/shocco
alpha_omega-0.0.219 libexec/shocco
alpha_omega-0.0.217 libexec/shocco
alpha_omega-0.0.216 libexec/shocco
alpha_omega-0.0.215 libexec/shocco
alpha_omega-0.0.214 libexec/shocco