summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Magnus Rakvåg <tm@intility.no>2018-06-13 09:42:39 +0200
committerTor Magnus Rakvåg <tm@intility.no>2018-06-13 09:42:39 +0200
commitfae8378ca0a7646a69a5683d086a841dce591ba6 (patch)
tree146454ad480019ff6c2850c2a474d4203fc41640
parent8970dd3b7225e9abb96f7ebda2c2aff534ef2b36 (diff)
downloadchef-fae8378ca0a7646a69a5683d086a841dce591ba6.tar.gz
fix some properties
Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
-rw-r--r--lib/chef/resource/powershell_package_source.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/chef/resource/powershell_package_source.rb b/lib/chef/resource/powershell_package_source.rb
index 100ee8d19e..cf84d0a828 100644
--- a/lib/chef/resource/powershell_package_source.rb
+++ b/lib/chef/resource/powershell_package_source.rb
@@ -22,7 +22,7 @@ class Chef
provides(:powershell_package_source) { true }
description "Use the powershell_package_source resource to register a powershell package repository"
- introduced "15.0"
+ introduced "14.3"
property :name, String,
description: "The name of the package source",
@@ -32,27 +32,25 @@ class Chef
description: "The url to the package source",
required: true
- property :trusted, [true, false],
+ property :trusted, [TrueClass, FalseClass],
description: "Whether or not to trust packages from this source",
default: false
property :provider_name, String,
equal_to: %w{ Programs msi NuGet msu PowerShellGet psl chocolatey },
validation_message: "The following providers are supported: 'Programs', 'msi', 'NuGet', 'msu', 'PowerShellGet', 'psl' or 'chocolatey'",
- description: "",
+ description: "The package management provider for the source. It supports the following providers: "\
+ "'Programs', 'msi', 'NuGet', 'msu', 'PowerShellGet', 'psl' and 'chocolatey'.",
default: "NuGet"
property :publish_location, String,
- description: "The url where modules will be published to for this source. Only valid if the provider is 'PowerShellGet'.",
- required: false
+ description: "The url where modules will be published to for this source. Only valid if the provider is 'PowerShellGet'."
property :script_source_location, String,
- description: "The url where scripts are located for this source. Only valid if the provider is 'PowerShellGet'.",
- required: false
+ description: "The url where scripts are located for this source. Only valid if the provider is 'PowerShellGet'."
property :script_publish_location, String,
- description: "The location where scripts will be published to for this source. Only valid if the provider is 'PowerShellGet'.",
- required: false
+ description: "The location where scripts will be published to for this source. Only valid if the provider is 'PowerShellGet'."
load_current_value do
cmd = load_resource_state_script(name)