summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook
Commit message (Collapse)AuthorAgeFilesLines
* redo of the redo of the patch to fix #5089lcg/issue5089Lamont Granquist2016-10-051-8/+7
| | | | | | | | see discussion in: https://github.com/chef/chef/pull/5096 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* drop warn all the way down to debuglcg/ignore-unknown-metdata-rb-fieldsLamont Granquist2016-09-211-1/+1
| | | | | | | we expect this to be forward compat, so that all this turns into is a nag message to upgrade which is probably better just not to display Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* ignore unknown metadata fields in metadata.rbLamont Granquist2016-09-211-0/+8
| | | | | | | | | | | | | | | if we're just using chef-zero there's no metadata.json file so chef-client doesn't do json parsing (which ignores unknown metadata fields already) but parses metadata.json which explodes. i believe since TK goes through berks it renders the rb to json before copying to the virt so we don't see this in TK or in running chef-client from a real server. this only affects the chef-client -z or chef-zolo mode of operation (and probably legacy chef-solo) Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix symlink tests on Ruby 2.3 on WindowsJohn Keiser2016-08-171-9/+21
|
* Merge pull request #5215 from chef/jk/windows-ruby-2.3John Keiser2016-08-171-21/+14
|\ | | | | Don't use relative_path_from on glob results
| * Don't use relative_path_from on glob resultsjk/windows-ruby-2.3John Keiser2016-08-161-21/+14
| | | | | | | | Windows Ruby 2.3 translates pathnames like ADMINI~1 to Administrator, making the comparison fail.
* | autofixing Style/RedundantException copLamont Granquist2016-08-161-1/+1
| |
* | autofixing Style/AccessModifierIndentation copLamont Granquist2016-08-161-1/+1
|/
* make keepalives entirely optionalLamont Granquist2016-08-091-1/+1
| | | | turn on only for the cookbook synchronizer
* stop constantly using new ServerAPI objectsLamont Granquist2016-08-091-1/+1
| | | | keep one-per-thread though since i doubt we're threadsafe
* Ensure that solo specific code is run at the proper timeThom May2016-05-161-1/+1
| | | | | | ie, only when we're in OG mode and not in local mode. Signed-off-by: Thom May <thom@chef.io>
* gem metadata command needs Gem.clear_pathslcg/gem-metadata-clear-pathsLamont Granquist2016-05-121-0/+1
| | | | otherwise it'll crash on the first run and have to be re-run
* debug log the generated GemfileLamont Granquist2016-04-071-0/+2
|
* fix args to gem commandlcg/fix-gem-metadataLamont Granquist2016-04-071-1/+1
|
* push ruby_bin first in path for exec'ing bundle intallLamont Granquist2016-04-071-1/+13
|
* tighten up the chdir logicLamont Granquist2016-04-071-3/+1
|
* remove now-unused codeLamont Granquist2016-04-071-54/+0
|
* MVP to fix gem metadata commandLamont Granquist2016-04-071-6/+13
| | | | | simply use shell_out! to avoid bundler's state in the running chef-client process.
* Merge pull request #4640 from chef/tm/zero_deep_librariesThom May2016-03-151-1/+1
|\ | | | | Support libraries with sub directories
| * Ensure that chef-zero loads libraries recursivelytm/zero_deep_librariesThom May2016-03-031-1/+1
| |
* | s/escape_glob/escape_glob_dir/lcg/fix-escape-globLamont Granquist2016-03-101-2/+2
| | | | | | | | | | Removes all remaining references to the deprecated escape_glob helper routine.
* | Merge pull request #4478 from chef/lcg/rfc-060-gem-metadataLamont Granquist2016-03-033-2/+143
|\ \ | |/ |/| RFC-060 gem metadata MVP
| * need to require bundlerlcg/rfc-060-gem-metadataLamont Granquist2016-02-231-0/+1
| | | | | | | | for Bundler::UI
| * remove now-unnecessary requireLamont Granquist2016-02-091-1/+0
| |
| * rubocopismsLamont Granquist2016-02-091-2/+2
| |
| * add comments and cleanupLamont Granquist2016-02-091-2/+12
| |
| * remove unnecessary paranoiaLamont Granquist2016-02-091-5/+1
| |
| * make rubygems.org configurableLamont Granquist2016-02-091-1/+1
| | | | | | | | for bonus points gem_package will pick this up as well.
| * get the formatting for cookbook gems correctLamont Granquist2016-02-092-13/+65
| | | | | | | | | | | | | | | | | | | | this leverages the PR: https://github.com/bundler/bundler/pull/4245 to redirect output from bundler into chef's logger/formatter to get the UI right. if you don't have that in the external bundler you'll just get output on STDOUT. fix is to upgrade bundler.
| * fixed my .vimrc auto-copyright headerLamont Granquist2016-02-091-1/+1
| |
| * RFC-060 gem metadata MVPLamont Granquist2016-02-093-1/+84
| |
* | use Pathname#cleanpath instead of Chef::Util::PathHelper.cleanpath to ↵Matt Wrock2016-02-291-2/+2
| | | | | | | | compare globed files with forward slashes
* | Fix style issuedanielsdeleo2016-02-261-1/+1
| |
* | Filter out directory paths from all_files when loadinglist-unignored-filesdanielsdeleo2016-02-261-1/+1
| |
* | Remove ignored files from all_files before segmentingdanielsdeleo2016-02-261-13/+3
| |
* | Convert cookbook version loader to escape_glob_dirdanielsdeleo2016-02-261-4/+4
| |
* | Load root files as a part of all_filesdanielsdeleo2016-02-261-12/+25
| |
* | Rename all_unignored_files -> all_filesdanielsdeleo2016-02-261-9/+9
| |
* | Load cookbook segements by fnmatch-ing from file listdanielsdeleo2016-02-261-3/+21
| |
* | List all the unignored files when loading a cookbookdanielsdeleo2016-02-261-0/+30
| |
* | flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-11/+11
| | | | | | | | no enforced trailing comma on arguments...
* | Add warning as suggested by Lamont Granquist (thanks!)Jos Backus2016-02-171-1/+4
| |
* | chef-client: add --[no]skip-cookbook-sync optionJos Backus2016-02-171-0/+1
| | | | | | | | | | Use with caution. Useful for patching a set of cookbooks on a machine when iterating during development.
* | convert MultilineOperationIndentation style to "indented"Lamont Granquist2016-02-122-2/+2
| | | | | | | | this looks nicer.
* | pull rubocop 0.37.2 into chefstyleLamont Granquist2016-02-121-1/+1
| | | | | | | | | | this is from the same ruleset that we had, but the new code catches more conditions.
* | Merge pull request #4541 from chef/lcg/chefstyle-batchLamont Granquist2016-02-111-1/+1
|\ \ | | | | | | fix a batch of cops
| * | autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-1/+1
| | |
| * | auto fixing some rubocopsLamont Granquist2016-02-091-1/+1
| |/ | | | | | | | | | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* | Ensure we do streaming requests correctly everywheretm/site_download_regressionThom May2016-02-091-1/+1
|/