cylon/lib/test
Andrew Stewart 44075a1a30 Hook Repository class up, change-up module loading
Cylon modules were previously styled something like this:

    module.exports = {
      adaptor: function(args) {
        return new Adaptor(args);
      },

      register: function(robot) {
        Cylon.Logger.debug("Registering Firmata adaptor for " + robot.name);
        robot.registerAdaptor('cylon-firmata', 'firmata');

        GPIO.register(robot);
        I2C.register(robot);
      }
    };

Now, they should be something more like this:

    module.exports = {
      adaptors: ['firmata'],
      dependencies: ['cylon-gpio', 'cylon-i2c'],

      adaptor: function(args) {
        return new Adaptor(args);
      },
    };
2014-10-30 13:29:06 -07:00
..
loopback.js Hook Repository class up, change-up module loading 2014-10-30 13:29:06 -07:00
ping.js Hook Repository class up, change-up module loading 2014-10-30 13:29:06 -07:00
test-adaptor.js Hook Repository class up, change-up module loading 2014-10-30 13:29:06 -07:00
test-driver.js Hook Repository class up, change-up module loading 2014-10-30 13:29:06 -07:00