Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /usr/local/rvm/src/rvm/scripts/functions/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/rvm/src/rvm/scripts/functions/hooks/jruby
#!/usr/bin/env bash

export JRUBY_OPTS

jruby_ngserver_is_running()
{
  \command \ps auxww | __rvm_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
}

Hry