Methods

Class/Module Index [+]

Quicksearch

Backup::Storage::Local

Attributes

path[RW]

Path where the backup will be stored.

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/local.rb, line 12
def initialize(model, storage_id = nil, &block)
  super(model, storage_id)

  @path ||= File.join(
    File.expand_path(ENV['HOME'] || ''),
    'backups'
  )

  instance_eval(&block) if block_given?

  @path = File.expand_path(@path)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.