Class Freezer
In: lib/merb-freezer/freezer.rb
Parent: Object

Methods

Included Modules

FreezerMode

Attributes

component  [R] 
freezer_dir  [RW] 
mode  [R] 
update  [R] 

Public Class methods

Returns the components to freeze a class variable is used so we could decide to add a setter and support custom components

Freezes a component

Parameters

component<String>:The component to freeze, it needs to be defined in @@components
update<Boolean>:An optional value to tell the freezer to update the previously frozen or not, this will default to false
mode<String>:An optional value to tell the freezer what freezer mode to use (submodules or rubygems), this will default to submodules

Initializes a Freeze instance

Parameters

component<String>:The component to freeze, it needs to be defined in @@components
update<Boolean>:An optional value to tell the freezer to update the previously frozen or not, this will default to false
mode<String>:An optional value to tell the freezer what freezer mode to use (submodules or rubygems), this will default to submodules

Public Instance methods

Returns true if the gem is part of the Merb components

Calls the freezer mode on the component

[Validate]