| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Style/NegatedWhile
Style/ParenthesesAroundCondition
Style/WhileUntilDo
Style/WordArray
Performance/ReverseEach
Style/ColonMethodCall
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
| |
Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
|
|
|
| |
Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
|
|
|
| |
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"
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
| |
/cc @jkeiser
|
| |
|
| |
|
| |
|
|
|
| |
Adds actual implementation for deprecated setters, and re-adds the accidentally removed resource_collection= setter.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* fix node[:recipes]
* add node[:expanded_run_list]
* add node[:cookbooks]
|
| |
|
|
|
|
| |
Hash ordering description
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following code is brittle if you want to fork the cookbook and rename it
(which is a best practice when forking cookbooks for internal use):
```ruby
if node[:platform_family] == "rhel"
include_recipe "mycookbook::_rhel"
end
```
In order for cookbooks to be easily renamable they can currently use the
syntax `include_recipe "#{cookbook_name}::_rhel"` which is unwieldy.
This patch adds `include_recipe "::_rhel"` as syntax sugar to make this
easier.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
First pass at DSL additions
Renaming DSL methods to match the spec
Creating our own example group class to simplify adding examples to the spec runner
Adding logic for exceptions from converge phase not interfering with audit phase and vice-versa
Adding error handling so saving node doesn't prevent us from running audit mode - decouples converge phase and audit phase more
Updating for github comments
Add setup phase to audit-mode.
Refactor runner into own class.
Fix typo
tie things together
Adding first round of formatter integration - STDOUT doc formatter
Preparing for demo - using rspec documentation formatter for output instead of the proxy
Add serverspec types and matchers.
add rspec/its
Add gems as core dependencies
Updating with changes from demo
Updating with @mcquin and @lamont comments
Getting rid of unused method
Wiring audit event proxy to send events correctly to the audit_reporter
removing old pry debugging statement
Removing unecessary todo
Sending to correct server URL
Fixing TODOs
Adding uncaught error information
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
First pass at DSL additions
Renaming DSL methods to match the spec
Creating our own example group class to simplify adding examples to the spec runner
Adding logic for exceptions from converge phase not interfering with audit phase and vice-versa
Adding error handling so saving node doesn't prevent us from running audit mode - decouples converge phase and audit phase more
Updating for github comments
Add setup phase to audit-mode.
Refactor runner into own class.
Fix typo
tie things together
Adding first round of formatter integration - STDOUT doc formatter
Preparing for demo - using rspec documentation formatter for output instead of the proxy
Add serverspec types and matchers.
add rspec/its
Add gems as core dependencies
Updating with changes from demo
Updating with @mcquin and @lamont comments
Getting rid of unused method
Wiring audit event proxy to send events correctly to the audit_reporter
removing old pry debugging statement
Removing unecessary todo
Sending to correct server URL
Fixing TODOs
Adding uncaught error information
|
| |
|
| |
|
|
|
|
|
|
| |
Fixing some code I changed unecessarily
Removing TODOs which are not necessary
|
|
|
|
|
|
|
|
| |
* makes provides? more correct for linux services
* makes supports? more targetted for linux services
* remove provider_resolver from the run_context
* fix timestamped deploy spec
* add more specs
|
|
|
|
|
| |
makes resource and provider class resolution more dynamic.
begins deprecation of Chef::Platform static mapping.
|
| |
|
|
|
|
| |
logging a bit.
|
| |
|
|
|
|
| |
https://github.com/opscode/chef/pull/1279#discussion-diff-9964101.)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes CHEF-4367.
When attempting to load a recipe belonging to a cookbook that is not in
the run_list or any dependencies of cookbooks in the run_list, chef
will now produce an error like this:
Chef::Exceptions::MissingCookbookDependency
-------------------------------------------
Recipe `ancient::aliens` is not in the run_list, and cookbook 'ancient'
is not a dependency of any cookbook in the run_list. To load thisrecipe,
first add a dependency on cookbook 'ancient' in the cookbook you're
including it from in that cookbook's metadata.
This error will occur when chef-solo users use `include_recipe` without
specifying the dependency in metadata; prior to this patch, chef would
typically fail reading an undefined attribute, which commonly would
result in a NoMethodError for nil.
|
|\
| |
| | |
CHEF-4777: add include_recipes to recipes node attr
|
| |
| |
| |
| |
| |
| | |
this makes it so that the recipes in the attribute will be fully
qualified, and will avoid the problem of both "cookbook" and
"cookbook::default" showing up.
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
| |
`loaded_recipes` is a Hash-based set internally, but only the keys are
actually useful.
|