Category Archives: ruby

deploying a gem using capistrano

This is something I wrote to push gems to an internal gem server. It is a simple Capistrano recipe. Here is the Capfile. You can easily move the GemDeployer module into a separate file if you want to reuse it.

module GemDeployer
def deploy(gem_path_glob)
gem = Dir[gem_path_glob].first
 
unless gem
[…]