Sha256: 027528a3343755abed9935356858e7a7b7da479c62090ad3941c28acefd57943
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
class PgExport class FtpConnection include Logging attr_reader :ftp, :host def initialize(host:, user:, password:) @host, @user, @password = host, user, password end def open @ftp = Net::FTP.new(host, user, password) @ftp.passive = true logger.info "Connect to #{host}" self end def close @ftp.close logger.info 'Close FTP' self end private attr_reader :user, :password end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_export-0.5.1 | lib/pg_export/services/ftp_connection.rb |
pg_export-0.5.0 | lib/pg_export/services/ftp_connection.rb |