lib/astrails/safe/archive.rb in astrails-safe-0.0.8 vs lib/astrails/safe/archive.rb in astrails-safe-0.0.9
- old
+ new
@@ -4,9 +4,11 @@
def command
"tar -cf - #{@config[:options]} #{tar_exclude_files} #{tar_files}"
end
+ def extension; 'tar'; end
+
protected
def tar_exclude_files
[*@config[:exclude]].compact.map{|x| "--exclude=#{x}"} * " "
end