Skip to content

Instantly share code, notes, and snippets.

@ak47
Created October 11, 2011 17:46
Show Gist options
  • Save ak47/1278823 to your computer and use it in GitHub Desktop.
Save ak47/1278823 to your computer and use it in GitHub Desktop.
How to load RVM in Ruby Net::SSH session
Net::SSH.start('<server>','<user_name>',:password => '<secret>') do |ssh|
ssh.exec!(". $HOME/.rvm/scripts/rvm; ruby -v")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment