summaryrefslogtreecommitdiff
path: root/lib/chef/resource/windows_path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/windows_path.rb')
-rw-r--r--lib/chef/resource/windows_path.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/chef/resource/windows_path.rb b/lib/chef/resource/windows_path.rb
index 5472a7e4fd..c09b34a0c9 100644
--- a/lib/chef/resource/windows_path.rb
+++ b/lib/chef/resource/windows_path.rb
@@ -22,19 +22,12 @@ class Chef
class Resource
class WindowsPath < Chef::Resource
+ resource_name :windows_path
provides :windows_path, os: "windows"
allowed_actions :add, :remove
default_action :add
- def initialize(name, run_context = nil)
- super
- @resource_name = :windows_path
- @path = name
- @provider = Chef::Provider::WindowsPath
- @action = :add
- end
-
property :path, String, name_property: true
end
end