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

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 History.md
Octocat-spinner-32 Manifest.yml
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 rvm-with.gemspec
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.