Methods

Class/Module Index [+]

Quicksearch

Backup::Storage::FTP

Attributes

ip[RW]

Server IP Address and FTP port

passive_mode[RW]

use passive mode?

password[RW]

Server credentials

path[RW]

Path to store backups to

port[RW]

Server IP Address and FTP 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/ftp.rb, line 28
def initialize(model, storage_id = nil, &block)
  super(model, storage_id)

  @port         ||= 21
  @path         ||= 'backups'
  @passive_mode ||= false

  instance_eval(&block) if block_given?

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.