Sha256: 4992d307d0b6cd4d0968c4b3f45133e2d8113690919fb53ed0509dbd9e12d1bd

Contents?: true

Size: 511 Bytes

Versions: 23

Compression:

Stored size: 511 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-control $1
RETVAL=$?

exit $RETVAL

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
flapjack-0.6.54 dist/etc/init.d/flapper
flapjack-0.6.53 dist/etc/init.d/flapper
flapjack-0.6.52 dist/etc/init.d/flapper
flapjack-0.6.51 dist/etc/init.d/flapper
flapjack-0.6.50 dist/etc/init.d/flapper
flapjack-0.6.49 dist/etc/init.d/flapper
flapjack-0.6.48 dist/etc/init.d/flapper
flapjack-0.6.47 dist/etc/init.d/flapper
flapjack-0.6.46 dist/etc/init.d/flapper
flapjack-0.6.45 dist/etc/init.d/flapper
flapjack-0.6.44 dist/etc/init.d/flapper
flapjack-0.6.43 dist/etc/init.d/flapper
flapjack-0.6.42 dist/etc/init.d/flapper
flapjack-0.6.41 dist/etc/init.d/flapper
flapjack-0.6.40 dist/etc/init.d/flapper
flapjack-0.6.39 dist/etc/init.d/flapper
flapjack-0.6.38 dist/etc/init.d/flapper
flapjack-0.6.37 dist/etc/init.d/flapper
flapjack-0.6.36 dist/etc/init.d/flapper
flapjack-0.6.35 dist/etc/init.d/flapper