Sha256: 78b8e5e03bd78bb9ebc2b2737293e3fd3ec51a7990ee82da70f476cd9437ce34
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
module Astrails module Safe class Archive < Engine def command "tar -cf - #{@config[:options]} #{tar_exclude_files} #{tar_files}" end protected def tar_exclude_files [*@config[:exclude]].compact.map{|x| "--exclude=#{x}"} * " " end def tar_files raise RuntimeError, "missing files for tar" unless @config[:files] [*@config[:files]] * " " end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
astrails-safe-0.0.8 | lib/astrails/safe/archive.rb |