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

RSS

rvm_sl (12) Versions 0.2.0

Installs/Configures user install of rvm

Policyfile
Berkshelf
Knife
cookbook 'rvm_sl', '= 0.2.0', :supermarket
cookbook 'rvm_sl', '= 0.2.0'
knife supermarket install rvm_sl
knife supermarket download rvm_sl
README
Dependencies
Changelog
Quality 67%

Cookbook Version
Build Status
Code Climate
Coverage Status
Dependency Status

rvm_sl Cookbook

Manages per-user RVMs and manages installed Rubies.

Requirements

Platforms

  • Ubuntu 14.04 LTS

Chef

  • Chef 12.2.0

packages

  • rvm::user_install - User installation of rvm

Attributes

rvm::user_install

See attributes/user_install.rb for default values.

  • node['rvm']['keyserver'] - Key to import from key server
  • node['rvm']['rcev-keys'] - Import the keys with the given key IDs from a keyserver
  • node['rvm']['user']['name'] - The user name for rvm user install
  • node['rvm']['user']['home'] - The home of the user

Resources

Example install ruby 2.2.3 as default for vagrant user:

rvm_rubies 'ruby-2.2.3' do
  default true
  home '/home/vagrant'
  user_name 'vagrant'
end

Example install bundler gem for user install ruby 2.2.3:

rvm_gem 'bundler' do
  home '/home/vagrant'
  ruby_version 'ruby-2.2.3'
  user_name 'vagrant'
end

Usage

rvm::user_install

Just include rvm::user_install in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[rvm::user_install]"
  ]
}

Sharing

knife cookbook site share "rvm_sl" "Package Management"

Testing

Before running kitchen test:

# vagrant box matching `.kitchen.yml` platform driver box
vagrant box add ubuntu-14.04 https://github.com/kraksoft/vagrant-box-ubuntu/releases/download/14.04/ubuntu-14.04-amd64.box

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: David Saenz Tagarro

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

rvm CHANGELOG

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

0.1.0

  • Initial release of rvm_sl

0.1.1

  • Added rvm_gem resource
  • Added ruby dependencies to system_requirements recipe

0.1.2

  • Fixed rubocop issues

0.1.3

  • Fixed documentation
  • Updated defaults of user attributes
  • Added defaults to user attributes of resources
  • Updated installing rvm guard

0.1.4

  • Fixed default user property of resources

0.1.5

  • Refactoring from Mixlib::ShellOut to login_shell
  • Removed not necessary attribute ['rvm']['user']['password']. Refactoring attributes and chefspecs.

0.1.6

  • Refactoring from Mixlib::ShellOut to execute resources
  • Refactoring attributes and chefspecs.

0.1.7

  • Added json gem dependencies to system requirements
  • DRY user environment from resources

0.1.8

  • Added system requirements for ruby 2.3.0

0.1.9

  • Fix: system requirements for ruby 2.3.0

0.2.0

  • Adds .gemrc to avoid installing documentation of gems
  • Fix bats integration tests on ruby version
  • Adds serverspec integration tests on .gemrc presence

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Foodcritic Metric
            

0.2.0 failed this metric

FC066: Ensure chef_version is set in metadata: rvm_sl/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: rvm_sl/resources/rubies.rb:6
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.2.0 passed this metric

Version Tag Metric
            

0.2.0 passed this metric