lib/middleman-deploy/methods/ftp.rb in middleman-deploy-0.2.1 vs lib/middleman-deploy/methods/ftp.rb in middleman-deploy-0.2.2

- old
+ new

@@ -25,14 +25,12 @@ Dir.chdir(self.server_instance.build_dir) do filtered_files.each do |filename| if File.directory?(filename) upload_directory(ftp, filename) - elsif File.binary?(filename) + else upload_binary(ftp, filename) - else - upload_file(ftp, filename) end end end ftp.close @@ -83,19 +81,10 @@ ftp.mkdir(filename) puts "Created directory #{filename}" rescue end end - - def upload_file(ftp, filename) - begin - ftp.puttextfile(filename, filename) - rescue Exception => exception - handle_exception(exception, ftp, filename) - end - - puts "Copied #{filename}" - end + end end end end