cookbook 'ruby_install', '~> 1.0.5'
ruby_install (7) Versions 1.0.5 Follow8
Installs/Configures ruby-install
cookbook 'ruby_install', '~> 1.0.5', :supermarket
knife supermarket install ruby_install
knife supermarket download ruby_install
ruby-install Chef Cookbook
Installs ruby-install, a simple way to build Rubies and
the natural companion to chruby.
ruby-install itself is responsible for getting and
dependencies necessary for building a particular Ruby.
Requirements
Cookbooks
The following cookbook is a direct dependency because it is used for
common "default" functionality.
- ark
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.
Platform
The following platforms are supported and tested under test kitchen.
- Ubuntu 14.10
- Debian 7.8
- CentOS 7.1
- Fedora 21
Other Debian and RHEL family distributions are assumed to work. Other
distributions that ruby-install supports should also
work, please report any additional platforms so they can be
added.
Usage
Simply include recipe[ruby_install]
in your run_list to have
ruby-install installed. You will also have access to the
ruby_install_ruby
resource.
Recipes
default
Installs the ruby-install codebase and initializes Chef to use the
Lightweight Resources and Providers (LWRPs).
Attributes
version
The version of ruby-install that will be installed.
The default is the current latest version 0.4.1
checksum
sha256 checksum of the version to be installed, used for security.
The default is a checksum that matches up with the latest ruby-install.
default_ruby_base_path
The default base path for installed Rubies. For example the following
resource:
ruby_install_ruby 'ruby 2.0.0-p247'
will be installed into
"#{node['ruby_install']['default_ruby_base_path']}/ruby-2.0.0-p247"
The default is "/opt/rubies"
.
If you are using ruby-install alongside chruby it expects, by
default, to find Rubies in /opt/rubies
or ~/.rubies
.
Development
- Source hosted at GitHub
- Report issues/Questions/Feature requests on GitHub Issues
Contributing
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 Food
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
Author:: Ross Timson (ross@rosstimson.com)
Heavily influenced by, and some code from the Ruby-Build
cookbook, Author:: Fletcher Nichol (fnichol@nichol.ca)
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
http://www.apache.org/licenses/LICENSE-2.0
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-install Cookbook
v1.0.5 (2015-05-30)
- Bump to ruby-install 0.5.0 (@ashtonthomas)
- Update libssl prior to ruby-install (@kplimack)
v1.0.4 (2014-05-09)
- Upgraded ruby-install to 0.4.3
- Updates to Rubies and OSs
v1.0.2 (2014-03-24)
- Update default ruby_install version to 0.4.1 (@brainopia)
- Fix broken redirect on latest Chef (@brainopia)
- Prevent reinstall on :install action (@brainopia)
- Slight refactor to fix RuboCop warnings
v1.0.0 (2014-02-15)
- Upgrade to ruby-install 0.4.0
- Use new --rubies-dir option to specify location of installed rubies, this gives more expected behaviour and works well with partial version strings. Fixes GH #3.
v0.1.2
- Last release got mangled with PaxHeaders in directories which seems to be due to an issue with bsdtar in later versions of OS X.
v0.1.1
- Update to ruby-install version 0.3.4
- Bump dependencies
- Ark extracts ruby-install tarball to /tmp otherwise it defaults to being
extracted to /usr/local/ruby-install1. Once the ruby-install bin is installed
with
make install
the extracted tarball is no needed.
v0.1.0
- Initial release.
Collaborator Number Metric
1.0.5 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.5 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.5 failed this metric
FC074: LWRP should use DSL to define resource's default action: ruby_install/resources/ruby.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:32
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:37
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:56
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.5 passed this metric
Testing File Metric
1.0.5 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.5 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.5 failed this metric
1.0.5 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.5 failed this metric
FC074: LWRP should use DSL to define resource's default action: ruby_install/resources/ruby.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:32
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:37
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:56
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.5 passed this metric
Testing File Metric
1.0.5 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.5 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.5 failed this metric
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:32
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:37
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_install/providers/ruby.rb:56
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.5 passed this metric
Testing File Metric
1.0.5 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.5 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.5 failed this metric
1.0.5 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number