summaryrefslogtreecommitdiff
path: root/lib/chef.rb
Commit message (Collapse)AuthorAgeFilesLines
* Consistently use NOT_PASSED over alternativesLamont Granquist2019-08-071-2/+1
| | | | | | | | | | | | | | We have four different versions of this now, and this converts to just using the one convention in `lib/chef/constants.rb` Interestingly `Chef::NIL_ARGUMENT` is used nowhere in the codebase, that probably got refactored out in 12.5.1. Node objects still use `NIL` but that is a different kind of `Object.new` which really is semantically private to the implementation of attributes. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-14/+14
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add train-core. Remove chef-core references outside of bootstrapMarc A. Paradise2019-04-291-12/+0
| | | | Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* Trailing code reviewMarc A. Paradise2019-04-241-0/+10
| | | | | | * document why chef_core/text is included at the top level. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* Rubocop!Marc A. Paradise2019-04-241-1/+0
| | | | Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* Bootstrap via chef_coreMarc A. Paradise2019-04-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Make bootstrap use train via chef_core/TargetHost This commit implements usage of TargetHost instead of knife_ssh. TargetHost is a platform-independent representation of a Train connection. It abstracts common operations (such as file upload/download, permissions, temp directories, command executation, etc) and connection error handling. Moving to TargetHost and train gives us the ability to execute commands on the bootstrap target; instead of running sh -c 'long-command-string-containing-secrets', we'll now upload the bootstrap script to a temporary directory on the bootstrap target and execute it there. Incorporating WinRM support directly (allowing core support for Windows bootstraps, without the knife-windows plugin) will follow. THis also improves unit test coverage of the bootstrap module, and clarifies functional versus behavior tests in that space Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* Chef-13: remove Chef::ShellOutLamont Granquist2017-03-201-2/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* 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-15/+15
| | | | | | | 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.
* [RFC-039] chef handler dslRanjib Dey2015-04-181-1/+1
|
* add resource_resolver and resource_priority_mapLamont Granquist2015-04-151-0/+1
| | | | also wire them up through the Chef class.
* Remove 1.8 and 1.9 specific monkey patchesdanielsdeleo2014-11-261-7/+0
|
* Backport URI::Generic#hostname to Ruby 1.9.2 and olderdanielsdeleo2013-11-151-0/+2
| | | | | | | | | | | | | Documentation for URI::Generic#host in Ruby 2.0.0 explains: Since IPv6 addresses are wrapped by brackets in URIs, this method returns IPv6 addresses wrapped by brackets. This form is not appropriate to pass socket methods such as TCPSocket.open. If unwrapped host names are required, use “hostname” method. Therefore the best way to support IPv6 URIs is to replace calls to URI::Generic#host with URI::Generic#hostname. The #hostname method is added in Ruby 1.9.3 so we need to backport it for older ruby versions.
* Add File.realpath backport for ruby 1.8danielsdeleo2013-06-261-0/+1
| | | | - Related to fix for CHEF-4312
* Removing Dir monkey patch.Jon Morrow2013-06-171-1/+0
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+39
| | | | The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!
* big refactor of the repo layout. move to a chef gem and a chef-server gem ↵Ezra Zygmuntowicz2008-10-081-29/+0
| | | | all with proper deps
* Added template support, changed license to Apache v 2Adam Jacob2008-08-161-14/+13
|
* Moving chef-server into lib, reworking specs, adding storieschef-server-packageAdam Jacob2008-06-151-1/+5
|
* Working on network layerAdam Jacob2008-05-191-1/+1
|
* Added rcov coverage, lots of tests, definitions, node supportAdam Jacob2008-03-101-0/+26