class Outback::TargetArchive
Attributes
target[R]
Public Class Methods
new(filename, size, target)
click to toggle source
Calls superclass method
Outback::Archive::new
# File lib/outback/target_archive.rb, line 5 def initialize(filename, size, target) super(filename) @size = size @target = target end
Public Instance Methods
match?(name)
click to toggle source
# File lib/outback/target_archive.rb, line 11 def match?(name) name == backup_name end
outdated?()
click to toggle source
# File lib/outback/target_archive.rb, line 19 def outdated? if timestamp && ttl Time.now - Time.strptime(timestamp, Outback::TIME_FORMAT) > ttl end end
to_s()
click to toggle source
# File lib/outback/target_archive.rb, line 25 def to_s "#{target}: #{filename}" end
ttl()
click to toggle source
# File lib/outback/target_archive.rb, line 15 def ttl target && target.ttl end