summaryrefslogtreecommitdiff
path: root/spec/support/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-138-8/+8
| | | | | | | | 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 the canonical DSLLamont Granquist2020-03-031-1/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/NegatedIfLamont Granquist2019-07-052-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-172-5/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Properly deprecate old Chef::Platform methodsLamont Granquist2016-12-076-0/+8
| | | | | | | | These should have been deprecated formally in 12.5.1 after the Dynamic Provider-Resolver'ing of the internal chef resources was completed. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* chefstyle Style/AndOr fixesLamont Granquist2016-03-142-2/+2
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* autofixing whitespace copsLamont Granquist2016-02-056-9/+5
| | | | | | | | | | | | | | | | | | | | | | 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-027-7/+7
| | | 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-027-7/+7
| | | 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-029-9/+9
| | | 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-143-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.
* Overwrite resource_name with providesJohn Keiser2015-06-086-7/+0
|
* allow include_recipe from LWRP provider codeLamont Granquist2015-06-042-0/+57
| | | | | allows include_recipe "build-essential" to work from provider code.
* Add default_action and allowed_actions to Resource class, remove from LWRPJohn Keiser2015-06-011-4/+1
|
* Add use_automatic_resource_nameJohn Keiser2015-06-015-5/+5
|
* Make resource_name call providesJohn Keiser2015-06-014-4/+4
|
* Move resource_name up to Resource, and figure out its value automaticallyJohn Keiser2015-06-015-21/+2
|
* Move deprecation back into resource_for_short_nameJohn Keiser2015-05-134-0/+6
|
* Chef-12 RC Provider ResolverLamont Granquist2014-10-242-1/+2
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Removing all traces of 'created_as_type' since that fix is no longer necessarytyler-ball2014-10-161-6/+0
|
* Make sure freebsd_package is captured with the resource name it's declared ↵Serdar Sutay2014-08-131-0/+46
| | | | with in resource collection.
* Describe resource cloning behaviors in recipe specs.danielsdeleo2014-02-191-0/+1
| | | | | Includes two regression tests for CHEF-5052, marked pending until the fix for that issue is merged.
* Expose resource creation via more static methodsdanielsdeleo2014-02-031-1/+1
|
* When reporting a resource, before and after should always be a hashjamesc2013-10-151-0/+37
| | | | | | | | | | | | If a Resource (or LWRP) overrides Resource#state (meaning to set an attribute named state) this collides with the state function used to gather up the state_attrs Fix this by not using Resource#state, but copying that logic into ResourceReporter#state. Leaving Resource#state as it's used by other things. A full fix so LWRPs can't override functions in Resource is in scope for Chef 12
* Normalize whitespace on all filesSeth Vargo2013-09-263-13/+13
|
* Add methods to query for template/file existence in run contextdanielsdeleo2013-08-021-0/+22
| | | | | | | - Convenience methods added to CookbookVersion to query if a cookbook file or template is available for a given node in that cookbook - Convenience methods added to RunContext to query the existence of cookbook files or templates
* Fix test failures due to windows_service_manager...sersut2013-03-011-59/+0
|
* Tests, documentation and better error handling for windows service manager.sersut2013-03-011-0/+59
|
* remove cruft code.danielsdeleo2013-01-233-25/+19
| | | | In all of github there is not a single cookbook using this.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-305-0/+205
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!