Automate Everything: Ruby, Linux and other hints, tips and tricks.

Piston and git

As many Rails developers I have some projects that I haven’t migrated to git yet. Those are still under Subversion and I manage its plugins with Piston. But what happen when you want to import a plugin hosted on a git repository? That the gem “piston” doesn’t work.

The trick is that the last version of piston that supports git is not the gem called “piston” but “francois-piston”. So let’s go:

gem sources -a http://gems.github.com 
sudo gem install francois-piston

Now we can do:

piston import git://github.com/activescaffold/active_scaffold.git vendor/plugins/active_scaffold

Easy :).

You can follow any responses to this entry through the RSS 2.0 feed.