Sha256: 34d3e350faee96165a028e41192cc7a309f2c3fcd6cd9ce81d963e9ef22fcc2d

Contents?: true

Size: 269 Bytes

Versions: 15

Compression:

Stored size: 269 Bytes

Contents

<%= preamble %>

require "fluent/plugin/parser"

module Fluent
  module Plugin
    class <%= class_name %> < Fluent::Plugin::Parser
      Fluent::Plugin.register_parser("<%= plugin_name %>", self)
    end

    def parse(text)
      yield time, record
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fluentd-1.2.2 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.2.1 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.2.0 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.2.0.pre1 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.1.3 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.1.2 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.1.1 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.1.0 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.0.2 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.0.1 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.0.0 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-0.14.25 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-1.0.0.rc1 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-0.14.24 templates/new_gem/lib/fluent/plugin/parser.rb.erb
fluentd-0.14.23 templates/new_gem/lib/fluent/plugin/parser.rb.erb