Skip to content

Instantly share code, notes, and snippets.

Created January 15, 2013 10:36
Show Gist options
  • Save anonymous/4537806 to your computer and use it in GitHub Desktop.
Save anonymous/4537806 to your computer and use it in GitHub Desktop.
invoking a command in another gemset
def run_rvm_command dir, command
system <<-BASH
cd #{dir}
export rvm_trust_rvmrcs_flag=1
source "$HOME/.rvm/scripts/rvm"
source .rvmrc
#{command}
BASH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment