Sha256: a2b71021663f92397a8084756c3bab6d51bc13bc08ada0e8c4e0c1a1c99977ae

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

require 'adhearsion/punchblock_plugin'

namespace :adhearsion do

  desc "List the configured plugins"
  task :plugins do |t,args|
    if Adhearsion::Plugin.subclasses.length > 0
      puts "You have #{Adhearsion::Plugin.subclasses.length} plugin(s) in your Adhearsion application:\n"
      Adhearsion::Plugin.subclasses.each do |plugin|
        puts "* #{plugin.plugin_name}: #{plugin.name}"
      end
    else
      puts "There is no Adhearsion plugin used in your application"
    end
    puts "\n"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhearsion-2.0.0.alpha1 lib/adhearsion/tasks/plugins.rb