summaryrefslogtreecommitdiff
path: root/lib/chef/resource/ruby_block.rb
Commit message (Collapse)AuthorAgeFilesLines
* Chef-18: Enable unifed_mode by defaultLamont Granquist2022-03-181-1/+0
| | | | | | | | | This is the breaking change for Chef 18, which was announced throughout the Chef-17 cycle. This should never be backported to Chef 17 or before Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chefstyle fixesTim Smith2021-08-131-15/+15
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Format examples betterTim Smith2021-08-131-6/+6
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add less bad ruby_block examplesTim Smith2021-08-131-0/+100
| | | | | | I deleted 1/2 of them. Signed-off-by: Tim Smith <tsmith@chef.io>1
* Improve our automated resource documentation generationTim Smith2020-12-151-1/+1
| | | | | | Add more note values to the descriptions, update a few examples for cookstyle and modern gems, and identify a few more resources as providing package on their platform Signed-off-by: Tim Smith <tsmith@chef.io>
* Workaround rubygems slow requires by only running require for chef-utils/distLance Albertson2020-09-151-1/+1
| | | | Signed-off-by: Lance Albertson <lance@osuosl.org>
* merge all dist files back into dist.rbMarc Chamberland2020-09-151-1/+1
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* tighten all require statements for dist implementationMarc Chamberland2020-09-151-1/+1
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* move dist implementation into chef-utilsMarc Chamberland2020-09-151-2/+2
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* Add missing examples and resource formatting for docs siteTim Smith2020-04-301-4/+1
| | | | | | Get us closer to automated documentation. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove redundant identityLamont Granquist2020-04-021-2/+2
| | | | | | | | | | | name_property implies identity if there is no other identity property this has been the behavior for a very long time, dunno why #4282 was never closed. closes #4282 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Turn on unified_mode for 35 core resourcesLamont Granquist2019-10-281-0/+2
| | | | | | | | | These are the ones that off of the top of my head it should be perfectly safe to turn on `unifed_mode` with minimal auditing. Most of these are so old that they do not use any sub-resources at all. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Improve the auto-generated docsTim Smith2019-08-081-1/+1
| | | | | | Formatting fixes and updates to the text to make the generated text match what's currently on the site. Signed-off-by: Tim Smith <tsmith@chef.io>
* enable target mode on some resourceslcg/enable-target-modeLamont Granquist2019-05-241-0/+2
| | | | | | see PR for pontification on ruby_block Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix a bunch of weirdly mangled require linesLamont Granquist2019-05-081-1/+1
| | | | 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>
* chef-client => Chef::Dist::CLIENTMarc Chamberland2019-04-261-1/+2
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* Add more resource descriptionsTim Smith2018-03-161-3/+5
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Convert more set_or_returns to proper propertiesmore_propertiesTim Smith2018-03-051-14/+1
| | | | | | Just modernizing our resources so we can start to add descriptions to them for the documentation Signed-off-by: Tim Smith <tsmith@chef.io>
* Add descriptions and @since comments to all resourcesTim Smith2017-12-191-0/+3
| | | | | | From the docs site Signed-off-by: Tim Smith <tsmith@chef.io>
* chefstyle Style/AndOr fixesLamont Granquist2016-03-141-1/+1
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* 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-051-2/+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-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-2/+2
| | | | | | | 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-131-1/+1
| | | | chefstyle -a fixed 1044 occurrances
* Overwrite resource_name with providesJohn Keiser2015-06-081-1/+0
|
* Add default_action and allowed_actions to Resource class, remove from LWRPJohn Keiser2015-06-011-2/+2
|
* Add use_automatic_resource_nameJohn Keiser2015-06-011-1/+1
|
* Make resource_name call providesJohn Keiser2015-06-011-1/+1
|
* Move resource_name up to Resource, and figure out its value automaticallyJohn Keiser2015-06-011-1/+0
|
* Add "provides" to all resourcesJohn Keiser2015-05-131-0/+1
|
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-0/+3
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Normalize whitespace on all filesSeth Vargo2013-09-261-3/+3
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+51
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!