Class: Outback::SourceArchive

Inherits:
Archive show all
Defined in:
lib/outback/source_archive.rb

Constant Summary

Constants inherited from Archive

Archive::NAME_PATTERN

Instance Attribute Summary

Attributes inherited from Archive

#backup_name, #filename, #size, #source_name, #timestamp

Instance Method Summary collapse

Methods inherited from Archive

#to_s

Constructor Details

#initialize(filename) ⇒ SourceArchive

Returns a new instance of SourceArchive.



4
5
6
7
# File 'lib/outback/source_archive.rb', line 4

def initialize(filename)
  super(filename)
  @size = @filename.size
end

Instance Method Details

#openObject



9
10
11
# File 'lib/outback/source_archive.rb', line 9

def open
  filename.open
end


13
14
15
# File 'lib/outback/source_archive.rb', line 13

def unlink
  filename.unlink
end