https://github.com/rvm/rvm-with
RVM Interactive scripting wrapper
https://github.com/rvm/rvm-with
Last synced: 9 months ago
JSON representation
RVM Interactive scripting wrapper
- Host: GitHub
- URL: https://github.com/rvm/rvm-with
- Owner: rvm
- Created: 2012-04-28T03:45:20.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-25T13:00:21.000Z (over 12 years ago)
- Last Synced: 2024-10-31T13:05:42.824Z (about 1 year ago)
- Language: Ruby
- Size: 91.8 KB
- Stars: 9
- Watchers: 20
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# 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](https://github.com/ahoward/session), 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