summaryrefslogtreecommitdiff
path: root/lib/chef/dsl
Commit message (Collapse)AuthorAgeFilesLines
* Add `chef_data_bag_item` to Cheffish DSL methodscheffish-data-bag-itemdanielsdeleo2016-07-191-0/+1
|
* Switch to node attributes for docker detectionAndrew Brown2016-05-301-2/+5
| | | | | Using ::File.exists? makes Travis CI sad due to statically looking for files. We'll use node attributes provided by Ohai instead.
* Style fixesAndrew Brown2016-05-301-1/+1
| | | | Fixing rubocop errors found during CI
* File atomic update default: false on docker filesAndrew Brown2016-05-301-0/+13
| | | | | | If unspecified, the default setting for atomic updates on docker special files should be 'false' to avoid Errno::EBUSY. This allows for a cookbook author to override this behaviour if desired.
* typeofix thanks @ranjiblcg/universal-dslLamont Granquist2016-05-171-1/+1
|
* update for feedback from stevenLamont Granquist2016-05-173-0/+3
|
* create 'universal' DSLLamont Granquist2016-05-163-20/+81
| | | | this is for DSL methods that get mixed in everywhere.
* how did that get there?lcg/fix-resources-api-issuesLamont Granquist2016-04-181-1/+1
|
* fix details in with_run_contextLamont Granquist2016-04-181-7/+7
|
* fix ! in yard commentlcg/resources-apiLamont Granquist2016-04-181-1/+1
|
* typofixLamont Granquist2016-04-151-1/+1
|
* add better resource manipulation APILamont Granquist2016-04-151-7/+182
| | | | | deprecates chef_rewind functionality completely and adds a few more features
* add notifying_block and subcontext_block to chefLamont Granquist2016-04-111-5/+7
|
* rearrange dsl mixinslcg/dsl-rearrangementLamont Granquist2016-03-183-63/+132
| | | | | | | | | | | | | | | | | | | | | | | - creates Chef::DSL::MethodMissing which will be nuked in Chef 13 - creates Chef::DSL::Core which is the mixins into core providers - adds build_resource/define_resource to core providers The intent here is to create Chef::DSL::Core which is intended to become the DSL minus method_missing and things that are only intended for recipes. Right now I've only added build_resource/declare_resource to core providers. We should probably push more into the "Core" DSL so that core providers could do things like use the search API. I would have moved everything other than resources and definitions over but the audit mode stuff is really only appropriate for recipes and not provider code and probably should not be moved over. We should probably have an intermediate mixin which is the "Custom Provider" DSL that has Resources and Definitions mixed into it, but which does not mix in the audit stuff that should only go into the Recipe DSL. There may also be a "Resources DSL" which has mixins for use with not_if/only_if and I'm unclear if that should be the "Core DSL" or another fourth mixin of DSL files.
* rub some YARD on deprecation commentLamont Granquist2016-03-171-1/+1
|
* deprecate Chef::DSL::Recipe::FullDSLlcg/deprecate-fulldslLamont Granquist2016-03-161-18/+16
| | | | | | | | 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-2/+7
| | | | | | 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).
* rm unnecessary mutexNathan Williams2016-03-111-4/+1
|
* fix deprecated Thread.exclusive with MutexNathan Williams2016-03-101-1/+2
|
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-1/+1
| | | | no enforced trailing comma on arguments...
* autofixing whitespace copsLamont Granquist2016-02-0511-31/+26
| | | | | | | | | | | | | | | | | | | | | | 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-029-11/+11
| | | 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-028-8/+8
| | | 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-0213-13/+13
| | | 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"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-183-6/+6
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-1412-41/+41
| | | | | | | 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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-132-2/+2
| | | | chefstyle -a fixed 1044 occurrances
* Don't activate cheffish and chef-provisioning until its DSL is usedjk/lazy-activationJohn Keiser2015-12-093-1/+148
|
* extract declare_resource to a mixin and extend APILamont Granquist2015-12-012-73/+111
| | | | | | | - extract to its own mixin so it can be included without method_missing and the rest of the resources DSL - add ability to inject different run_context - add ability to create_if_missing into the resource_collection
* use Chef::VersionConstraint::Platform in value_for_platformJordan Evans2015-10-241-3/+3
| | | | | | | Previously this was using Chef::VersionConstraint, which throws an exception when presented with a version of the form x, where x is a number. Since platforms can have this as a valid version, we should use Chef::VersionConstraint::Platform
* remove pending reboot check for ↵mwrock/reboot_pendingMatt Wrock2015-09-101-1/+2
| | | | HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile if not on windows 2003
* Rename log.deprecation to log_deprecationJohn Keiser2015-09-012-4/+4
|
* Pass deprecations through formatter instead of logsJohn Keiser2015-09-012-5/+4
|
* Make reboot_pending? look for CBS RebootPendingjhs/fix-reboot_pendingJeremiah Snapp2015-08-111-1/+1
| | | | Ref: https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542
* Add current_value_does_not_exist! API, pretty up the outputJohn Keiser2015-07-311-2/+4
|
* Deprecate passing more than 1 argument to create a resourcejk/3634John Keiser2015-07-061-4/+6
|
* Don't accept multiple parameters in recipe DSL (just name)John Keiser2015-07-061-4/+4
|
* Rename Chef::DSL::Recipe::Everything -> FullDSLJohn Keiser2015-06-231-1/+1
|
* Create the `action :name do ... end` syntax for ResourceJohn Keiser2015-06-231-2/+20
|
* Make resource_for_short_name look up the canonical resourcejk/automatic-automatic-nameJohn Keiser2015-06-081-1/+1
|
* Make use_automatic_resource_name automaticJohn Keiser2015-06-081-0/+1
|
* Move method_missing to the bottomJohn Keiser2015-06-021-46/+43
|
* Make resource deprecation warnings once-only; fix recipe DSL tests back upJohn Keiser2015-06-021-0/+1
|
* Narrow resolvers to only look at parts of the map we supportJohn Keiser2015-06-021-11/+0
|
* Merge branch 'master' into namelessNoah Kantrowitz2015-05-291-0/+2
|\
| * include powershell_out in DSL placesLamont Granquist2015-05-291-0/+2
| |
* | Allow nameless resources again to match release semantics.Noah Kantrowitz2015-05-221-2/+2
|/
* Move LWRP class deprecation warning to const_missingJohn Keiser2015-05-131-5/+11
|
* warn -> deprecationJohn Keiser2015-05-131-5/+5
|
* Make explicit "provides" override automaticJohn Keiser2015-05-131-0/+3
|