summaryrefslogtreecommitdiff
path: root/lib/chef/file_cache.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-19 09:28:33 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-19 09:28:33 -0800
commit92bec4bb96d857f027068fc56af46c76c484fd50 (patch)
tree2cffea3fc9466d0c5e2baa7cc7630abb0ed7aecb /lib/chef/file_cache.rb
parent6077b99f6ad1bc9a082f575f3818e69f05d8c8dc (diff)
downloadchef-92bec4bb96d857f027068fc56af46c76c484fd50.tar.gz
flip multiline function arguments aroundlcg/rubocop-0.37.2
no enforced trailing comma on arguments...
Diffstat (limited to 'lib/chef/file_cache.rb')
-rw-r--r--lib/chef/file_cache.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/file_cache.rb b/lib/chef/file_cache.rb
index b4f3de236a..b4beee4a66 100644
--- a/lib/chef/file_cache.rb
+++ b/lib/chef/file_cache.rb
@@ -48,7 +48,7 @@ class Chef
{
:path => { :kind_of => String },
:contents => { :kind_of => String },
- },
+ }
)
file_path_array = File.split(path)
@@ -74,7 +74,7 @@ class Chef
{
:file => { :kind_of => String },
:path => { :kind_of => String },
- },
+ }
)
file_path_array = File.split(path)
@@ -82,7 +82,7 @@ class Chef
if File.exists?(file) && File.writable?(file)
FileUtils.mv(
file,
- File.join(create_cache_path(File.join(file_path_array), true), file_name),
+ File.join(create_cache_path(File.join(file_path_array), true), file_name)
)
else
raise RuntimeError, "Cannot move #{file} to #{path}!"
@@ -109,7 +109,7 @@ class Chef
},
{
:path => { :kind_of => String },
- },
+ }
)
cache_path = create_cache_path(path, false)
raise Chef::Exceptions::FileNotFound, "Cannot find #{cache_path} for #{path}!" unless File.exists?(cache_path)
@@ -135,7 +135,7 @@ class Chef
},
{
:path => { :kind_of => String },
- },
+ }
)
cache_path = create_cache_path(path, false)
if File.exists?(cache_path)
@@ -182,7 +182,7 @@ class Chef
},
{
:path => { :kind_of => String },
- },
+ }
)
full_path = create_cache_path(path, false)
if File.exists?(full_path)