diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-07 15:28:50 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-07 15:28:50 -0700 |
commit | d7c4085d55a537d297f557c119fa6a9bd7e22690 (patch) | |
tree | facde7c91df602a4b9584472a09c2043036501b0 /lib/chef/exceptions.rb | |
parent | 3e9e6d41a31bd1ac932f7f4100102466b4fdfe05 (diff) | |
download | chef-d7c4085d55a537d297f557c119fa6a9bd7e22690.tar.gz |
Add spaces after attrs
This makes it easier to read the classes.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r-- | lib/chef/exceptions.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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| |