Coder Social home page Coder Social logo

psrvm's Introduction

PsRvm

A Ruby version manager written in PowerShell.

Written by Craig Meinschein (pfaffle).

Usage

PsRvm provides the following commands for installing Ruby and getting information about Ruby installations [that it knows about] on your system.

Install-Ruby

Download a Ruby installer for a particular version/system architecture from the internet and silently install it on your machine. The default behavior places it in $env:userprofile\psrvm\ruby$version directory, but this can be overridden by explicitly setting the Path parameter.

A minimal example:

Install-Ruby 2.2.3

A complete example:

Install-Ruby -Version 2.2.3 -Path 'C:\ruby2.2.3'

Uninstall-Ruby

Uninstall a Ruby installation. Currently only supports uninstalling by a version number.

Uninstall-Ruby -Version 2.2.3

Add-Ruby

Add a Ruby installation to PsRvm's config file so that it "knows" about it and can manage it. Note that this is automatically done for Rubies that have been installed by Install-Ruby. You can use Add-Ruby to let PsRvm manage Rubies that have been installed through other means.

Add-Ruby -Version 2.2.3 -Path 'C:\ruby2.2.3' -Arch i386

Get-Ruby

List Ruby installations in PsRvm's config file.

Tests

Unit tests are written using Pester (https://github.com/pester/Pester). To run them, install the Pester PowerShell module, load it into your current PowerShell session, then run Invoke-Pester in the psrvm root directory.

psrvm's People

Contributors

pfaffle avatar

Stargazers

 avatar Evan Tschuy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.