Installing rspec/rspec_on_rails as system wide generator (or similar)

Hi all,

What would be the best/easiest way of installing rspec as a system
wide generator so I’m not having to download it or ./script/plugin
install it every time?

Thanks,

Alastair


Alastair M.
Freelance web design, development and consultancy

t. 07983 983945
e. [email protected]
w. http://www.kozmo.co.uk
skype. alastair_kozmo

Well, you do want the plugin installed in every app so that app is
ientirely self conatained. I have a bash script called rspecify that
does all of the regular rspec commands to get up and running. Are you
looking for something similar? Here is my script (BTW, I use piston to
manage my plugins):

#!/bin/bash
svn up &&
echo “Importing the rspec plugin with piston…” &&
piston import svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec
vendor/plugins/rspec &&
svn ci -m “Used piston to import CURRENT rspec plugin” && svn up &&
echo “Importing the rspec_on_rails plugin with piston…” &&
piston import
svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails
vendor/plugins/rspec_on_rails &&
svn ci -m “Used piston to import CURRENT rspec_on_rails plugin” &&
svn up &&
./script/generate rspec &&
svn add spec && svn add previous_failures.txt && svn add
script/spec_server && svn add script/spec &&
svn ci -m “Adding generated rspec files, the app is now rspecified!” &&
svn up &&
echo “The app has been rspecified!”

-Ben

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs