Class Jammit::CommandLine
In: lib/jammit/command_line.rb
Parent: Object

The @CommandLine@ is able to compress, pre-package, and pre-gzip all the assets specified in the configuration file, in order to avoid an initial round of slow requests after a fresh deployment.

Methods

Constants

BANNER = <<-EOS Usage: jammit OPTIONS Run jammit inside a Rails application to compresses all JS, CSS, and JST according to config/assets.yml, saving the packaged files and corresponding gzipped versions. If you're using "embed_assets", and you wish to precompile the MHTML stylesheet variants, you must specify the "base-url". Options: EOS

Public Class methods

The @Jammit::CommandLine@ runs from the contents of @ARGV@.

Private Instance methods

Make sure that we have a readable configuration file. The @jammit@ command can‘t run without one.

Uses @OptionParser@ to grab the options: *—output*, *—config*, and *—base-url*…

[Validate]