Sha256: 2c8613a540d2c22af9acc83aca9ffb489cd5dbe1ec01f2acbeb1d4ec352f823a
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
module Uricp::Strategy class PipedLocalCompress include Uricp::Strategy::Common def appropriate? case from.scheme when 'file' return proposal if !sequence_complete? && compression_required? end debug "#{self.class.name}: not appropriate" false end def command "lz4c <#{from.path} |" end def proposal @proposed_options = options.dup @proposed_options.delete('compress') @proposed_options['encoding'] = 'lz4' @proposed_options['from_uri'] = PIPE_URI self end end end
Version data entries
4 entries across 4 versions & 1 rubygems