after_use_jruby 290 B

123456789101112
  1. #!/usr/bin/env bash
  2. \. "${rvm_path}/scripts/functions/hooks/jruby"
  3. if [[ "${rvm_ruby_string}" =~ "jruby" ]]
  4. then
  5. jruby_ngserver_start
  6. jruby_options_append "--ng" "${PROJECT_JRUBY_OPTS[@]}"
  7. else
  8. jruby_options_remove "--ng" "${PROJECT_JRUBY_OPTS[@]}"
  9. jruby_clean_project_options
  10. fi