Methods

Class/Module Index [+]

Quicksearch

Backup::Storage::Cycler

Public Class Methods

cycle!(storage, package) click to toggle source

Adds the given package to the YAML storage file corresponding to the given storage and Package#trigger (Model#trigger). Then, calls the storage to remove the files for any older packages that were removed from the YAML storage file.

# File lib/backup/storage/cycler.rb, line 12
def cycle!(storage, package)
  @storage, @package = storage, package
  @storage_file = storage_file

  update_storage_file!
  remove_packages!
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.