NAME

Ruby::VersionManager

WARNING!

This is an unstable development release not ready for production!

VERSION

Version 0.03.04

SYNOPSIS

The Ruby::VersionManager Module will provide a subset of the bash rvm.

It is recommended to use Ruby::VersionManager with local::lib to avoid interference with possibly installed system ruby. Ruby::VersionManager comes with a script rvm.pl. See the perldoc of rvm.pl for a list of actions and options.

CONSTRUCTION

All attributes are optional at creation.

my $rvm = Ruby::VersionManager->new;

METHODS

list

Print a list of available ruby versions to STDOUT. (Will return a datastructure soon)

$rvm->list;

update_db

Update database of available ruby versions.

$rvm->updatedb;

install

Install a ruby version. If no version is given the latest stable release will be installed. The program tries to guess the correct version from the provided string. It should at least match the major release. If you need to install a preview or rc version you will have to provide the full exact version.

Latest ruby

$rvm->ruby_version('1.9');
$rvm->install;

Latest ruby-1.8

$rvm->ruby_version('1.8');
$rvm->install;

Install preview

$rvm->ruby_version('ruby-1.9.3-preview1');
$rvm->isntall;

LIMITATIONS AND TODO

Currently Ruby::VersionManager is only tested to be running on Linux with bash installed. Support of gemsets and uninstall needs to be added.

AUTHOR

Mugen Kenichi, <mugen.kenichi at uninets.eu>

BUGS

Report bugs at:

SUPPORT

  • Technical support

    <mugen.kenichi at uninets.eu>