cookbook 'ruby_install', '= 1.0.2', :supermarket
ruby_install (7) Versions 1.0.2 Follow8
cookbook 'ruby_install', '= 1.0.2'
knife cookbook site install ruby_install
knife cookbook site download ruby_install
ruby-install Chef Cookbook
ruby-install itself is responsible for getting and dependencies necessary for building a particular Ruby.
The following cookbook is a direct dependency because it is used for common "default" functionality.
On RHEL family distros, the "yum" cookbook is required for obtaining latest dependencies for building Rubies.
On Debian family distros, the "apt" cookbooks is required for obtaining latest dependencies for building Rubies.
The following platforms are supported and tested under test kitchen.
- Ubuntu 10.04, 12.04
- CentOS 5.10, 6.5
recipe[ruby_install] in your run_list to have
ruby-install installed. You will also have access to the
Installs the ruby-install codebase and initializes Chef to use the Lightweight Resources and Providers (LWRPs).
The version of ruby-install that will be installed.
The default is the current latest version 0.3.4
sha256 checksum of the version to be installed, used for security.
The default is a checksum that matches up with the latest ruby-install.
The default base path for installed Rubies. For example the following resource:
ruby_install_ruby 'ruby 2.0.0-p247'
will be installed into
The default is
If you are using ruby-install alongside chruby it expects, by
default, to find Rubies in
Pull requests are very welcome! Ideally create a topic branch for every separate change you make.
This cookbook uses [ChefSpec][chefspec] for unit tests. I also use Fodd
Critic and RuboCop to check for style issues.
When contributing it would be very helpful if you could run these via
bundle exec spec and
bundle exec style.
Lastly, there are Serverspec integration tests for use
with Test Kitchen. At the very least the installation
integration tests should be run, you can ignore the EC2 one if you don't
have an AWS account (which you will get billed for). The allrubies tests
often fail due to a particular Ruby failing to build on an OS, this is
not necessarily an issue with this cookbook though so can safely be
ignored. To see all of the available integration test suites just check
bundle exec rake T or
bundle exec kitchen list
License and Author
Copyright 2013-2014, Ross Timson
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.