Sha256: 1691c062ad95e5de6636aeb5ac8929936631ef573bfef8ca60707626478f9e69

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
lita-3.1.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-3.0.4 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-3.0.3 templates/plugin/lib/lita/plugin_type/plugin.tt