summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
Commit message (Collapse)AuthorAgeFilesLines
* autofixing whitespace copsLamont Granquist2016-02-051-5/+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
* auto-fixing some easy copschefstyle/fixesLamont Granquist2016-02-031-1/+1
| | | | | | | | | | | | | 3 Performance/CaseWhenSplat: Place when conditions with a splat at the end of the when branches. 1 Style/ElseAlignment: Align else with if. 1 Style/EvenOdd: Replace with Fixnum#even?. 1 Style/MethodDefParentheses: Use def with parentheses when there are parameters. 3 Style/PercentQLiterals: Do not use %Q unless interpolation is needed. Use %q. 3 Style/SpaceAfterColon: Space missing after colon. 2 Style/SpaceAfterMethodName: Do not put a space between a method name and the opening parenthesis. 2 Style/Tab: Tab detected. 1 Style/TrailingUnderscoreVariable: Do not use trailing _s in parallel assignment. 1 Style/UnneededCapitalW: Do not use %W unless interpolation is needed. If not, use %w.
* fixes #4515 and use FormatMessage to get correct error messages from native ↵invalidMatt Wrock2016-02-031-16/+0
| | | | API instead of retyping them with our fingers
* 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"
* 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"
* Fix nil with properties:John Keiser2016-01-271-0/+1
| | | | | | 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.
* add a comment on exception triggersLamont Granquist2016-01-191-1/+4
| | | | | this is almost always a real networking issue and there is no bug in chef-client.
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | 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-141-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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-2/+2
| | | | chefstyle -a fixed 1044 occurrances
* non msi packages must explicitly provide a source attribute on installMatt Wrock2015-12-151-0/+1
|
* adds support to installer types inno, nsis, wise and installshield top the ↵Matt Wrock2015-12-071-0/+1
| | | | windows_package resource
* improve error message, add more testsLamont Granquist2015-10-261-5/+7
|
* validateLamont Granquist2015-10-261-0/+12
|
* follow comment of #3900sawanoboly2015-10-241-1/+5
|
* add option first_boot_attributes_from_filesawanoboly2015-10-241-0/+1
|
* Rename action_provider_class to less-wordy action_classjk/declare_action_classJohn Keiser2015-09-221-1/+1
|
* Use the dynamic policy builder everywheredanielsdeleo2015-09-171-0/+2
|
* Merge pull request #3728 from chef/jdm/win-groupsKartik Null Cating-Subramanian2015-08-041-0/+17
|\ | | | | Rewrite NetLocalGroup things to use FFI
| * Add Win32NetAPIError exception classJay Mundrawala2015-07-291-0/+17
| |
* | Add current_value_does_not_exist! API, pretty up the outputJohn Keiser2015-07-311-0/+3
|/
* Merge remote-tracking branch 'origin/master' into chef_handlerRanjib Dey2015-07-061-3/+7
|\ | | | | | | | | Conflicts: lib/chef/exceptions.rb
| * Make required name attributes workJohn Keiser2015-07-031-0/+1
| |
| * Merge pull request #3612 from chef/mcquin/chef-config/workstation-config-loaderClaire McQuin2015-06-301-1/+4
| |\ | | | | | | Move WorkstationConfigLoader into chef-config
| | * Move workstation_config_loader into chef-configmcquin/chef-config/workstation-config-loaderClaire McQuin2015-06-291-1/+4
| | |
| * | Rename NoProviderAvailable to ProviderNotFound, add aliasJohn Keiser2015-06-301-3/+2
| | |
| * | Call provides? when resolving, reduce number of calls to provides?John Keiser2015-06-301-0/+1
| |/ | | | | | | in Provider
* | add name class attribute for user defined handlers. more readable invalid ↵Ranjib Dey2015-06-231-1/+1
| | | | | | | | event handler exception name.
* | Merge remote-tracking branch 'origin/master' into HEADRanjib Dey2015-06-121-1/+8
|\ \ | |/ | | | | | | Conflicts: lib/chef/chef_class.rb
| * API V1 support for client creation.tylercloke2015-06-051-0/+1
| |
| * Made Chef::User.reregister give sane error message if no V0 on server.tylercloke2015-06-051-0/+1
| |
| * Added versioned Chef Object API support code and repaired Chef::User.create.tylercloke2015-06-051-0/+1
| | | | | | | | Also added Chef::User.create V1 API support. Chef::User.create will attempt to use V1 of the server API, and if it fails, it will fall back to V0.
| * Mark run failed on failed audits unless configured to audit as warning.Claire McQuin2015-05-271-1/+1
| | | | | | | | Remove unnecessary newline from RunFailedWrappingError backtrace
| * Implemented `knife user key create` and `knife client key create`.tylercloke2015-04-281-0/+1
| | | | | | | | Implemented using a common service class that contains most of the actual functionality outside of parsing and inheriting Chef::Knife.
| * Implemented the Key object corrosponding to key rotation API endpoint.tc/chef_key_objecttylercloke2015-04-201-0/+3
| |
* | [RFC-039] chef handler dslRanjib Dey2015-04-181-0/+1
|/
* ResourceStore does not deal with exceptionsJay Mundrawala2015-03-201-0/+15
| | | | | Also, added a more specific exception for when we cannot find the resource
* Make terminology consistent about audits versus controlsJulian C. Dunn2015-03-111-3/+3
|
* Implement RFC 027 File VerificationSteven Danna2015-02-171-0/+1
| | | | | | | | This implements usable-suppliable file content verification per RFC 027. Users can supplie a block, string, or symbol to the `verify` resource attribute. Blocks will be called, string will be executed as shell commands (respecing the same options as not_if and only_if), and symbols can be used to access built-in registered validations.
* peer review feedback for deprecation warningsLamont Granquist2015-02-091-2/+2
|
* Add Chef::Log.deprecation and associated wiringLamont Granquist2015-02-091-1/+5
|
* Add config to treat deprecation warnings as errorsdanielsdeleo2015-02-061-0/+2
|
* Correct syntax for using Chef::ExceptionsRob Redpath2015-01-251-2/+1
|
* Use Chef::Exception to raise exception if PIDfile and lockfile matchRob Redpath2015-01-251-0/+7
|
* Provide more info when cookbook metadata is not foundJay Mundrawala2015-01-131-2/+6
|
* Merging master to this branchtyler-ball2014-12-181-0/+1
|\
| * Rename Chef::Exceptions::LCMParserException to Chef::Exceptions::LCMParserJay Mundrawala2014-12-171-1/+1
| |
| * Fix bug where error parser what-if output causes resource to be considered ↵Jay Mundrawala2014-12-171-0/+1
| | | | | | | | | | | | | | converged. We now fall back to assuming the resource is not converged if we cannot parse information about a dsc resource.
* | Rescuing Exception blind was covering up an unexpected errortyler-ball2014-12-171-1/+1
| |
* | if in why_run, do not enter the audit phase - because people run why_run to ↵tyler-ball2014-12-171-2/+2
| | | | | | | | see converge statistics