Sha256: e07801c4aa7423e4a67cdb882605d0188d6f59026e8e1a57cdeec05e5e4cbc32

Contents?: true

Size: 484 Bytes

Versions: 11

Compression:

Stored size: 484 Bytes

Contents

module Uricp::Strategy

  class PipedCompress
    
    include Uricp::Strategy::Common


    def appropriate?
      case from.scheme
      when 'pipe'
	return proposal if compression_required?
      end
      debug "#{self.class.name}: not appropriate"
      false
    end

    def command
      "lz4 |"
    end

    def proposal
      @proposed_options = options.dup
      @proposed_options.delete('compress')
      @proposed_options['encoding']='lz4'
      self
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
uricp-0.0.15 lib/uricp/strategy/piped_compress.rb
uricp-0.0.14 lib/uricp/strategy/piped_compress.rb
uricp-0.0.13 lib/uricp/strategy/piped_compress.rb
uricp-0.0.12 lib/uricp/strategy/piped_compress.rb
uricp-0.0.11 lib/uricp/strategy/piped_compress.rb
uricp-0.0.10 lib/uricp/strategy/piped_compress.rb
uricp-0.0.9 lib/uricp/strategy/piped_compress.rb
uricp-0.0.8 lib/uricp/strategy/piped_compress.rb
uricp-0.0.7 lib/uricp/strategy/piped_compress.rb
uricp-0.0.6 lib/uricp/strategy/piped_compress.rb
uricp-0.0.5 lib/uricp/strategy/piped_compress.rb