Using multiple versions of rubygems
March 9, 2008
I was trying to figure out how to run a specific version of a gem, in this case, capistrano. I had capistrano 2.2.0 and 1.4.1 installed and I wanted to run the older version.
Trying to run /opt/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/bin/cap only gave me an error:
undefined method `execute!' for Capistrano::CLI:Class (NoMethodError).
Turns out the trick is to use:
cap _1.4.1_ deploy
I haven’t tried it with other gems, but I am guessing it should be consistent across rubygems and that will be the way to execute older versions of ruby gems.
Filed under: Everything |
thanks much, man