lib/scms/deploy-ftp.rb in scms-4.3.0 vs lib/scms/deploy-ftp.rb in scms-4.4.0
- old
+ new
@@ -1,8 +1,6 @@
-require 'net/ftp'
require 'fileutils'
-
require 'scms/extensions.rb'
require 'scms/scms-utils.rb'
module FtpDeploy
@@ -52,13 +50,15 @@
end
ftp = FtpDeploy::Ftp.new(host, port, {:username => username, :password => password, :passive => passive})
puts "\r\nConnected to server. Sending site"
ftp.sync(website, remote_dir)
- puts "Successfully sent site"
+ puts "Successfully published site"
end
class Ftp
+ require 'net/ftp'
+
attr_reader :host, :port, :username, :password, :passive
def initialize(host, port = 21, options = Hash.new)
options = {:username => nil, :password => nil}.merge(options)
@host, @port = host, port