Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


chruby (9) Versions 0.1.5

Installs/Configures chruby

cookbook 'chruby', '= 0.1.5'
cookbook 'chruby', '= 0.1.5', :supermarket
knife supermarket install chruby
knife supermarket download chruby
Quality -%

chruby cookbook

Installs the Chruby utility for changing between Ruby versions. Chruby is a vastly simplified rbenv - it's about 90 lines of code, and very easy to understand.


  • Depends on the ark cookbook and the ruby-build cookbook.
  • Tested on:
    • CentOS 6.3 and 6.4
    • CentOS 5.8
    • Ubuntu 12.04
    • Ubuntu 10.04


Include the chruby recipe in your run list. This will make the chruby tool available to every shell, and make the embedded Ruby from the Omnibus install available for use.

Chruby uses ruby-build to make Ruby versions available on the OS. The attribute node['chruby']['rubies'] is an array of Ruby versions to install using the LWRP provided by the ruby_build cookbook.

Set this attribute either in a role, or using a wrapper cookbook. For example:

node.set['chruby']['rubies'] = ["1.9.3-p429"]

Ensure you set an explicit dependency on the chruby cookbook if you are using a wrapper cookbook.


  • node['chruby']['version'] - the version of Chruby to install. Default is 0.3.4.
  • TODO: node['chruby']['gpg_check'] - run the GPG check to verify the release was not tampered with.
  • node['chruby']['use_rvm_rubies'] - make Rubies installed using RVM available to chruby.
  • node['chruby']['use_rbenv_rubies'] - make Rubies installed using Rbenv available to chruby.
  • node['chruby']['auto_switch'] - enable automatic switching between Ruby versions per
  • node['chruby']['rubies'] - an array of Rubies to install using the ruby-build LWRP, and make available to chruby.
  • node['chruby']['default'] - specify the default Ruby version for every shell.



Installs the chruby utility, and makes it available to every shell. If Chef was installed with the Omnibus installer, make embedded Ruby available as an option for usage.


Builds and makes available the Ruby versions listed in the node['chruby']['rubies'] attribute, using the ruby-build LWRP.

Author and License

Author:: [Stephen Nelson-Smith][lordcope] (

Copyright 2013, Atalanta Systems Ltd

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

No quality metric results found