summaryrefslogtreecommitdiff
path: root/lib/chef/resource/dsc_script.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-02-13 16:34:47 +0000
committerTim Smith <tsmith@chef.io>2018-02-14 11:37:36 -0800
commit5c2b9e201f65d04252a86b1ad89d756f3e73792f (patch)
tree7eaa3b8131eef7afa79422a79b0219021a5972b6 /lib/chef/resource/dsc_script.rb
parentc563a379b2ac9a47f5bd5c9e0c40bebed86aae8c (diff)
downloadchef-5c2b9e201f65d04252a86b1ad89d756f3e73792f.tar.gz
Add new introduced and description resource properties to many resource
Not all of them, but a good chunk. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/dsc_script.rb')
-rw-r--r--lib/chef/resource/dsc_script.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/chef/resource/dsc_script.rb b/lib/chef/resource/dsc_script.rb
index cea52e422b..45372c091a 100644
--- a/lib/chef/resource/dsc_script.rb
+++ b/lib/chef/resource/dsc_script.rb
@@ -21,17 +21,21 @@ require "chef/dsl/powershell"
class Chef
class Resource
- # Many DSC resources are comparable to built-in Chef resources. For example, both DSC and Chef have file, package,
- # and service resources. The dsc_script resource is most useful for those DSC resources that do not have a direct
- # comparison to a resource in Chef, such as the Archive resource, a custom DSC resource, an existing DSC script
- # that performs an important task, and so on. Use the dsc_script resource to embed the code that defines a DSC
- # configuration directly within a Chef recipe.
class DscScript < Chef::Resource
include Chef::DSL::Powershell
resource_name :dsc_script
provides :dsc_script, os: "windows"
+ description "Many DSC resources are comparable to built-in Chef resources. For"\
+ " example, both DSC and Chef have file, package, and service resources."\
+ " The dsc_script resource is most useful for those DSC resources that"\
+ " do not have a direct comparison to a resource in Chef, such as the"\
+ " Archive resource, a custom DSC resource, an existing DSC script"\
+ " that performs an important task, and so on. Use the dsc_script resource"\
+ " to embed the code that defines a DSC configuration directly within a"\
+ " Chef recipe."
+
default_action :run
def initialize(name, run_context = nil)