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

change gems dir to the seemingly incorrect location that '/usr/local/bin/ruby /usr/local/bin/gem env gemdir' reports #19

Merged
merged 1 commit into from
Jan 12, 2013

Conversation

anujbiyani
Copy link
Contributor

Sorry for this correcting pull request, but I have more information now that changes something I was mistaken about earlier

I had thought that the gems_dir ohai was reporting was incorrectly /usr/local/lib/ruby/gems/1.9.1 but it turns out that's the directory that rubygems is reporting to ohai:

$> /usr/local/bin/ruby /usr/local/bin/gem env gemdir # the command that ohai runs
/usr/local/lib/ruby/gems/1.9.1
$> /usr/local/bin/ruby /usr/local/bin/gem env # to provide context
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23
  - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.9.1
     - /home/ubuntu/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri"
     - "update" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - http://rubygems.org/

The extra /gems that I added at the end of the gems_dir is something that cookbooks tend to add manually, and I guess now I know why.

…bin/ruby /usr/local/bin/gem env gemdir' reports
sethvargo added a commit that referenced this pull request Jan 12, 2013
change gems dir to the seemingly incorrect location that '/usr/local/bin/ruby /usr/local/bin/gem env gemdir' reports
@sethvargo sethvargo merged commit 2a309f5 into chefspec:master Jan 12, 2013
@sethvargo
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants