diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-18 09:12:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-18 09:12:29 -0800 |
commit | 86643d99789002eca3f064f3450fe48dcd316753 (patch) | |
tree | 525ffeff996a1333a498d33821fe7257281a8337 /lib/chef/run_context.rb | |
parent | ca084429991a141127c80e9d2a08cb1bb68585c4 (diff) | |
download | chef-86643d99789002eca3f064f3450fe48dcd316753.tar.gz |
Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimeters
See chef/chefstyle#11 for analysis and discussion. We select '{}' since
audit of our source code shows that is the most common, and that used to
be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
Diffstat (limited to 'lib/chef/run_context.rb')
-rw-r--r-- | lib/chef/run_context.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb index b5659c8a25..6d3f53c6d5 100644 --- a/lib/chef/run_context.rb +++ b/lib/chef/run_context.rb @@ -600,7 +600,7 @@ ERROR_MESSAGE # class ChildRunContext < RunContext extend Forwardable - def_delegators :parent_run_context, *%w( + def_delegators :parent_run_context, *%w{ cancel_reboot config cookbook_collection @@ -627,7 +627,7 @@ ERROR_MESSAGE request_reboot resolve_attribute unreachable_cookbook? - ) + } def initialize(parent_run_context) @parent_run_context = parent_run_context @@ -638,7 +638,7 @@ ERROR_MESSAGE initialize_child_state end - CHILD_STATE = %w( + CHILD_STATE = %w{ audits audits= create_child @@ -660,7 +660,7 @@ ERROR_MESSAGE parent_run_context resource_collection resource_collection= - ).map { |x| x.to_sym } + }.map { |x| x.to_sym } # Verify that we didn't miss any methods missing_methods = superclass.instance_methods(false) - instance_methods(false) - CHILD_STATE |