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

Select Status

The ruby cookbook has been deprecated

Author provided reason for deprecation:

The ruby cookbook has been deprecated and is no longer being maintained by its authors. Use of the ruby cookbook is no longer recommended.


ruby (8) Versions 1.0.0

Installs Ruby and related packages

cookbook 'ruby', '~> 1.0.0', :supermarket
cookbook 'ruby', '~> 1.0.0'
knife supermarket install ruby
knife supermarket download ruby
Quality 33%

ruby Cookbook

Build Status Cookbook Version

Installs Ruby and related packages.


As the pace of Ruby development has increased and the era of Ruby 1.8 / 1.9 has come to an end, we see little need for this cookbook. It is officially considered deprecated, and we recommend against its use. We're open to a complete rethinking of the cookbook with a whole new codebase and functionality. If you're interested shoot us an e-mail at



Tested on Ubuntu 10.04. Debian and Gentoo should also work fully. CentOS, Red Hat, Fedora and Arch are partially supported.


  • node[:languages][:ruby][:default_version] - The Ruby version to install
  • with the ruby recipe and create symlinks for with the symlinks
  • recipe.


Previous versions of this cookbook gave you no control over which version of Ruby would be installed. We are now in the middle of an awkward period where you are equally likely to want 1.8 or 1.9. You may even want both. This is now catered for. To install specific versions side-by-side, use the 1.8, 1.9 or 1.9.1 recipes. The ruby recipe will install the version specified by node[:languages][:ruby][:default_version]. If you want to do something other than install these packages, the ruby_packages definition is provided as a wrapper around the package resource. Just specify the version number.

For example, to use the default recipe in a role named "base", use 'ruby' in the run list and set the node[:languages[:ruby][:default_version] attribute:

  "name": "base",
  "description": "Base role is applied to all systems",
  "json_class": "Chef::Role",
  "default_attributes": {
  "override_attributes": {
    "languages": {
      "ruby": {
        "default_version": "1.8"
  "chef_type": "role",
  "run_list": [

Many scripts, including those provided by Rails, don't ask for a particular version of Ruby such as "ruby1.8" and simply look for "ruby" instead. Sometimes a symlink is provided and sometimes the executable is simply called "ruby" in the first place but generally speaking, it is difficult to predict this behaviour, especially when Ruby Gems is thrown into the mix. The symlinks recipe seeks to relieve you of this headache by creating symlinks for the common executables pointing to the Ruby version specified by node[:languages][:ruby][:default_version]. This is also available as a definition called +ruby_symlinks+, which is a wrapper around the link resource. As before, just specify the version number. Non-symlinks will not be overwritten unless you set force to true. You can also set a path other than /usr/bin if necessary.

IMPORTANT! Only Ubuntu, Debian and Gentoo support installing a specific Ruby version at all. yum-based distributions install 1.8 by default but require you to give the full package version otherwise. Maybe some magic could be added to Chef? Arch installs 1.9.2 by default but 1.8 is only available from AUR. Additionally, Ubuntu and Debian group 1.9.2 with 1.9.1 while Gentoo lumps all 1.9 releases together.

License and Author

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. ```

ruby Cookbook CHANGELOG

This file is used to list changes made in each version of the ruby cookbook.

v1.0.0 (2016-02-08)

  • Marking this cookbook as officially deprecated. See the readme for additional information
  • Added support for RHEL 7 and new Fedora package naming schemas
  • Expanded Test Kitchen testing platforms and added serverspec tests
  • Added Travis CI testing and integration testing with Kitchen Docker
  • Added Rubocop config and resolved all issues
  • Resolved foodcritic warnings and added a .foodcritic file to disable the definition warning
  • Updated contributing and testing documentation
  • Add file
  • Added a Rakefile for simplified testing
  • Added a chefignore file to reduce the number of files uploaded to the chef server
  • Added suse to the metadata.rb
  • Added issues_url and source_url to the metadata.rb
  • Added a simple chefspec to ensure the compile phase completes


The "Don't Be Hasty" release.
- Remove ruby-mode package (fixes several issues)
- Add name to metadata (also fixes several issues)
- Create test kitchen harness
- CHEF is now the maintainer
- Create cookbook_version attribute to specify the version originating from the cookbook. This is an internally used attribute primarily, and may change in the future, or be removed.


  • "Initial" public release.
  • First entry in the, because we have to start somewhere.

Collaborator Number Metric

1.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Foodcritic Metric

1.0.0 passed this metric

No Binaries Metric

1.0.0 passed this metric

Testing File Metric

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must include a tag that matches this cookbook version number