Class: Backup::Storage::Local
Instance Attribute Summary collapse
-
#path ⇒ Object
Path where the backup will be stored.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(model, storage_id = nil, &block) ⇒ Local
constructor
Creates a new instance of the storage object.
Methods inherited from Base
Methods included from Configuration::Helpers
Constructor Details
#initialize(model, storage_id = nil, &block) ⇒ Local
Creates a new instance of the storage object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/backup/storage/local.rb', line 13 def initialize(model, storage_id = nil, &block) super(model, storage_id) @path ||= File.join( File.(ENV['HOME'] || ''), 'backups' ) instance_eval(&block) if block_given? @path = File.(@path) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Configuration::Helpers
Instance Attribute Details
#path ⇒ Object
Path where the backup will be stored.
9 10 11 |
# File 'lib/backup/storage/local.rb', line 9 def path @path end |