Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
an example tool for packing up ruby apps into a tarball including all dependencies. This was for an interview a while ago.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitignore
.travis.yml
Gemfile
Gemfile.lock
NOTES.md
Procfile
README.md
TODO

README.md

packer

pack up a ruby project and its dependencies into a tarball.

Usage

As a Ruby Library:

See the {Packer} class, but in general this is what you want:

# The url is required, but the branch/tag/git-commit-sha1 is optional.
packer = Packer.new("https://github.com/jordansissel/fpm.git", "v0.3.10")

# Packer#pack builds the tarball (dependencies included) and returns the
# string path to the .tar.gz file produced.
tarball_path = packer.pack

Additionally, you can use 'yard' to view the docs for the ruby lib: yard server


Command line:

% packer [--revision SHA1|branch|tag] <url_or_path>

Takes a url or path to a git repository and packages it up as a tarball including any dependencies resolvable with bundler..

When finished packing, it will put a .tar.gz file in the current directory.


Web hook:

  • Run foreman start server
  • Point github web hook at http://your-server:4567/

Something went wrong with that request. Please try again.