Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults #32

Closed
yfeldblum opened this issue Aug 8, 2011 · 6 comments
Closed

Defaults #32

yfeldblum opened this issue Aug 8, 2011 · 6 comments
Assignees

Comments

@yfeldblum
Copy link

In my recipes I typically want the RVM resources, but not the defaults the RVM attributes/recipies set.

I like having the cookbook provide me with the tools to manage RVM resources in the form of the LW resources/providers. But I typically start with

node.rvm.default_ruby = "system"
node.rvm.rubies.clear
node.rvm.global_gems.clear
include_recipe "rvm"

because I don't need the defaults.

If

gem_package 'rvm' do
  action :nothing
end.run_action(:install)

require 'rubygems'
Gem.clear_paths
require 'rvm'
create_rvm_shell_chef_wrapper
create_rvm_chef_user_environment

were in recipes/system.rb, that would be very helpful. Then I could `include_recipe "rvm::system" and have RVM installed, but without any default RVM rubies/gems that I don't need.

@fnichol
Copy link
Contributor

fnichol commented Aug 8, 2011

This is good timing as I came to the same conclusion late last week :) I'm working towards support for per-user installs in addition to the system wide install so recipe[rvm::default] and recipe[rvm::system] will need some reworking. I'll look to getting this sorted in the next couple of days.

@ghost ghost assigned fnichol Aug 8, 2011
@fnichol
Copy link
Contributor

fnichol commented Aug 12, 2011

So this is before updating the README (bad, bad) but I hope I've improved things here. This commit message has a general rundown of the recipe breakdown. @yfeldblum, in your case you should be able to include recipe[rvm::system_install] and be off to the races.

I'll be updating the docs, changelog, etc. over the next few days so that I can bump a release to 0.8.0.

@yfeldblum
Copy link
Author

Sweet!

@fnichol
Copy link
Contributor

fnichol commented Aug 13, 2011

So good to close?

@yfeldblum
Copy link
Author

Yep!

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants