// Copyright (c) 2015 The Virtual Vulcano authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE.md file.

'use strict';


var plugins = [];


module.exports = {

  register: function (info) {
    plugins.push(info);
  },

  list: function () {
    return plugins;
  },

};

@@ -235,65 +235,613 @@
 %0A%0A  
-register: function (info) %7B%0A    plugins.push(info);%0A  %7D,%0A
+/**%0A   * Register a new plugin in the system.%0A   * @param %7BObject%7D info The info about the plugin. It should have these keys:%0A   *   - name %3Cstring%3E The name that will be showed in the dashboard.%0A   *   - url %3Cstring%3E The URL of the link in the dashboard.%0A   *   - icon %3Cstring%3E The name of the Font Awesome icon for the dashboard.%0A   *   - routes %3Cfunction(app)%3E Function that will be called to register the%0A   *       routes this plugin will handle.%0A   */%0A  register: function (info) %7B%0A    plugins.push(info);%0A  %7D,%0A%0A  /**%0A   * List the registered plugins.%0A   * @return %7BArray%7D The list of plugins.%0A   */
 %0A  l

Add comments.