Sha256: bfa999b794b567f4c4afe857ceeb75a30416cac426788c021644c4f2e8c75895
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
module Astrails module Safe class Archive < Source 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}"}.join(" ") end def tar_files raise RuntimeError, "missing files for tar" unless config[:files] [*config[:files]].map{|s| s.strip}.join(" ") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
akupchanko-astrails-safe-0.3.1 | lib/astrails/safe/archive.rb |