Sha256: be9dc54ecffb18449d68b8b0a6c69e08fa257d179424f4a6839a31bc4ec9524c

Contents?: true

Size: 698 Bytes

Versions: 20

Compression:

Stored size: 698 Bytes

Contents

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

    <%- if config[:plugin_type] == "adapter" -%>
    Lita.register_adapter(:<%= config[:name] %>, <%= config[:constant_name] %>)
    <%- elsif config[:plugin_type] == "handler" -%>
    Lita.register_handler(<%= config[:constant_name] %>)
    <%- else -%>
    # If your extension needs to register with a Lita hook, uncomment the
    # following line and change the hook name to the appropriate value:
    # Lita.register_hook(:hook_name, <%= config[:constant_name] %>)
    <%- end -%>
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
lita-4.4.3 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.4.2 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.4.1 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.4.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.3.2 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.3.1 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.3.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.2.1 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.2.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.1.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.0.4 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.0.3 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.0.2 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.0.1 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.0.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.0.0.rc2 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-4.0.0.rc1 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-3.3.1 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-3.3.0 templates/plugin/lib/lita/plugin_type/plugin.tt
lita-3.2.0 templates/plugin/lib/lita/plugin_type/plugin.tt