class Sprinkle::Installers::Gem
The gem package installer installs Ruby gems.
The installer has a single optional configuration: source. By changing source you can specify a given ruby gems repository from which to install.
Example Usage¶ ↑
First, a simple installation of the magic_beans gem:
package :magic_beans do description "Beans beans they're good for your heart..." gem 'magic_beans' end
Second, install magic_beans gem from github:
package :magic_beans do gem 'magic_beans_package' do source 'http://gems.github.com' end end
As you can see, setting options is as simple as creating a block and calling the option as a method with the value as its parameter.
Public Instance Methods
gem(name, options = {}, &block)
click to toggle source
# File lib/sprinkle/installers/gem.rb, line 32 def gem(name, options = {}, &block) recommends :rubygems install Gem.new(self, name, options, &block) end