summaryrefslogtreecommitdiff
path: root/lib/chef/workstation_config_loader.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-1/+1
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Move workstation_config_loader into chef-configmcquin/chef-config/workstation-config-loaderClaire McQuin2015-06-291-158/+3
|
* Modify accesses to HOME to use path_helper instead.Kartik Null Cating-Subramanian2015-03-201-3/+4
|
* Fix knife plugin path searchingLamont Granquist2014-12-031-1/+1
| | | | | | | | | | | | | | | | | | Unreleased Chef 12.0.0 bug caught in testing where only the searching upwards from PWD to find .chef in order to get the plugin path for knife was busted. The chef_config_dir was being used before load_config was being called, so it was nil, which broke finding knife plugins. This was fixed by adding some lazy initialization of the config_loader object itself and the chef_config_dir. The reset_config_loader! is added entirely to reset the global state for unit testing. This whole class is a bit horrible and needs to have all its global state removed from it, class methods removed, class ivars and the class-variable-in-a-class-method-for-inheritance-lolwut needs to be removed. Unfortunately, that requires some delicate surgery because Chef::Knife gets used as a public API, and is beyond the scope of gettting Chef 12 shipped.
* Add debug/info logging for knife config file findingdanielsdeleo2014-09-031-2/+19
| | | | | | | To resolve a chicken/egg issue with the logger being configured *after* the config is located and read, knife will now check for a KNIFE_DEBUG variable and initialize the logger to debug early in the startup process when that variable is set.
* Knife now prefers DIR/config.rb to DIR/knife.rbdanielsdeleo2014-09-031-0/+4
| | | | | | | | | | `knife.rb` is not deprecated at this time. The precedence of directories is the same. Directories are searched in the same order, so that the presence of config.rb in a low precedence directory, e.g., `~/.chef/config.rb` does not prevent knife from loading a knife.rb located in a higer precedence directory, e.g., `$PWD/.chef/knife.rb`.
* Extract Knife config file find/load to a reusable componentdanielsdeleo2014-09-031-0/+156