I Am Not Myself

Bills.Pay(Developer.Skills).ShouldBeTrue()

A Couple Useful Powershell Commands for working with Ruby/IronRuby

I use these two functions to quickly setup Powershell to execute Ruby code under either MRI or IronRuby easily. Simply add them to your Powershell profile.

function set-ironruby() {
	$env:path = ";c:\ironruby\bin\;c:\ironruby\lib\ironruby\gems\1.8\bin\;" + $env:path
}

function set-ruby() {
$env:path = ";c:\ruby\bin\;" + $env:path
}

Then you can use it like so..

rubypsfunctions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: