Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

chefdk is still in gem env after uninstalling it #223

Closed
iroller opened this issue Nov 9, 2014 · 2 comments
Closed

chefdk is still in gem env after uninstalling it #223

iroller opened this issue Nov 9, 2014 · 2 comments

Comments

@iroller
Copy link

iroller commented Nov 9, 2014

Hi there,

I followed chefdk uninstall procedure for macosx and also removed ~/.chefdk, not sure why this step is not covered in docs.
So the problem is - I still have chefdk in gem env:

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.2.2
  - RUBY VERSION: 2.1.4 (2014-10-27 patchlevel 265) [x86_64-darwin14.0]
  - INSTALLATION DIRECTORY: /Users/user/.chefdk/gem/ruby/2.1.0
  - RUBY EXECUTABLE: /Users/user/.rbenv/versions/2.1.4/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/user/.chefdk/gem/ruby/2.1.0/bin
  - SPEC CACHE DIRECTORY: /Users/user/.gem/specs
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-14
  - GEM PATHS:
     - /Users/user/.chefdk/gem/ruby/2.1.0
     - /opt/chefdk/embedded/lib/ruby/gems/2.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/user/.rbenv/versions/2.1.4/bin
     - /Users/user/.rbenv/libexec
     - /Users/user/.rbenv/plugins/rbenv-update/bin
     - /Users/user/.rbenv/plugins/ruby-build/bin

So it's still in EXECUTABLE DIRECTORY, GEM PATHS and INSTALLATION DIRECTORY.
I don't have anything related to chefdk in ~/.gemrc, /etc/gemrc, $PATH or my shell dotfiles.

Any ideas on how to get rid of it completely?

@danielsdeleo
Copy link
Contributor

Did you add the chef shell-init stuff to your dot files? If so, you probably need to restart your shell. If that's not it, I'd be pretty confused since ChefDK doesn't modify any global config on its own.

@iroller
Copy link
Author

iroller commented Nov 12, 2014

Oh yes, I added chef shell-init to my dotfiles and then removed, I was sure I restarted the shell. Restarting it now helped. Thanks.

@iroller iroller closed this as completed Nov 12, 2014
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants