Sha256: b3f0522353e16c659203095ab19041d0cdf247b182faf4a6bae1c3f4d4947d83

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 Bytes

Contents

require "lita"

module Lita
  module <%= config[:constant_namespace] %>
    class <%= config[:constant_name] %> < <%= config[:plugin_type].capitalize %>
    end

    <%- if config[:plugin_type] == "adapter" -%>
    Lita.register_adapter(:<%= config[:name] %>, <%= config[:constant_name] %>)
    <%- else -%>
    Lita.register_handler(<%= config[:constant_name] %>)
    <%- end -%>
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lita-2.7.2 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-2.7.1 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-2.7.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-2.6.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-2.5.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-2.4.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-2.3.0 templates/plugin/lib/lita/plugin_type/plugin.tt