lib/astrails/safe/archive.rb in astrails-safe-0.1.0 vs lib/astrails/safe/archive.rb in astrails-safe-0.1.1
- old
+ new
@@ -1,13 +1,13 @@
module Astrails
module Safe
- class Archive < Engine
+ class Archive < Source
def command
"tar -cf - #{@config[:options]} #{tar_exclude_files} #{tar_files}"
end
- def extension; 'tar'; end
+ def extension; '.tar'; end
protected
def tar_exclude_files
[*@config[:exclude]].compact.map{|x| "--exclude=#{x}"} * " "