diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-04 11:39:11 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-09 15:58:22 -0700 |
commit | 80a6ae159623c2b32855eb603cc826c04a4ec7aa (patch) | |
tree | 684e63956621d685b7cd39c97d594804a8b4941b /lib/chef/property.rb | |
parent | d38e9393026d2dfdfd35a3e7d319ce735ebc9162 (diff) | |
download | chef-80a6ae159623c2b32855eb603cc826c04a4ec7aa.tar.gz |
Expose equal_to values in property / chef-resource-inspector
We need this information so we can generator documentation that includes these values.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/property.rb')
-rw-r--r-- | lib/chef/property.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/chef/property.rb b/lib/chef/property.rb index 34fde05020..336331b59f 100644 --- a/lib/chef/property.rb +++ b/lib/chef/property.rb @@ -1,6 +1,7 @@ # # Author:: John Keiser <jkeiser@chef.io> -# Copyright:: Copyright 2015-2016, John Keiser. +# Copyright:: Copyright 2015-2016, John Keiser +# Copyright:: Copyright 2015-2020, Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -245,6 +246,15 @@ class Chef end # + # The equal_to field of this property. + # + # @return [Array, NilClass] + # + def equal_to + options[:equal_to] + end + + # # Whether this is part of the resource's natural identity or not. # # @return [Boolean] |