http-418 / gemrc-cookbook

Configures rubygems to skip RI and RDoc installation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gemrc-ng cookbook

Build Status Code Quality Test Coverage Cookbook Version License

Library cookbook which manages a RubyGems configuration file.

Basic Usage

The default recipe configures the gem environment to disable the installation of documentation when gems are installed. A common use case for this cookbook is to configure the Chef Client's gem environment to an internal mirror if behind the veil of the corporate firewall.

Here is an example of how to use an internal Artifactory instance to mirror the RubyGems.org repository.

node.default['gemrc']['path'] = Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE
node.default['gemrc']['reload'] = true
node.default['gemrc']['config']['sources'] = ['http://artifactory.corporate.com/artifactory/api/gems/ruby-gems/']
include_recipe 'gemrc::default'

About

Configures rubygems to skip RI and RDoc installation.

License:Other


Languages

Language:Ruby 100.0%