summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-09-08 17:42:48 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-09-08 17:42:48 -0700
commit7688807e7b9e690e19e48547064b696ee35dde77 (patch)
treeeaa385b4e899148deacaf5457e7399037122788e /lib/chef/provider.rb
parentf0177df9fdb9f5098ff850c626e86d69ead412ff (diff)
downloadchef-7688807e7b9e690e19e48547064b696ee35dde77.tar.gz
Refactoring to support a base package class, that package providers can inherit from
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb
index b1949631f1..15c0afefdf 100644
--- a/lib/chef/provider.rb
+++ b/lib/chef/provider.rb
@@ -27,6 +27,10 @@ class Chef
@current_resource = nil
end
+ def load_current_resource
+ raise Chef::Exception::Override, "You must override load_current_resource"
+ end
+
def action_nothing
Chef::Log.debug("Doing nothing for #{@new_resource.to_s}")
true