diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-05-06 18:42:50 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-05-06 18:42:55 -0700 |
commit | b60ae6140fd57bb8efef394e6413b53bedc0fe29 (patch) | |
tree | 0cd217bdffd0798e8052fa840e6286df216d65fe /lib/chef/mixin | |
parent | d764ddf8422af8cc892a0921ec9baf4404ab8c85 (diff) | |
download | chef-b60ae6140fd57bb8efef394e6413b53bedc0fe29.tar.gz |
Fix a small rdoc formatting bug for `copy_properties_from`.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/properties.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/mixin/properties.rb b/lib/chef/mixin/properties.rb index 94afa4640b..b0bccaac87 100644 --- a/lib/chef/mixin/properties.rb +++ b/lib/chef/mixin/properties.rb @@ -340,6 +340,7 @@ class Chef # can also be overridden). Exclude has priority over include, although the caller is likely better # off doing the set arithmetic themselves for explicitness. # + # ```ruby # action :doit do # # use it inside a block # file "/etc/whatever.xyz" do @@ -350,6 +351,7 @@ class Chef # r = declare_resource(:file, "etc/whatever.xyz") # r.copy_properties_from(new_resource, :owner, :group, :mode) # end + # ``` # # @param other [Object] the other object (Chef::Resource) which implements the properties API # @param includes [Array<Symbol>] splat-args list of symbols of the properties to copy. |