Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (48 sloc) 0.892 kb
#!/usr/bin/env bash
export JRUBY_OPTS
jruby_ngserver_is_running()
{
ps auxww | GREP_OPTIONS="" \grep '[c]om.martiansoftware.nailgun.NGServer' >/dev/null
}
jruby_ngserver_start()
{
if ! jruby_ngserver_is_running
then
(JRUBY_OPTS='' jruby --ng-server 2>&1 1>/dev/null)&
fi
}
jruby_options_trim()
{
JRUBY_OPTS="${JRUBY_OPTS## }"
JRUBY_OPTS="${JRUBY_OPTS%% }"
}
jruby_options_append()
{
for param in "$@"
do
if ! [[ " ${JRUBY_OPTS} " =~ " $param " ]]
then
JRUBY_OPTS="${JRUBY_OPTS} $param"
fi
done
jruby_options_trim
}
jruby_options_remove()
{
JRUBY_OPTS=" ${JRUBY_OPTS} "
for param in "$@"
do
if [[ "${JRUBY_OPTS}" =~ " $param " ]]
then
JRUBY_OPTS="${JRUBY_OPTS// $param / }"
fi
done
jruby_options_trim
}
jruby_clean_project_options()
{
if [[ -n "${PROJECT_JRUBY_OPTS}" ]]
then
unset PROJECT_JRUBY_OPTS
fi
}
Jump to Line
Something went wrong with that request. Please try again.