Class: Astrails::Safe::Archive

Inherits:
Source show all
Defined in:
lib/astrails/safe/archive.rb

Instance Method Summary collapse

Methods inherited from Source

#filename, #initialize, run

Methods inherited from Stream

#compressed?, #config, #filename, #id, #initialize

Constructor Details

This class inherits a constructor from Astrails::Safe::Source

Instance Method Details

#commandObject



5
6
7
# File 'lib/astrails/safe/archive.rb', line 5

def command
  "tar -cf - #{@config[:options]} #{tar_exclude_files} #{tar_files}"
end

#extensionObject



9
# File 'lib/astrails/safe/archive.rb', line 9

def extension; '.tar'; end