#!/usr/bin/env bash

if
  [[ -s "/usr/local/rvm/gems/ruby-2.0.0-p598@global/environment" ]]
then
  source "/usr/local/rvm/gems/ruby-2.0.0-p598@global/environment"
  exec rdoc "$@"
else
  echo "ERROR: Missing RVM environment file: '/usr/local/rvm/gems/ruby-2.0.0-p598@global/environment'" >&2
  exit 1
fi
