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

rbenv_gem doesn't install gems #105

Closed
axsuul opened this issue Feb 10, 2015 · 3 comments
Closed

rbenv_gem doesn't install gems #105

axsuul opened this issue Feb 10, 2015 · 3 comments

Comments

@axsuul
Copy link

axsuul commented Feb 10, 2015

include_recipe "rbenv::system_install"

version = "2.1.0"

# Install ruby and set it as global version
rbenv_ruby version
rbenv_global version

# Install gems
rbenv_gem "backup" do
  version "4.1.6"
  rbenv_version version
end

Running this recipe succeeds but doesn't actually install gem. Have tried this on many notable gems (i.e. bundler). Any thoughts?

@CloCkWeRX
Copy link
Contributor

That usage should pretty much work right. Got any more detailed logs?

@hack2learn
Copy link

Same issue here. Even with specifying the user it seems it does install it but when you run gem list it is not listed at all.

My workaround for now is this:

execute "install gem bundler" do
  command "runuser -l #{node["cme"]["user"]} -c \'gem install bundler\'"
end

the only downside is, that it gets executed everytime unless you add not_if with a block to check if the gem is already installed.

@damacus damacus closed this as completed Jul 28, 2017
@lock
Copy link

lock bot commented Jul 28, 2018

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 Jul 28, 2018
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

4 participants