Methods

Class/Module Index [+]

Quicksearch

Backup::Storage::SCP

Attributes

ip[RW]

Server IP Address and SCP port

password[RW]

Server credentials

path[RW]

Path to store backups to

port[RW]

Server IP Address and SCP port

username[RW]

Server credentials

Public Class Methods

new(model, storage_id = nil, &block) click to toggle source

Creates a new instance of the storage object

# File lib/backup/storage/scp.rb, line 26
def initialize(model, storage_id = nil, &block)
  super(model, storage_id)

  @port ||= 22
  @path ||= 'backups'

  instance_eval(&block) if block_given?

  @path = path.sub(/^\~\//, '')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.