diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-26 17:26:36 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-26 17:26:36 -0700 |
commit | 5f6daf7b670b571447a5d907219ab7804e3c9007 (patch) | |
tree | ec228a87abab99d4dbc0626192d30b724a08888e /lib/chef/exceptions.rb | |
parent | ba0c5fcd7a1735b4ae170816dc48b05d791b9733 (diff) | |
download | chef-attrs.tar.gz |
Combine attr_readers onto a single lineattrs
The method takes more than 1 argument
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r-- | lib/chef/exceptions.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb index 444fe82df1..ab396b02fe 100644 --- a/lib/chef/exceptions.rb +++ b/lib/chef/exceptions.rb @@ -196,8 +196,7 @@ class Chef class MetadataNotValid < StandardError; end class MetadataNotFound < StandardError - attr_reader :install_path - attr_reader :cookbook_name + attr_reader :install_path, :cookbook_name def initialize(install_path, cookbook_name) @install_path = install_path @@ -333,8 +332,7 @@ class Chef # run_list items referred to cookbooks that don't exist and/or # have no versions available. class InvalidRunListItems < StandardError - attr_reader :non_existent_cookbooks - attr_reader :cookbooks_with_no_matching_versions + attr_reader :non_existent_cookbooks, :cookbooks_with_no_matching_versions def initialize(message, non_existent_cookbooks, cookbooks_with_no_matching_versions) super(message) @@ -360,8 +358,7 @@ class Chef # resolve the misconfiguration represented by this exception and # re-solve, you may get another exception class UnsatisfiableRunListItem < StandardError - attr_reader :run_list_item - attr_reader :non_existent_cookbooks, :most_constrained_cookbooks + attr_reader :run_list_item, :non_existent_cookbooks, :most_constrained_cookbooks # most_constrained_cookbooks: if I were to remove constraints # regarding these cookbooks, I would get a solution or move on |