diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-10-16 12:50:28 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-10-16 12:50:28 -0700 |
commit | 9f5895984c26fa79432c9932d44c11e479f3cbf9 (patch) | |
tree | d8652b8b61035360f10e9c0cd6ea99e87cbaaf84 | |
parent | efcc5bced71701214b81b66e13520921e7dbe7d0 (diff) | |
download | chef-9f5895984c26fa79432c9932d44c11e479f3cbf9.tar.gz |
Move the alias for attribute to property right into the property mixinlwrp_cleanup
Stick it right next to the property def so it's pretty obvious how this works.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/mixin/properties.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/lwrp_base.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mixin/properties.rb b/lib/chef/mixin/properties.rb index eca0787dc4..c42e3889b0 100644 --- a/lib/chef/mixin/properties.rb +++ b/lib/chef/mixin/properties.rb @@ -135,6 +135,8 @@ class Chef property.emit_dsl end + alias :attribute :property + # # Create a reusable property type that can be used in multiple properties # in different resources. diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb index a1d2afd791..1e1a86a718 100644 --- a/lib/chef/resource/lwrp_base.rb +++ b/lib/chef/resource/lwrp_base.rb @@ -72,8 +72,6 @@ class Chef resource_class end - alias :attribute :property - # Adds +action_names+ to the list of valid actions for this resource. # Does not include superclass's action list when appending. def actions(*action_names) |