diff options
author | John Keiser <john@johnkeiser.com> | 2015-07-10 12:15:07 -0600 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-09-22 11:48:17 -0700 |
commit | 064e0a6b90d1e9a1e00e0c9ef4d18eb1ecc33a3e (patch) | |
tree | b1c654fce7526bc352dc494e7ffa5943fde017c5 /lib/chef/resource | |
parent | 871c858dbcec3dabec64474b68feb16372556377 (diff) | |
download | chef-064e0a6b90d1e9a1e00e0c9ef4d18eb1ecc33a3e.tar.gz |
Rename action_provider_class to less-wordy action_classjk/declare_action_class
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/action_class.rb (renamed from lib/chef/resource/action_provider.rb) | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/chef/resource/action_provider.rb b/lib/chef/resource/action_class.rb index d71b54ef4d..12211418e9 100644 --- a/lib/chef/resource/action_provider.rb +++ b/lib/chef/resource/action_class.rb @@ -20,7 +20,7 @@ require 'chef/exceptions' class Chef class Resource - module ActionProvider + module ActionClass # # If load_current_value! is defined on the resource, use that. # @@ -63,6 +63,20 @@ class Chef end module ClassMethods + # + # The Chef::Resource class this ActionClass was declared against. + # + # @return [Class] The Chef::Resource class this ActionClass was declared against. + # + attr_accessor :resource_class + + def to_s + "#{resource_class} action provider" + end + + def inspect + to_s + end end end end |