Extremely simple cookbook to manage installed gems on a node
Switch branches/tags
Pull request Compare This branch is even with chrisroberts:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
CHANGELOG.md
README.md
metadata.rb

README.md

Gem Installer

Simple cookbook for managing gem versions on a node.

Usage

Attributes

Define gems (and optionally version restrictions) within the role:

  override_attributes(
    :gem_installer => {
      :gems => {
        'pg' => nil,
        'activerecord' =>  '~> 3.0.0',
        'ssmtp' => nil
      }
    }
  )

Chef Gems

Managing chef gems works in just same way, but by using the :chef_gems key instead of :gems

  override_attributes(
    :gem_installer => {
      :chef_gems => {
        'pg' => nil
      }
    }
  )

Backwards Compatibility

Use the [chef_gem]{http://community.opscode.com/cookbooks/chef_gem} cookbook to maintain compatibility on node running Chef pre 0.10.9

Issues/Bugs/Feature Requests

Create a github issue or fork, fix and send me a pull request