Class: Backup::Record::Local
- Extended by:
- CommandHelper
- Defined in:
- lib/backup/record/local.rb
Instance Attribute Summary
Attributes inherited from Base
#adapter_config, #keep_backups
Class Method Summary collapse
Instance Method Summary collapse
Methods included from CommandHelper
Methods inherited from Base
destroy_all_backups, #load_adapter
Class Method Details
.destroy_backups(procedure, backups) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/backup/record/local.rb', line 14 def destroy_backups(procedure, backups) backups.each do |backup| puts "\nDestroying backup \"#{backup.filename}\" from path \"#{backup.path}\"." run "rm #{File.join(backup.path, backup.filename)}" backup.destroy end end |
Instance Method Details
#load_specific_settings(adapter) ⇒ Object
5 6 7 |
# File 'lib/backup/record/local.rb', line 5 def load_specific_settings(adapter) self.path = adapter.procedure.get_storage_configuration.attributes['path'] end |