summaryrefslogtreecommitdiff
path: root/lib/chef/provider/link.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/link.rb')
-rw-r--r--lib/chef/provider/link.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/link.rb b/lib/chef/provider/link.rb
index f69d5cb01e..636e2c0472 100644
--- a/lib/chef/provider/link.rb
+++ b/lib/chef/provider/link.rb
@@ -85,7 +85,7 @@ class Chef
ChefUtils.windows? ? path.tr("/", '\\') : path
end
- def action_create
+ action :create do
# current_resource is the symlink that currently exists
# new_resource is the symlink we need to create
# to - the location to link to
@@ -141,7 +141,7 @@ class Chef
end
end
- def action_delete
+ action :delete do
if current_resource.to # Exists
if ChefUtils.windows? && ::File.directory?(current_resource.target_file)
converge_by("delete link to dir at #{new_resource.target_file}") do