Class | Ramaze::GemSetup |
In: |
lib/ramaze/setup.rb
|
Parent: | Object |
Class responsible for installing and loading all the gems.
@author Michael Fellinger (manveru) @since 19-05-2009
Creates a new instance of the class and saves the parameters that were set.
@author Michael Fellinger (manveru) @since 19-05-2009 @param [Hash] options Hash containing various options to pass to the
GemSetup class.
@option options :verbose When set to true Ramaze will log
various actions such as messages about the installation process.
@yield block
Adds the given gem to the list of required gems.
@example
gem('json', '>=1.5.1')
@author Michael Fellinger (manveru) @since 19-05-2009 @param [String] name The name of the gem to load. @param [String] version The version of the gem. @param [Hash] options Additional options to use when loading the gem. @option options :lib The name to load the gem as.
Executes the data inside the block, loading all the gems and optionally installing them.
@author Michael Fellinger (manveru) @since 19-05-2009 @param [Proc] block A block containing all the calls to gem().
First try to activate, install and try to activate again if activation fails the first time.
@author Michael Fellinger (manveru) @since 19-05-2009 @param [String] name The name of the gem to activate. @param [Hash] options The options from GemSetup#initialize.