This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from opscode/sersut/port-pr229-master
Merge pull request #229 from opscode/sersut/rubygems-cust-fix
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Rubygems Customization ## | ||
# Customize rubygems install behavior and locations to keep user gems isolated | ||
# from the stuff we bundle with omnibus and any other ruby installations on the | ||
# system. | ||
|
||
# Always install and update new gems in "user install mode" | ||
Gem::ConfigFile::OPERATING_SYSTEM_DEFAULTS["install"] = "--user" | ||
Gem::ConfigFile::OPERATING_SYSTEM_DEFAULTS["update"] = "--user" | ||
|
||
module Gem | ||
|
||
## | ||
# Override user_dir to live inside of ~/.chefdk | ||
|
||
def self.user_dir | ||
parts = [Gem.user_home, '.chefdk', 'gem', ruby_engine] | ||
parts << RbConfig::CONFIG['ruby_version'] unless RbConfig::CONFIG['ruby_version'].empty? | ||
File.join parts | ||
end | ||
|
||
end | ||
|
File renamed without changes.