load_plugin_tasks (Hoe)

    # File lib/hoe.rb, line 478
      def load_plugin_tasks
        bad = []

        $plugin_max = self.class.plugins.map { |s| s.to_s.size }.max

        self.class.plugins.each do |plugin|
          warn plugin if $DEBUG

          old_tasks = Rake::Task.tasks.dup

          begin
            send "define_#{plugin}_tasks"
          rescue NoMethodError => e
            warn "warning: couldn't activate the #{plugin} plugin, skipping"
            bad << plugin
            next
          end

          (Rake::Task.tasks - old_tasks).each do |task|
            task.plugin = plugin
          end
        end
        @@plugins -= bad
      end