From d7c4085d55a537d297f557c119fa6a9bd7e22690 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 7 Jul 2020 15:28:50 -0700 Subject: Add spaces after attrs This makes it easier to read the classes. Signed-off-by: Tim Smith --- lib/chef/exceptions.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/chef/exceptions.rb') diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb index 645193389e..444fe82df1 100644 --- a/lib/chef/exceptions.rb +++ b/lib/chef/exceptions.rb @@ -198,6 +198,7 @@ class Chef class MetadataNotFound < StandardError attr_reader :install_path attr_reader :cookbook_name + def initialize(install_path, cookbook_name) @install_path = install_path @cookbook_name = cookbook_name @@ -448,6 +449,7 @@ class Chef # to correctly populate the backtrace with the wrapped backtraces. class RunFailedWrappingError < RuntimeError attr_reader :wrapped_errors + def initialize(*errors) errors = errors.select { |e| !e.nil? } output = "Found #{errors.size} errors, they are stored in the backtrace" @@ -488,6 +490,7 @@ class Chef class MultipleDscResourcesFound < RuntimeError attr_reader :resources_found + def initialize(resources_found) @resources_found = resources_found matches_info = @resources_found.each do |r| -- cgit v1.2.1