cookbook 'ruby_rvm', '~> 0.4.9'
ruby_rvm (6) Versions 0.4.9 Follow1
Installs/Configures rvm
cookbook 'ruby_rvm', '~> 0.4.9', :supermarket
knife supermarket install ruby_rvm
knife supermarket download ruby_rvm
Alternative LWRP's based rvm cookbook
Inspired by RVM cookbook by fnichol
Supported chef-client version:
Chef-Client >= 11.12.0
LWRP's
ruby_rvm 'ubuntu' do
action :install
end
ruby_rvm_ruby 'ubuntu:ruby:1.9.3' do
version '1.9.3'
patch 'falcon'
default true
action :install
end
ruby_rvm_gemset 'ubuntu:gemset:1.9.3:test' do
ruby_string '1.9.3@test'
user 'ubuntu'
action :create
end
ruby_rvm_gem 'ubuntu:unicorn' do
gem 'unicorn'
user 'ubuntu'
ruby_string '1.9.3@test'
action :install
end
Execute
Execute scripts in rvm environment.
All resources worked like native resources but guards inherit environment from resource by default.
ruby_rvm_execute 'bundle install' do
ruby_string '2.0.0'
user 'ubuntu'
cwd '/home/ubuntu/test'
command 'bundle install'
not_if 'bundle check'
action :run
end
ruby_rvm_script 'bundle_install_sh' do
interpreter 'sh'
ruby_string '2.0.0'
user 'ubuntu'
cwd '/home/ubuntu/test'
code <
Attributes
# Options for .rvmrc
node['rvm']['rvmrc'] = {
'rvm_gem_options' => '--no-rdoc --no-ri',
'rvm_autoupdate_flag' => 0
}
# User installations
node['rvm'] = {
users: {
ubuntu: {
rubies: {
'1.9.3' => {action: 'install', patch: 'falcon'},
'2.0' => 'install',
},
gems: {
'1.9.3@test' => %w(eye unicorn),
'1.9.3@test2' => [
{gem: 'eye', version: '0.6', action: 'install'},
'unicorn'
],
'1.9.3@test3' => 'unicorn',
},
wrappers:
{
:'1.9.3@test' => {
bootup: [
{
binary: 'eye',
action: 'update'
}
]
},
:'1.9.3@test2' => {
bootup: %w(eye unicorn)
},
:'1.9.3@test3' => {
bootup: 'unicorn'
}
}
}
}
}
Recipes
recipe[ruby_rvm::default] # Full installations
recipe[ruby_rvm::packages] # Required packages
recipe[ruby_rvm::rvm]
recipe[ruby_rvm::rubies]
recipe[ruby_rvm::gems]
recipe[ruby_rvm::wrappers]
Author
Nikolay Murga
Dependent cookbooks
sudo >= 0.0.0 |
apt >= 0.0.0 |
bsw_gpg >= 0.0.0 |
chef_gem >= 0.0.0 |
Contingent cookbooks
Collaborator Number Metric
0.4.9 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.4.9 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.4.9 failed this metric
FC009: Resource attribute not recognised: ruby_rvm/recipes/test.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/gem.rb:26
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/gemset.rb:22
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/ruby.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/ruby.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/wrapper.rb:20
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.9 passed this metric
Testing File Metric
0.4.9 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.4.9 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.4.9 failed this metric
0.4.9 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.4.9 failed this metric
FC009: Resource attribute not recognised: ruby_rvm/recipes/test.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/gem.rb:26
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/gemset.rb:22
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/ruby.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/ruby.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/wrapper.rb:20
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.9 passed this metric
Testing File Metric
0.4.9 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.4.9 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.4.9 failed this metric
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/gem.rb:26
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/gemset.rb:22
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/ruby.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/ruby.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ruby_rvm/providers/wrapper.rb:20
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.4.9 passed this metric
Testing File Metric
0.4.9 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.4.9 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.4.9 failed this metric
0.4.9 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