Class Juicer::Install::YuiCompressorInstaller
In: lib/juicer/install/yui_compressor_installer.rb
Parent: Base

Install and uninstall routines for the YUI Compressor. Installation downloads the YUI Compressor distribution, unzips it and storesthe jar file on disk along with the license.

Methods

install   latest   new   uninstall  

Public Class methods

Public Instance methods

Install the Yui Compressor. Downloads the distribution and keeps the jar file inside PATH/yui_compressor/bin and the README and CHANGELOG in PATH/yui_compressor/x.y.z/ where x.y.z is the version, most recent if not specified otherwise.

Path defaults to environment variable $JUICER_HOME or default Juicer home

Check which version is the most recent

Uninstalls the given version of YUI Compressor. If no location is provided the environment variable $JUICER_HOME or Juicers default home directory is used.

If no version is provided the most recent version is assumed.

If there are no more files left in INSTALLATION_PATH/yui_compressor, the whole directory is removed.

[Validate]