Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created June 3, 2013 14:27
Show Gist options
  • Select an option

  • Save stuart-warren/5698537 to your computer and use it in GitHub Desktop.

Select an option

Save stuart-warren/5698537 to your computer and use it in GitHub Desktop.
Package up capistrano for ubuntu/debian using fpm
#!/bin/bash
#
# from https://github.com/jordansissel/fpm/wiki/ConvertingGems
mkdir -p /tmp/gems
gem install --no-ri --no-rdoc --install-dir /tmp/gems/ capistrano
cd /tmp
find /tmp/gems/cache -name '*.gem' | xargs -rn1 fpm -d ruby -d rubygems --prefix /var/lib/gems/1.8 -s gem -t deb
# upload debs to apt repo
sudo apt-get update
sudo apt-get install rubygem-capistrano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment