diff options
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r-- | lib/chef/resource.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 40911cd2cc..f9fb5926aa 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -138,7 +138,6 @@ class Chef @action = self.class.default_action @updated = false @updated_by_last_action = false - @supports = {} @ignore_failure = false @retries = 0 @retry_delay = 2 @@ -955,29 +954,6 @@ class Chef end # - # Sets a list of capabilities of the real resource. For example, `:remount` - # (for filesystems) and `:restart` (for services). - # - # TODO Calling resource.supports({}) will not set this to empty; it will do - # a get instead. That's wrong. - # - # @param args Hash{Symbol=>Boolean} If non-empty, sets the capabilities of - # this resource. Default: {} - # @return Hash{Symbol=>Boolean} An array of things this resource supports. - # - def supports(args = {}) - if args.any? - @supports = args - else - @supports - end - end - - def supports=(args) - supports(args) - end - - # # A hook called after a resource is created. Meant to be overriden by # subclasses. # |