summaryrefslogtreecommitdiff
path: root/lib/chef/mixin
Commit message (Collapse)AuthorAgeFilesLines
* autofixing whitespace copsLamont Granquist2016-02-0521-96/+81
| | | | | | | | | | | | | | | | | | | | | | 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
* Merge branch 'smurawski/dsc_resource_converge_logging'Steven Murawski2016-02-031-0/+2
|\
| * Allow PowerShellTypeCoercions to translate Chef::Node::ImmutableArraysmurawski/dsc_resource_converge_loggingSteven Murawski2016-02-031-1/+2
| |
| * Allow PowerShellTypeCoercions to translate Chef::Node::ImmutableMashSteven Murawski2016-02-031-0/+1
| |
* | Allow multiple property_types in `is`jk/property-is-multiple-typesJohn Keiser2016-02-031-9/+20
|/
* Update for chef.io domain in copyright lines too.Noah Kantrowitz2016-02-021-1/+1
|
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-0228-34/+34
| | | 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-0224-24/+24
| | | 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-0236-41/+41
| | | 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"
* Fix nil with properties:John Keiser2016-01-271-1/+11
| | | | | | 1. Warn when default values are invalid. 2. Never validate nil (on set or get) if there is no default. 3. Emit "will be invalid in Chef 13" warning when setting an invalid nil value.
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-2/+2
| | | | | | 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-1428-87/+87
| | | | | | | 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-133-11/+11
| | | | chefstyle -a fixed 1044 occurrances
* Merge pull request #4388 from chef/lcg/more-rubocop-lintThom May2016-01-131-2/+2
|\ | | | | more rubocop fixes
| * more rubocop fixeslcg/more-rubocop-lintLamont Granquist2016-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | fixes: Lint/UnreachableCode Lint/NonLocalExitFromIterator Lint/LiteralInCondition Lint/EmptyEnsure Lint/DefEndAlignment Lint/CircularArgumentReference
* | really fix copslcg/really-fix-copsLamont Granquist2016-01-121-8/+6
|/
* chefstyle: fix Lint/StringConversionInInterpolationLamont Granquist2016-01-121-1/+1
| | | | useless use of `"#{foo.to_s}"`
* Adding proxifier dependency and leveraging its ability to make TCPSocket.new ↵tyler-ball2015-12-091-0/+38
| | | | respect ENV['http_proxy']
* just use extendLamont Granquist2015-12-021-14/+9
|
* dpkg multipackage and bonus fixesLamont Granquist2015-12-022-2/+49
| | | | | | | | - multipackages dpkg_package - fixes edge conditions in load-current-resource around purging/removing packages that threw errors before - fixes the ability to purge packages that have been removed - adds a lot of functional tests for dpkg_package
* Make modules with properties work and inherit as expectedjk/property_mixinJohn Keiser2015-10-201-8/+7
|
* Move properties into a mixin module (verbatim move)John Keiser2015-10-201-0/+303
|
* Add test for nonzero systemctl exit codeJohn Keiser2015-09-281-1/+1
|
* Merge pull request #3510 from ckaushik/issue_2513Thom May2015-09-021-0/+1
|\ | | | | Fixing Issue #2513 - the broken render of nested partial templates
| * Fixing Issue #2513 - the broken render of nested partial templates with ↵Kaushik C2015-07-271-0/+1
| | | | | | | | | | | | variables Authors: Kaushik C <kaushik.chand@gmail.com>, Sam Dunne <sam@sam-dunne.com>
* | Rename log.deprecation to log_deprecationJohn Keiser2015-09-011-8/+8
| |
* | Pass deprecations through formatter instead of logsJohn Keiser2015-09-011-8/+8
| |
* | Refactor Chef::Mixin::WideString to remove implicit Windows dependency.mcquin/refactor-wstringClaire McQuin2015-09-013-32/+76
| |
* | Validating is comparing to true instead of ruby truthinessPhil Dibowitz2015-08-211-1/+1
| | | | | | | | It should use truthiness.
* | Merge pull request #3775 from chef/salam/win64Salim Alam2015-08-191-39/+15
|\ \ | | | | | | Enable 64-bit support for Powershell and Batch scripts
| * | Enable 64-bit support for Powershell and Batch scriptsSalim Alam2015-08-191-39/+15
| | |
* | | PR feedbackLamont Granquist2015-08-181-39/+39
| | |
* | | CHEF-5012: add methods for template breadcrumbsLamont Granquist2015-08-181-0/+47
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | adds: - cookbook_name - recipe_name - recipe_line_string - recipe_path - recipe_line - template_name - template_path accessible both as instance var (@-) and method (bare), like @node/node.
* | Flatten regex validation array so nested arrays workJohn Keiser2015-07-291-1/+1
| |
* | Bring set_or_return behavior back in line with what it used to beJohn Keiser2015-07-031-1/+24
| |
* | Make required name attributes workJohn Keiser2015-07-031-106/+63
| |
* | Make required name attributes workjk/required_name_attributeJohn Keiser2015-07-021-2/+2
| |
* | Do not validate defaults, for backcompat purposesjk/property-baseJohn Keiser2015-06-231-1/+2
| |
* | Freeze default constantsJohn Keiser2015-06-231-0/+1
| |
* | Fix set_or_return order: default->coerce->validateJohn Keiser2015-06-231-31/+63
| |
* | Add some commentsJohn Keiser2015-06-231-13/+173
| |
* | Evaluate lazy defaults in context of the instanceJohn Keiser2015-06-231-3/+9
| |
* | Add coercionJohn Keiser2015-06-231-0/+8
| |
* | Add property_is_set?John Keiser2015-06-231-10/+17
| |
* | Ensure validators don't run against initial valuesJohn Keiser2015-06-231-0/+1
| |
* | Don't validate `nil` when setting the value to nilJohn Keiser2015-06-231-17/+22
| |
* | Allow values to be set to nil (override defaults) if user allows itJohn Keiser2015-06-231-42/+49
| |
* | Make "is" fail if you pass nil and don't validate itJohn Keiser2015-06-231-11/+8
| |
* | Add name_propertyJohn Keiser2015-06-231-6/+7
| |
* | Add "is" to propertyJohn Keiser2015-06-231-97/+115
| |