summaryrefslogtreecommitdiff
path: root/lib/chef/provider/directory.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-01 21:54:43 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-01 21:54:43 -0800
commitf706c6a4183c5d2807ead7ed1c26cf2b8cfef921 (patch)
treeb7d02c5f9dca846107d93569485698e57149af89 /lib/chef/provider/directory.rb
parent46d19a502fb8824fa3fccf4535fcfa226c4e9473 (diff)
downloadchef-f706c6a4183c5d2807ead7ed1c26cf2b8cfef921.tar.gz
support why-run by defaultlcg/default-whyrun-supported
this should fix several bugs in providers that look like they should support whyrun but fail to declare it. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/directory.rb')
-rw-r--r--lib/chef/provider/directory.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/provider/directory.rb b/lib/chef/provider/directory.rb
index 38ee1f241f..a176230bba 100644
--- a/lib/chef/provider/directory.rb
+++ b/lib/chef/provider/directory.rb
@@ -1,6 +1,6 @@
#
# Author:: Adam Jacob (<adam@chef.io>)
-# Copyright:: Copyright 2008-2016, Chef Software Inc.
+# Copyright:: Copyright 2008-2017, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,10 +29,6 @@ class Chef
provides :directory
- def whyrun_supported?
- true
- end
-
def load_current_resource
@current_resource = Chef::Resource::Directory.new(new_resource.name)
current_resource.path(new_resource.path)