diff options
Diffstat (limited to 'lib/chef/resource/chocolatey_source.rb')
-rw-r--r-- | lib/chef/resource/chocolatey_source.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/chef/resource/chocolatey_source.rb b/lib/chef/resource/chocolatey_source.rb index 9f57e0dbdc..3edb9cb435 100644 --- a/lib/chef/resource/chocolatey_source.rb +++ b/lib/chef/resource/chocolatey_source.rb @@ -21,6 +21,21 @@ class Chef description "Use the chocolatey_source resource to add, remove, enable, or disable Chocolatey sources." introduced "14.3" + examples <<~DOC + Add a Chocolatey source + ```ruby + chocolatey_source 'MySource' do + source 'http://example.com/something' + action :add + end + ``` + Remove a Chocolatey source + ```ruby + chocolatey_source 'MySource' do + action :remove + end + ``` + DOC property :source_name, String, name_property: true, description: "An optional property to set the source name if it differs from the resource block's name." |