summaryrefslogtreecommitdiff
path: root/lib/chef/run_context
Commit message (Collapse)AuthorAgeFilesLines
* Hook up the recipe_file_loaded event which was defined but not actually called.Noah Kantrowitz2016-09-021-2/+3
| | | | | | | This also extends two of the recipe events to get the recipe name in addition to the path because that's usually useful for display. These arguments are both added at the end so the auto-magic argument trimmer will keep backwards compat. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Ensure that chef-zero loads libraries recursivelytm/zero_deep_librariesThom May2016-03-031-0/+1
|
* autofixing whitespace copsLamont Granquist2016-02-051-5/+2
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* 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-6/+6
| | | | | | | 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.
* Raise an error when including a recipe from an unreachable cookbookdanielsdeleo2014-03-141-0/+12
| | | | | | | | | | | | | | | | | | | | Fixes CHEF-4367. When attempting to load a recipe belonging to a cookbook that is not in the run_list or any dependencies of cookbooks in the run_list, chef will now produce an error like this: Chef::Exceptions::MissingCookbookDependency ------------------------------------------- Recipe `ancient::aliens` is not in the run_list, and cookbook 'ancient' is not a dependency of any cookbook in the run_list. To load thisrecipe, first add a dependency on cookbook 'ancient' in the cookbook you're including it from in that cookbook's metadata. This error will occur when chef-solo users use `include_recipe` without specifying the dependency in metadata; prior to this patch, chef would typically fail reading an undefined attribute, which commonly would result in a NoMethodError for nil.
* Normalize whitespace on all filesSeth Vargo2013-09-261-3/+3
|
* [CHEF-3817] Fix dedupe in cookbook_order by returning dependencies as symbols.Matthew Kent2013-06-181-3/+3
| | | | And add matching spec.
* cleanup requires for lwrp base clasesdanielsdeleo2012-12-191-1/+1
|
* Extract LWRP resource code to LWRPBasedanielsdeleo2012-12-191-1/+1
|
* Extract provider LWRP code to LWRPBasedanielsdeleo2012-12-191-2/+2
|
* [CHEF-3376] Add debug logging for compile orderdanielsdeleo2012-11-301-0/+1
| | | | | | Ex: DEBUG: Cookbooks to compile: ["dependency1", "dependency2", "test-with-deps"]
* [CHEF-3376] fix incorrect doc, add more docsdanielsdeleo2012-11-301-1/+1
| | | | | * fix incorrect statement in CookbookCompiler docs * Add lots of doc to RunContext
* [CHEF-3376] remove redundant attr_accessordanielsdeleo2012-11-301-4/+4
|
* [CHEF-3376] rdoc more methods, reorganizedanielsdeleo2012-11-301-0/+1
|
* [CHEF-3376] move recipe compilation to CookbookCompilerdanielsdeleo2012-11-301-1/+26
|
* [CHEF-3376] make CookbookCompiler take a RunContextdanielsdeleo2012-11-301-16/+16
| | | | | The circular reference is not ideal, but it allows for complete extraction of all cookbook compilation into CookbookCompiler.
* [CHEF-3376] give CookbookCompiler its own filedanielsdeleo2012-11-301-0/+253