summaryrefslogtreecommitdiff
path: root/lib/chef/provider/resource_update.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/resource_update.rb')
-rw-r--r--lib/chef/provider/resource_update.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/chef/provider/resource_update.rb b/lib/chef/provider/resource_update.rb
index d3c674dd22..8d4b8db5b6 100644
--- a/lib/chef/provider/resource_update.rb
+++ b/lib/chef/provider/resource_update.rb
@@ -29,15 +29,11 @@ class Chef
class ResourceUpdate
- attr_accessor :type
- attr_accessor :name
- attr_accessor :duration # ms
- attr_accessor :status
- attr_accessor :initial_state
- attr_accessor :final_state
- attr_accessor :initial_properties
- attr_accessor :final_properties
- attr_accessor :event_data # e.g., a diff.
+ attr_accessor :type, :name, :duration, :status, :initial_state, :final_state, :initial_properties, :final_properties, :event_data
+
+ # ms
+
+ # e.g., a diff.
def initial_state_from_resource(resource)
@initial_properties = resource.to_hash