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.6.4 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.6.3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-3.0.0.rc1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-3.0.0.beta2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-3.0.0.beta1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.6.2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.6.1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.6.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.5.4 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.5.3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.5.2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.5.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.4.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.4.0.beta3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.4.0.beta2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.4.0.beta1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.3.5 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.3.4 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.3.3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt
adhearsion-2.3.2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/plugin.rb.tt