Sha256: d126cff38fb42ef302f9fad92358007e246adafd4997a261212993ea96e6d567
Contents?: true
Size: 495 Bytes
Versions: 11
Compression:
Stored size: 495 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}"} * " " end def tar_files raise RuntimeError, "missing files for tar" unless @config[:files] [*@config[:files]].map {|s| s.strip} * " " end end end end
Version data entries
11 entries across 11 versions & 3 rubygems