From 2e1a19c7111554dbaaf985de72d6ad7e79af6f26 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Fri, 12 Aug 2016 11:53:19 -0700 Subject: fix Style/StructInheritance cop Signed-off-by: Lamont Granquist --- lib/chef/resource_reporter.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/chef/resource_reporter.rb b/lib/chef/resource_reporter.rb index 4135483441..8422870e2a 100644 --- a/lib/chef/resource_reporter.rb +++ b/lib/chef/resource_reporter.rb @@ -26,11 +26,11 @@ require "chef/event_dispatch/base" class Chef class ResourceReporter < EventDispatch::Base - class ResourceReport < Struct.new(:new_resource, - :current_resource, - :action, - :exception, - :elapsed_time) + ResourceReport = Struct.new(:new_resource, + :current_resource, + :action, + :exception, + :elapsed_time) do def self.new_with_current_state(new_resource, action, current_resource) report = new -- cgit v1.2.1