summaryrefslogtreecommitdiff
path: root/lib/chef/file_cache.rb
diff options
context:
space:
mode:
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)