summaryrefslogtreecommitdiff
path: root/lib/chef/resource/powershell_package_source.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:11:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:13:54 -0700
commit77f8739a4741e2370e40ec39345a92a6ea393a1a (patch)
treebcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /lib/chef/resource/powershell_package_source.rb
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz
fix Layout/AlignArgumentslcg/new-chefstyle
this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/powershell_package_source.rb')
-rw-r--r--lib/chef/resource/powershell_package_source.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/chef/resource/powershell_package_source.rb b/lib/chef/resource/powershell_package_source.rb
index 093c4c6835..5b3a6be049 100644
--- a/lib/chef/resource/powershell_package_source.rb
+++ b/lib/chef/resource/powershell_package_source.rb
@@ -27,31 +27,31 @@ class Chef
introduced "14.3"
property :source_name, String,
- description: "The name of the package source.",
- name_property: true
+ description: "The name of the package source.",
+ name_property: true
property :url, String,
- description: "The url to the package source.",
- required: true
+ description: "The url to the package source.",
+ required: true
property :trusted, [TrueClass, FalseClass],
- description: "Whether or not to trust packages from this source.",
- default: false
+ 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: "The package management provider for the source. It supports the following providers: 'Programs', 'msi', 'NuGet', 'msu', 'PowerShellGet', 'psl' and 'chocolatey'.",
- default: "NuGet"
+ 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: "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'."
+ 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'."
+ 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'."
+ 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(source_name)