lib/astrails/safe/archive.rb in astrails-safe-0.2.7 vs lib/astrails/safe/archive.rb in astrails-safe-0.3.0

- old
+ new

@@ -9,15 +9,15 @@ def extension; '.tar'; end protected def tar_exclude_files - [*@config[:exclude]].compact.map{|x| "--exclude=#{x}"} * " " + [*@config[:exclude]].compact.map{|x| "--exclude=#{x}"}.join(" ") end def tar_files raise RuntimeError, "missing files for tar" unless @config[:files] - [*@config[:files]].map {|s| s.strip} * " " + [*@config[:files]].map{|s| s.strip}.join(" ") end end end end