Skip to content

Instantly share code, notes, and snippets.

@beddari
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beddari/9363794 to your computer and use it in GitHub Desktop.
Save beddari/9363794 to your computer and use it in GitHub Desktop.
omnibus packaging workflow for gems

A workflow for packaging gems using fpm-cookery?

Given a gem with a specific version in recipe.rb:

If building "head" or "devel"

  1. Ignore the $version specified in recipe.rb
  2. Fetch and install the latest gem and deps using the "omnibus" ruby
  3. Derive the $version
  4. Proceed to build a package of $version

else

  1. Check for a cached copy of $version specified in recipe.rb
  2. If no cached copy exists 1. Fetch the gem in $version and its deps 2. Cache and/or "lock" them to disk
  3. Install gem $version and deps using the "omnibus" ruby
  4. Proceed to build a package of $version

end

Question: Best way of getting this workflow done?

(unqualified guessing): Bundler using a Gemfile (and Gemfile.lock?) then installing from cache? gem install --install-dir then --local? Something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment