From 13d4899d16ad658d09bb0dc499ea9d32b3b54ddb Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 2 Apr 2015 10:11:41 -0400 Subject: [PATCH] Cleanup style --- plugins/pushes/ftp/adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/pushes/ftp/adapter.rb b/plugins/pushes/ftp/adapter.rb index b4c4f48f2..d0d076491 100644 --- a/plugins/pushes/ftp/adapter.rb +++ b/plugins/pushes/ftp/adapter.rb @@ -74,7 +74,7 @@ module VagrantPlugins # Create the parent directories if they does not exist (naive mkdir -p) fullpath.descend do |path| - unless check_dir_exists? path.to_s + if !directory_exists?(path.to_s) @server.mkdir(path.to_s) end end @@ -83,7 +83,7 @@ module VagrantPlugins @server.putbinaryfile(local, remote) end - def check_dir_exists?(path) + def directory_exists?(path) begin @server.chdir(path) return true