summaryrefslogtreecommitdiff
path: root/lib/chef/resource/powershell_package.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/powershell_package.rb')
-rw-r--r--lib/chef/resource/powershell_package.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/chef/resource/powershell_package.rb b/lib/chef/resource/powershell_package.rb
index 4d658d3cc5..b2a370f80c 100644
--- a/lib/chef/resource/powershell_package.rb
+++ b/lib/chef/resource/powershell_package.rb
@@ -23,17 +23,12 @@ class Chef
class PowershellPackage < Chef::Resource::Package
include Chef::Mixin::Uris
+ resource_name :powershell_package
provides :powershell_package, os: "windows"
allowed_actions :install, :remove
- def initialize(name, run_context = nil)
- super
- @resource_name = :powershell_package
- end
-
property :package_name, [String, Array], coerce: proc { |x| [x].flatten }
-
property :version, [String, Array], coerce: proc { |x| [x].flatten }
end