summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-19 14:00:18 -0800
committerTim Smith <tsmith@chef.io>2017-12-21 12:09:33 -0800
commitbbd9888e5347708a976492a11e0e18be3a6ba158 (patch)
tree84aaf95a4ba579ad16b08bc7a20ae64eca23ba03 /lib
parent37bacbbc9d6ca124af631acf72109a992b255e6a (diff)
downloadchef-bbd9888e5347708a976492a11e0e18be3a6ba158.tar.gz
Modernize windows_path resource
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource/windows_path.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/chef/resource/windows_path.rb b/lib/chef/resource/windows_path.rb
index 9274415755..a8a882d4c1 100644
--- a/lib/chef/resource/windows_path.rb
+++ b/lib/chef/resource/windows_path.rb
@@ -24,20 +24,12 @@ class Chef
#
# @since 13.4
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