summaryrefslogtreecommitdiff
path: root/lib/chef/recipe.rb
Commit message (Collapse)AuthorAgeFilesLines
* Style/EmptyLiteralLamont Granquist2019-07-051-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+1
| | | | | | | i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-3/+3
| | | | | | | 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>
* now user can use tagged method in both only_if and not_ifKapil Chouhan2018-11-291-15/+0
| | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* add the resources() dsl method to providerslcg/fix-resources-dsl-methodLamont Granquist2018-04-121-7/+1
| | | | | | | | | | | Custom resource actions were picking this up via delegation to the wrapping resource, and that wiring was removed in 14, so that API then got dropped accidentally. This should fix that back up. It also consistently injects the resource APIs into resources and providers both now (and consistently across core resources and custom resources). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix error messages for method_missing removalLamont Granquist2017-03-211-1/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove requires no longer necessarylcg/remove-requiresLamont Granquist2016-08-101-9/+0
| | | | these are all covered under chef/dsl/recipe now
* add better resource manipulation APILamont Granquist2016-04-151-2/+1
| | | | | deprecates chef_rewind functionality completely and adds a few more features
* deprecate Chef::DSL::Recipe::FullDSLlcg/deprecate-fulldslLamont Granquist2016-03-161-1/+1
| | | | | | | | this module was created out of a bit of excessive paranoia instead of simply adding mixins that we always use with Chef::DSL::Recipe directly to Chef::DSL::Recipe. lets try and YAGNI this class and just add it directly. these modules are already injected into everyone's recipes and providers, so I can't imagine a huge amount of backcompat breaks.
* lazy module inclusion into DSL moduleslcg/use-and-lazy-module-includeLamont Granquist2016-03-151-1/+0
| | | | | | Chef::DSL::Recipe::FullDSL.send(:include, MyModule) will now patch all its descendants that it has been included into (works the way actual inheritance works now).
* autofixing whitespace copsLamont Granquist2016-02-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | 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-12/+12
| | | | | | | 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.
* Route all tags access through Chef::Node#{tags,tag}Jos Backus2015-10-201-3/+3
| | | | | This should avoid node tags not being initialized properly to an empty Array.
* Stop checking for nil hereJos Backus2015-10-201-2/+0
| | | | | node.tags should never be nil, always an Array. node.tags == nil would be a bug.
* Rename Chef::DSL::Recipe::Everything -> FullDSLJohn Keiser2015-06-231-8/+1
|
* Add integration point for ps_credential dslJay Mundrawala2015-03-201-0/+2
|
* make include_recipe "::foo" use current cookbookLamont Granquist2015-01-201-4/+8
| | | | | | | | | | | | | | | | The following code is brittle if you want to fork the cookbook and rename it (which is a best practice when forking cookbooks for internal use): ```ruby if node[:platform_family] == "rhel" include_recipe "mycookbook::_rhel" end ``` In order for cookbooks to be easily renamable they can currently use the syntax `include_recipe "#{cookbook_name}::_rhel"` which is unwieldy. This patch adds `include_recipe "::_rhel"` as syntax sugar to make this easier.
* First pass at DSL additionstyler-ball2014-12-171-0/+2
|
* typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-081-1/+1
|
* Return correct value for tagged? when node[:tags] is nil.Serdar Sutay2014-10-151-0/+2
|
* Remove deprecated @node ivarsjk/remove_deprecated_ivarsJohn Keiser2014-08-271-1/+0
|
* CHEF-5086/COOK-3890: Add reboot_pending? to core DSLBryan McLellan2014-02-271-0/+2
| | | | | | Accessible in recipes and in resources, can be used to detect if Windows needs to reboot to finish a software installation or operating system update.
* Moved Chef::Recipe#tag into the Chef::Node objectPaul Mooring2013-10-041-19/+2
|
* moving registry_helper to dsl classLamont Granquist2012-12-191-2/+2
|
* adding registry helper for recipes+resourcesLamont Granquist2012-12-191-0/+2
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+133
| | | | 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-127/+0
| | | | all with proper deps
* Fixing searching in recipes to use the RESTful server, instead of the local ↵Adam Jacob2008-10-051-2/+7
| | | | index. Adding debugging
* Only eval the block if one was passedAdam Jacob2008-10-021-1/+1
|
* Refactoring to support a base package class, that package providers can ↵Adam Jacob2008-09-081-1/+1
| | | | inherit from
* Added template support, changed license to Apache v 2Adam Jacob2008-08-161-14/+12
|
* Updating search ticketsAdam Jacob2008-07-281-0/+2
|
* Adding functional search supportAdam Jacob2008-07-101-0/+6
|
* Adding chef-solo command, config examples, Chef::Log class, ↵Adam Jacob2008-04-081-0/+1
| | | | Chef::Log::Formatter, Chef::Compile, and all the tests
* Adding the Params::Validate mixin, refactored Chef::Config to be a ↵Adam Jacob2008-04-071-15/+34
| | | | singleton, Implemented require_recipe
* Adding cookbook support, updating rcov coverageAdam Jacob2008-03-121-4/+4
|
* Added rcov coverage, lots of tests, definitions, node supportAdam Jacob2008-03-101-0/+96