cookbook 'rvm_sl', '= 0.1.1'
rvm_sl (12) Versions 0.1.1 Follow0
Installs/Configures user install of rvm
cookbook 'rvm_sl', '= 0.1.1', :supermarket
knife supermarket install rvm_sl
knife supermarket download rvm_sl
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
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- 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
0.1.1 passed this metric