summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook/cookbook_version_loader.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-26 17:26:36 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-26 17:26:36 -0700
commit5f6daf7b670b571447a5d907219ab7804e3c9007 (patch)
treeec228a87abab99d4dbc0626192d30b724a08888e /lib/chef/cookbook/cookbook_version_loader.rb
parentba0c5fcd7a1735b4ae170816dc48b05d791b9733 (diff)
downloadchef-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/cookbook/cookbook_version_loader.rb')
-rw-r--r--lib/chef/cookbook/cookbook_version_loader.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/chef/cookbook/cookbook_version_loader.rb b/lib/chef/cookbook/cookbook_version_loader.rb
index 626a5d423b..eb0df849d1 100644
--- a/lib/chef/cookbook/cookbook_version_loader.rb
+++ b/lib/chef/cookbook/cookbook_version_loader.rb
@@ -35,17 +35,11 @@ class Chef
UPLOADED_COOKBOOK_VERSION_FILE = ".uploaded-cookbook-version.json".freeze
- attr_reader :cookbook_settings
- attr_reader :frozen
- attr_reader :uploaded_cookbook_version_file
-
- attr_reader :cookbook_path
+ attr_reader :cookbook_settings, :frozen, :uploaded_cookbook_version_file, :cookbook_path, :metadata_error
# The cookbook's name as inferred from its directory.
attr_reader :inferred_cookbook_name
- attr_reader :metadata_error
-
def initialize(path, chefignore = nil)
@cookbook_path = File.expand_path( path ) # cookbook_path from which this was loaded