Class: Jammit::CommandLine
- Inherits:
-
Object
- Object
- Jammit::CommandLine
- Defined in:
- lib/jammit/command_line.rb
Overview
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.
Constant Summary collapse
- BANNER =
"\nUsage: jammit OPTIONS\n\nRun jammit inside a Rails application to compresses all JS, CSS,\nand JST according to config/assets.yml, saving the packaged\nfiles and corresponding gzipped versions.\n\nIf you're using \"embed_assets\", and you wish to precompile the\nMHTML stylesheet variants, you must specify the \"base-url\".\n\nOptions:\n"
Instance Method Summary collapse
-
#initialize ⇒ CommandLine
constructor
The @Jammit::CommandLine@ runs from the contents of @ARGV@.
Constructor Details
#initialize ⇒ CommandLine
The @Jammit::CommandLine@ runs from the contents of @ARGV@.
26 27 28 29 30 |
# File 'lib/jammit/command_line.rb', line 26 def initialize ensure_configuration_file Jammit.package!() end |