Sha256: 728e202a0757d22733add666268ca0954cd883a0ffe847ef75fcc7e4aca18983

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

#!/bin/bash
#
# flapper
#

PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local:/usr/local/sbin:/usr/local/bin:/usr/lib/flapjack/bin

# load global rbenv environment if present
if [ -x /etc/profile.d/rbenv.sh ] ; then
  source /etc/profile.d/rbenv.sh
fi

# Default return value
RETVAL=0

if [ ! $(which flapper-control) ]; then
  echo "Error: flapper-control isn't in PATH."
  echo "Refusing to do anything!"
  exit 1
fi

# Evaluate command

rbenv shell 1.9.3-p125 && flapper
RETVAL=$?

exit $RETVAL

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flapjack-0.6.31 dist/etc/init.d/flapper
flapjack-0.6.30 dist/etc/init.d/flapper
flapjack-0.6.29 dist/etc/init.d/flapper