Sha256: 96a2355fc2a07b2945cd0f568dae8eeab0f36feb9f2540bb3b36fb050624f3bc

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

module Matrioska
  class Plugin < Adhearsion::Plugin
    # Actions to perform when the plugin is loaded
    #
    init :matrioska do
      logger.warn "Matrioska has been loaded"
    end

    # Basic configuration for the plugin
    #
    config :matrioska 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 :matrioska do
        desc "Prints the PluginTemplate information"
        task :info do
          STDOUT.puts "Matrioska plugin v. #{VERSION}"
        end
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
matrioska-0.0.2 lib/matrioska/plugin.rb
matrioska-0.0.1 lib/matrioska/plugin.rb