Skip to content

Configures rubygems to skip RI and RDoc installation.

License

Notifications You must be signed in to change notification settings

johnbellone/gemrc-cookbook

 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%