You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/12/03 15:21:11 UTC

[cordova-paramedic] branch janpio-split created (now 87a1d88)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a change to branch janpio-split
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git.


      at 87a1d88  ParamedicLog => ParamedicLogCollector

This branch includes the following new commits:

     new 87a1d88  ParamedicLog => ParamedicLogCollector

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[cordova-paramedic] 01/01: ParamedicLog => ParamedicLogCollector

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-split
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git

commit 87a1d88b61f47f137ef493e90a6369587f3c684b
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Mon Dec 3 16:20:24 2018 +0100

    ParamedicLog => ParamedicLogCollector
---
 lib/ParamedicLog.js | 16 ++++++++--------
 lib/paramedic.js    |  6 +++---
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/lib/ParamedicLog.js b/lib/ParamedicLog.js
index 0eee617..a1bfc07 100644
--- a/lib/ParamedicLog.js
+++ b/lib/ParamedicLog.js
@@ -30,14 +30,14 @@ var util     = require('./utils').utilities;
 var logger   = require('./utils').logger;
 var exec     = require('./utils').exec;
 
-function ParamedicLog(platform, appPath, outputDir, targetObj) {
+function ParamedicLogCollector(platform, appPath, outputDir, targetObj) {
     this.platform = platform;
     this.appPath = appPath;
     this.outputDir = outputDir;
     this.targetObj = targetObj;
 }
 
-ParamedicLog.prototype.logIOS = function (appPath) {
+ParamedicLogCollector.prototype.logIOS = function (appPath) {
     if (!this.targetObj) {
         logger.warn('It looks like there is no target to get logs from.');
         return;
@@ -54,7 +54,7 @@ ParamedicLog.prototype.logIOS = function (appPath) {
     }
 };
 
-ParamedicLog.prototype.logWindows = function (appPath, logMins) {
+ParamedicLogCollector.prototype.logWindows = function (appPath, logMins) {
     var logScriptPath = path.join(appPath, 'platforms', 'windows', 'cordova', 'log.bat');
     if (fs.existsSync(logScriptPath)) {
         var mins = util.DEFAULT_LOG_TIME;
@@ -66,7 +66,7 @@ ParamedicLog.prototype.logWindows = function (appPath, logMins) {
     }
 };
 
-ParamedicLog.prototype.logAndroid = function () {
+ParamedicLogCollector.prototype.logAndroid = function () {
     if (!this.targetObj) {
         logger.warn('It looks like there is no target to get logs from.');
         return;
@@ -81,7 +81,7 @@ ParamedicLog.prototype.logAndroid = function () {
     this.generateLogs(logCommand);
 };
 
-ParamedicLog.prototype.generateLogs = function (logCommand) {
+ParamedicLogCollector.prototype.generateLogs = function (logCommand) {
     var logFile = this.getLogFileName();
     logger.info('Running Command: ' + logCommand);
 
@@ -100,11 +100,11 @@ ParamedicLog.prototype.generateLogs = function (logCommand) {
     }
 };
 
-ParamedicLog.prototype.getLogFileName = function () {
+ParamedicLogCollector.prototype.getLogFileName = function () {
     return path.join(this.outputDir, this.platform + '_logs.txt');
 };
 
-ParamedicLog.prototype.collectLogs = function (logMins) {
+ParamedicLogCollector.prototype.collectLogs = function (logMins) {
     shelljs.config.fatal  = false;
     shelljs.config.silent = false;
 
@@ -124,4 +124,4 @@ ParamedicLog.prototype.collectLogs = function (logMins) {
     }
 };
 
-module.exports = ParamedicLog;
+module.exports = ParamedicLogCollector;
diff --git a/lib/paramedic.js b/lib/paramedic.js
index afaa752..25a9377 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -31,7 +31,7 @@ var util            = require('./utils').utilities;
 var PluginsManager  = require('./PluginsManager');
 var Reporters       = require('./Reporters');
 var ParamedicKill   = require('./ParamedicKill');
-var ParamedicLog    = require('./ParamedicLog');
+var ParamedicLogCollector    = require('./ParamedicLogCollector');
 var wd              = require('wd');
 var SauceLabs       = require('saucelabs');
 var randomstring    = require('randomstring');
@@ -656,8 +656,8 @@ ParamedicRunner.prototype.collectDeviceLogs = function () {
     logger.info('Collecting logs for the devices.');
     var outputDir    = this.config.getOutputDir()? this.config.getOutputDir(): this.tempFolder.name;
     var logMins      = this.config.getLogMins()? this.config.getLogMins(): util.DEFAULT_LOG_TIME;
-    var paramedicLog = new ParamedicLog(this.config.getPlatformId(), this.tempFolder.name, outputDir, this.targetObj);
-    paramedicLog.collectLogs(logMins);
+    var paramedicLogCollector = new ParamedicLogCollector(this.config.getPlatformId(), this.tempFolder.name, outputDir, this.targetObj);
+    paramedicLogCollector.collectLogs(logMins);
 };
 
 ParamedicRunner.prototype.uninstallApp = function () {


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