Class: Backup::Storage::Local

Inherits:
Base
  • Object
show all
Includes:
Cycler
Defined in:
lib/backup/storage/local.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary

Attributes inherited from Base

#keep, #model, #package, #path, #storage_id

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Config::Helpers

included

Constructor Details

#initialize(model, storage_id = nil) ⇒ Local

Returns a new instance of Local.



9
10
11
12
13
# File 'lib/backup/storage/local.rb', line 9

def initialize(model, storage_id = nil)
  super

  @path ||= '~/backups'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers