summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook_manifest.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-31 09:57:05 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-31 09:57:05 -0700
commit14b9553818265ecc35c037adfe479320e3a70e34 (patch)
treeec8f36c6f929f0c0b56f062484a280d6e645d61e /lib/chef/cookbook_manifest.rb
parentf051b6e7912086edc03747f4b1c0285bfb6597f5 (diff)
downloadchef-lcg/weirich-semantic-block.tar.gz
For Discussion: Weirich Semantic Block stylelcg/weirich-semantic-block
Style/BlockDelimiters: Enabled: true EnforcedStyle: semantic See, eg: https://github.com/rubocop-hq/ruby-style-guide/issues/162 http://www.virtuouscode.com/2011/07/26/the-procedurefunction-block-convention-in-ruby/ Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/cookbook_manifest.rb')
-rw-r--r--lib/chef/cookbook_manifest.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook_manifest.rb b/lib/chef/cookbook_manifest.rb
index b16eeccbca..2005c67a5c 100644
--- a/lib/chef/cookbook_manifest.rb
+++ b/lib/chef/cookbook_manifest.rb
@@ -192,7 +192,7 @@ class Chef
def by_parent_directory
@by_parent_directory ||=
- manifest[:all_files].inject({}) do |memo, file|
+ manifest[:all_files].inject({}) { |memo, file|
parts = file[:name].split("/")
parent = if parts.length == 1
"root_files"
@@ -203,7 +203,7 @@ class Chef
memo[parent] ||= []
memo[parent] << file
memo
- end
+ }
end
def root_files