Sha256: cebfba4aaa2e24670d1fbca2b3a1158c02242a0c084566ce62516e180fd49acd
Contents?: true
Size: 807 Bytes
Versions: 11
Compression:
Stored size: 807 Bytes
Contents
module Backup module Transfer class SSH < Backup::Transfer::Base def initialize(options) super(default_options.merge(options)) # Creates a new instance of the SSH Wrapper Class/Object # Passes in the options hash and lets the wrapper extract only the # necessary information that is required to later transfer the specified file through SSH. ssh = Backup::Connection::SSH.new(options) # Initializes the file transfer to the specified server through SSH. ssh.transfer end private # Set default options def default_options {:ssh => { :user => "", :ip => "", :path => "/var/backups/" }} end end end end
Version data entries
11 entries across 11 versions & 1 rubygems