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

ruby_block[initialize_rbenv] only called when template[/etc/profile.d/rbenv.sh] is updated #87

Open
caleb opened this issue Jan 17, 2014 · 0 comments

Comments

@caleb
Copy link

caleb commented Jan 17, 2014

This might be on purpose, but I noticed that the cookbook only sets up the ENV for rbenv when template[/etc/profile.d/rbenv.sh] is updated.

Is this on purpose? It seems like the first chef-client run the ENV would include rbenv and therefore cookbooks that use gem_package would install gems into the default rbenv ruby.

But after that first run, when the template doesn't change, and the ruby_block[initialize_rbenv] isn't run, and the rbenv variables aren't added to ENV, and therefore any cookbook that uses gem_package would then default to the system ruby.

I know I should be using the rbenv gem package resource, and I am, but I ran into an issue where another cookbook was using gem_package and I saw that the rbenv-cookbook does set up the environment, but only when the above template changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant