30 lines
487 B
JavaScript
30 lines
487 B
JavaScript
/*
|
|
* Ping driver
|
|
* cylonjs.com
|
|
*
|
|
* Copyright (c) 2013-2014 The Hybrid Group
|
|
* Licensed under the Apache 2.0 license.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var Driver = require('../driver');
|
|
|
|
var Ping;
|
|
|
|
module.exports = Ping = function Ping() {
|
|
Ping.__super__.constructor.apply(this, arguments);
|
|
};
|
|
|
|
subclass(Ping, Driver);
|
|
|
|
Ping.prototype.commands = function() {
|
|
return ['ping'];
|
|
};
|
|
|
|
Ping.prototype.ping = function() {
|
|
return "pong";
|
|
};
|
|
|
|
Ping.driver = function(opts) { return new Ping(opts); };
|