cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblotsky <...@git.apache.org>
Subject [GitHub] cordova-paramedic pull request: Real time logging and other improv...
Date Fri, 11 Mar 2016 02:08:44 GMT
Github user dblotsky commented on a diff in the pull request:

    https://github.com/apache/cordova-paramedic/pull/1#discussion_r55781222
  
    --- Diff: lib/Tunnel.js ---
    @@ -0,0 +1,19 @@
    + var exec = require('./utils').exec;
    + var path = require('path');
    + var Q = require('Q');
    +
    +function Tunnel(port) {
    +    this.port = port;
    +}
    +
    +Tunnel.prototype.createTunnel = function() {
    +    var self = this;
    +    //TODO: use localtunnel module instead of shell
    +    return Q.Promise(function(resolve, reject) {
    +        exec(path.resolve(__dirname, '../node_modules/.bin/lt') + ' --port ' + self.port,
null, function(output) {
    +            resolve(output.split(' ')[3]);
    +        });
    +    });
    +};
    +
    +module.exports = Tunnel;
    --- End diff --
    
    Newline at the end of the file.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message