Sha256: ff230eb17e13870172edf9d291b5e32c8bf273c3f5f5869e5d00c7f6fd8e953b

Contents?: true

Size: 717 Bytes

Versions: 37

Compression:

Stored size: 717 Bytes

Contents

module <%= @plugin_name %>
  class Plugin < Adhearsion::Plugin
    # Actions to perform when the plugin is loaded
    #
    init :<%= @plugin_file %> do
      logger.warn "<%= @plugin_name %> has been loaded"
    end

    # Basic configuration for the plugin
    #
    config :<%= @plugin_file %> do
      greeting "Hello", :desc => "What to use to greet users"
    end

    # Defining a Rake task is easy
    # The following can be invoked with:
    #   rake plugin_demo:info
    #
    tasks do
      namespace :<%= @plugin_file %> do
        desc "Prints the PluginTemplate information"
        task :info do
          STDOUT.puts "<%= @plugin_name %> plugin v. #{VERSION}"
        end
      end
    end

  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
adhearsion-2.3.1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.3.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.2.1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.2.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.1.3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.1.2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.1.1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.1.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0.rc5 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0.rc4 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0.rc3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0.rc2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0.rc1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0.beta1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.0.0.alpha3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt