summaryrefslogtreecommitdiff
path: root/lib/chef/resource/cookbook_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/cookbook_file.rb')
-rw-r--r--lib/chef/resource/cookbook_file.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/resource/cookbook_file.rb b/lib/chef/resource/cookbook_file.rb
index 7be353b648..42f16e6db6 100644
--- a/lib/chef/resource/cookbook_file.rb
+++ b/lib/chef/resource/cookbook_file.rb
@@ -27,13 +27,11 @@ class Chef
class CookbookFile < Chef::Resource::File
include Chef::Mixin::Securable
- provides :cookbook_file
+ default_action :create
def initialize(name, run_context=nil)
super
@provider = Chef::Provider::CookbookFile
- @resource_name = :cookbook_file
- @action = "create"
@source = ::File.basename(name)
@cookbook = nil
end