summaryrefslogtreecommitdiff
path: root/lib/chef/node
Commit message (Collapse)AuthorAgeFilesLines
* fix stray double quoteslcg/fix-5012Lamont Granquist2016-07-111-2/+2
|
* Attributes v1.1 changeslcg/attributes-v1.1Lamont Granquist2016-06-274-202/+283
| | | | | | | | | | | - fixes *_unless behavior and set_unless_value_present hack from Chef 12 - simplifies rm_* code - introduces functional read/write/unlink/exist? API - deprecates method_missing access to attributes for Chef 13 - deprecates set/set_unless aliases for Chef 14 - removes MultiMash mess that I wrote for Chef 13 https://github.com/chef/chef/pull/5029 for more details
* autofixing some missed copsLamont Granquist2016-02-051-1/+1
| | | | second round of autofixing for some reason...
* autofixing whitespace copsLamont Granquist2016-02-053-283/+283
| | | | | | | | | | | | | | | | | | | | | | 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-022-3/+3
| | | 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-022-2/+2
| | | 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-5/+5
| | | | | | | 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-7/+7
| | | | chefstyle -a fixed 1044 occurrances
* tags always an array; fix set_unlessLamont Granquist2015-12-142-3/+3
| | | | | | | previously if the node had a { normal: { tags: nil } } that we read since the key existed (but was nil) we would not initialize with an array. replacing the code with a call to node.set_unless revealed that set_unless was similarly buggy. fixed both issues by fixing set_unless.
* Completing tests for https://github.com/chef/chef/pull/2310, fixes ↵tball/complete-2310tyler-ball2015-02-111-0/+4
| | | | https://github.com/chef/chef/issues/1562
* Use #define_method instead of #class_eval (ruby 1.8 specific, issue #2497)Xabier de Zuazo2015-01-273-27/+15
|
* deep_merge_cache fixes for bugs in 12.0.0Lamont Granquist2015-01-141-4/+4
| | | | | | | | In 12.0.0 we introduced a cache for the merged attributes for the top-level node attribute keys. This fixes this so that node['foo'] and node[:foo] are not cached separately. This also showed up in bugs as issues between node['foo'] access and node.foo access because node.foo is translated into node[:foo].
* WIP: immutabilizing deep mergelcg/remove-knockout-mergeLamont Granquist2014-11-212-1/+7
|
* deleted the last end accidentallyLamont Granquist2014-11-211-2/+4
|
* add more commentaryLamont Granquist2014-11-211-4/+20
|
* add partial deep merge cacheLamont Granquist2014-11-212-1/+53
|
* revert to serdar's deep_merge de-dup versionLamont Granquist2014-11-191-4/+16
|
* fix ImmutableAttributeModification exceptionLamont Granquist2014-11-192-7/+3
|
* remove cache resettingLamont Granquist2014-11-192-9/+0
|
* remove lots of useless deep merge dupingLamont Granquist2014-11-191-2/+2
|
* WIP: lazy deep mergingLamont Granquist2014-11-191-46/+78
|
* fix autovivificationLamont Granquist2014-11-082-31/+78
|
* chef-12 attribute changesLamont Granquist2014-11-082-13/+159
| | | | | | - adding rm, rm_default, rm_normal, rm_override APIs - adding default!, normal! and override! APIs - changing force_default! and force_override! APIs
* [CHEF-5132] ImmutableCollections #to_a and #to_hash methods fixed and improvedXabier de Zuazo2014-03-281-11/+19
|
* [CHEF-3953] ImmutableMash and ImmutableArray should implement to_hash and ↵brianbianco2014-03-281-0/+24
| | | | | | | | to_a respectively - ImmutableMash now implements a to_hash method. This recurses through the ImmutableMash and returns a fully mutable Hash - ImmutableArray now implements a to_a method. This recurses through the ImmutableArray and returns a fully mutable Array - Unit tests added for both of the above methods
* [CHEF-4799] Handle non-dupable elements when duping attribute arraysPierre Ynard2014-01-102-2/+16
|
* Normalize whitespace on all filesSeth Vargo2013-09-261-1/+1
|
* [CHEF-3806] add attribute value debugdanielsdeleo2013-01-291-0/+28
|
* also clear set_unless_present in reset_cacheLamont Granquist2013-01-291-0/+1
|
* [CHEF-3799] fixes TypeError for puts on VividMashdanielsdeleo2013-01-281-1/+8
|
* fix errors when merging deeply nested valuesdanielsdeleo2013-01-251-15/+20
|
* make merge between precedence overwrite arraysdanielsdeleo2013-01-251-3/+3
|
* CHEF-3688 remove stale attribute read protectionAdam Jacob2012-12-122-224/+11
| | | | | | This commit removes stale attribute read protection, as it does more harm than good. Includes removal of passing "root" around to immutablize.
* [CHEF-3680] don't invalidate computed attributes on dupdanielsdeleo2012-12-112-1/+11
|
* [CHEF-3680] Specify file and line for evaldanielsdeleo2012-12-112-6/+6
|
* Add "force" level precedence to Node::Attributedanielsdeleo2012-11-091-2/+35
|
* [CHEF-2936] ensure all default and override attrs go in node jsondanielsdeleo2012-11-021-0/+37
| | | | | | | | | | default and override attributes are now split into components, so all the components need to be merged together to generate the serialized representation of a node. Unfortunately, this means that serializing a node is now lossy because the information about which component default and override attributes belong to is lost. In practice, this is not a major issue, since automatic, override, and default attributes are cleared by chef for each run.
* [CHEF-2936] add role and environment components to Node::Attributedanielsdeleo2012-11-021-129/+179
| | | | | | | | | I reformatted Chef::Node::Attribute because the indentation was busted. The actual code change is that Attribute now has components for role_default, env_default, role_override, and env_override, and merges them according to the precedence given in the documentation. These new components are not yet wired in to Chef::Node, however.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-303-0/+832
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!