Created
June 3, 2013 14:27
-
-
Save stuart-warren/5698537 to your computer and use it in GitHub Desktop.
Package up capistrano for ubuntu/debian using fpm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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