Module DatedBackup::DSL::TimeExtensions
In: lib/dated_backup/dsl/time_extensions.rb
lib/dated_backup/dsl/time_extensions.rb
lib/dated_backup/dsl/time_extensions.rb

After a run through the DSL, the TimeExtensions#kept method should contain an array of all of the items to keep. Each item will be a hash with two keys: a :constraint key, which contains a range of Times (from oldest to newest), and a :scope key, which will indicate whether the backup to look at is a weekly, monthly, etc. If no :scope key is given, then all of the backups in the time range given by the :constraint key will be assumed to be kept.

Methods

==   ==   ==   all   all   all   backup   backup   backup   backups   backups   backups   from   from   from   keep   keep   keep   last   last   last   new   new   new   this   this   this   today   today   today   todays   todays   todays   yesterday   yesterday   yesterday   yesterdays   yesterdays   yesterdays  

Classes and Modules

Module DatedBackup::DSL::TimeExtensions::ClassMethods

Attributes

kept  [R] 
kept  [R] 
kept  [R] 
last_time  [R] 
last_time  [R] 
last_time  [R] 
time_range  [R] 
time_range  [R] 
time_range  [R] 

Public Class methods

Public Instance methods

placeholders:

placeholders:

placeholders:

backups(*args;)

Alias for backup

backups(*args;)

Alias for backup

backups(*args;)

Alias for backup

todays(arg=nil, now=Time.now)

Alias for today

todays(arg=nil, now=Time.now)

Alias for today

todays(arg=nil, now=Time.now)

Alias for today

yesterdays(arg=nil, now=Time.now)

Alias for yesterday

yesterdays(arg=nil, now=Time.now)

Alias for yesterday

yesterdays(arg=nil, now=Time.now)

Alias for yesterday

[Validate]