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