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

Installs/Configures user install of rvm

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

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']['password'] - The user password for rvm user install
  • node['rvm']['user']['dir'] - The user folder for rvm user install

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'
  version '2.2.3'
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

  • [David Saenz Tagarro] - Initial release of rvm_sl

0.1.1

  • [David Saenz Tagarro] - Added rvm_gem resource
  • [David Saenz Tagarro] - Added ruby dependencies to system_requirements recipe

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.1.1 passed this metric