Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 46 lines (36 sloc) 0.91 kb
#!/usr/bin/env bash
DIR=$(dirname $(readlink -f $0))
CONF="$DIR/$1"
if [ ! -f "$CONF" ]; then
CONF="$DIR/config.yml"
fi
if [ ! -f "$CONF" ]; then
CONF="$DIR/config.yml.dist"
fi
if [ ! -f "$CONF" ]; then
echo "Config does not exist."
exit 1
fi
RUBY=""
if which ruby1.9.3>/dev/null; then
RUBY="ruby1.9.3"
elif which ruby1.9.1>/dev/null; then
RUBY="ruby1.9.1"
elif which ruby1.9>/dev/null; then
RUBY="ruby1.9"
elif which ruby19>/dev/null; then
RUBY="ruby19"
elif which ruby>/dev/null; then
# If characters 0-8 of `ruby --version` are "ruby 1.9"...
STR="$(ruby --version)"
if [ "${STR:0:8}" = "ruby 1.9" ]; then
RUBY="ruby"
fi
fi
if [ -z "$RUBY" ]; then
echo "Could not find ruby 1.9 on this system."
echo "If you believe this is a mistake, open an issue at:"
echo " https://github.com/duckinator/rubino/issues"
exit 1
fi
screen -dmS rubino $RUBY $DIR/rubino.rb $CONF
Jump to Line
Something went wrong with that request. Please try again.