Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

RVM Interactive scripting wrapper

branch: master

add a Gemfile

latest commit 8abc69ff3c
Michal Papis authored September 24, 2013
Octocat-spinner-32 lib 0.9.0 April 28, 2012
Octocat-spinner-32 spec 0.9.0 April 28, 2012
Octocat-spinner-32 .gitignore add a Gemfile September 24, 2013
Octocat-spinner-32 Gemfile add a Gemfile September 24, 2013
Octocat-spinner-32 History.md 0.9.0 April 28, 2012
Octocat-spinner-32 Manifest.yml 0.9.0 April 28, 2012
Octocat-spinner-32 README.md fix require April 28, 2012
Octocat-spinner-32 Rakefile 0.9.0 April 28, 2012
Octocat-spinner-32 rvm-with.gemspec 0.9.0 April 28, 2012
README.md

RVM-with

Description

RVM Interactive scripting wrapper

Installation

RVM-with is now available as a separate gem

$ gem install rvm-with

Example

It should be simple as:

require "rvm/with"
RVM.with "1.9.3" do |r|
  puts r.execute "rvm info"
end

This gem is based on session gem, so you can do all the same things you would do with it:

stdout, stderr = r.execute "rvm current"
if r.status == 0
  puts stdout
else
  puts "failed"
end

Development

$ rake spec
Something went wrong with that request. Please try again.