Sha256: 16ef995338cb6e01fb1ee64aa2ab564c757f54e17f4714e04df2eb5f5242e177

Contents?: true

Size: 524 Bytes

Versions: 5

Compression:

Stored size: 524 Bytes

Contents

module Embulk
  module Guess

    # TODO implement guess plugin to make this command work:
    #      $ embulk guess -g "unzip" partial-config.yml

    # class Unzip < GuessPlugin
    #   Plugin.register_guess("unzip", self)
    #
    #   FOO_BAR_HEADER = "\x1f\x8b".force_encoding('ASCII-8BIT').freeze
    #
    #   def guess(config, sample_buffer)
    #     if sample_buffer[0,2] == FOO_BAR_HEADER
    #       return {"decoders" => [{"type" => "unzip"}]}
    #     end
    #     return {}
    #   end
    # end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
embulk-decoder-unzip-0.1.4 lib/embulk/guess/unzip.rb
embulk-decoder-unzip-0.1.3 lib/embulk/guess/unzip.rb
embulk-decoder-unzip-0.1.2 lib/embulk/guess/unzip.rb
embulk-decoder-unzip-0.1.1 lib/embulk/guess/unzip.rb
embulk-decoder-unzip-0.1.0 lib/embulk/guess/unzip.rb