cookbook 'rbenv-install-rubies', '~> 0.2.1', :supermarket
rbenv-install-rubies (2) Versions 0.2.1 Follow2
Install ruby by using rbenv
cookbook 'rbenv-install-rubies', '~> 0.2.1'
knife supermarket install rbenv-install-rubies
knife supermarket download rbenv-install-rubies
Chef cookbook of ruby install by rbenv. Can specify ruby versions into node attributes.
Depends
Recipes
default
Install rubyies that specified in node attributes.
keep-group-write
To keep group write of rbenv versions directory for installing gems by rbenv group user.
Attributes
Global ruby version.
node.default[:rbenv_install_rubies][:global_version] = '2.0.0-p247'
List of other versions.
node.default[:rbenv_install_rubies][:other_versions] = []
List of preinstalled gems for rubies.
node.default[:rbenv_install_rubies][:gems] = ['bundler', 'rbenv-rehash', 'pry']
List of OS package names that is required by compiling ruby and some gems.
node.default[:rbenv_install_rubies][:lib_packages] = []
Sample json
Just install rubies
{
"run_list": [
"recipe[rbenv-install-rubies]"
],
"rbenv-install-rubies": {
"global_version": "2.0.0-p247",
"other_versions": ["1.9.3-p448"],
"gems": ["bundler", "rbenv-rehash", "pry", {"nokogiri" => {"version" => "1.5.10"}}],
"lib_packages": ["libxml2-devel", "libxslt-devel"]
}
}
With keep group write feature
{
"run_list": [
"recipe[rbenv-install-rubies]"
"recipe[rbenv-install-rubies::keep-group-write]"
],
"rbenv": {
"group_users": ["john", "mike"]
],
"rbenv-install-rubies": {
"global_version": "2.0.0-p247",
"other_versions": ["1.9.3-p448"],
"gems": ["bundler", "rbenv-rehash", "pry", {"nokogiri" => {"version" => "1.5.10"}}],
"lib_packages": ["libxml2-devel", "libxslt-devel"]
}
}
Specs
This cookbook is tested by below things.
How to run specs
$ git clone https://github.com/akahigeg/rbenv-install-rubies-cookbook.git
$ cd rbenv-install-rubies-cookbook
$ vagrant up
$ bundle install
$ bundle exec rake spec
Dependent cookbooks
rbenv >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.1 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
0.2.1 failed this metric
FC064: Ensure issues_url is set in metadata: rbenv-install-rubies/metadata.rb:1
FC065: Ensure source_url is set in metadata: rbenv-install-rubies/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rbenv-install-rubies/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.1 passed this metric
Publish Metric
0.2.1 passed this metric
Supported Platforms Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 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
0.2.1 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
0.2.1 failed this metric
0.2.1 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
0.2.1 failed this metric
FC064: Ensure issues_url is set in metadata: rbenv-install-rubies/metadata.rb:1
FC065: Ensure source_url is set in metadata: rbenv-install-rubies/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rbenv-install-rubies/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.1 passed this metric
Publish Metric
0.2.1 passed this metric
Supported Platforms Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 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
0.2.1 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
0.2.1 failed this metric
FC065: Ensure source_url is set in metadata: rbenv-install-rubies/metadata.rb:1
FC066: Ensure chef_version is set in metadata: rbenv-install-rubies/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.1 passed this metric
Publish Metric
0.2.1 passed this metric
Supported Platforms Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 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
0.2.1 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
0.2.1 passed this metric
0.2.1 passed this metric
Testing File Metric
0.2.1 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
0.2.1 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
0.2.1 failed this metric
0.2.1 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