You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2016/09/01 15:39:30 UTC

ios commit: CB-11791 - 'pod install' should pass in the '--verbose' flag, if set

Repository: cordova-ios
Updated Branches:
  refs/heads/master 51d707838 -> aa28508d1


CB-11791 - 'pod install' should pass in the '--verbose' flag, if set

 This closes #251


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/aa28508d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/aa28508d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/aa28508d

Branch: refs/heads/master
Commit: aa28508d1e31e3b8c210494b73a906372d31daa3
Parents: 51d7078
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Sep 1 08:07:56 2016 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Sep 1 08:39:14 2016 -0700

----------------------------------------------------------------------
 bin/templates/scripts/cordova/lib/podMod.js | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/aa28508d/bin/templates/scripts/cordova/lib/podMod.js
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/lib/podMod.js b/bin/templates/scripts/cordova/lib/podMod.js
index 0676540..f47a536 100644
--- a/bin/templates/scripts/cordova/lib/podMod.js
+++ b/bin/templates/scripts/cordova/lib/podMod.js
@@ -57,7 +57,28 @@ function installAllPods (path, isPathToProjectFile) {
         path = removeProjectFromPath(path);
     }
     opts.cwd = path;
-    superspawn.spawn('pod', ['install'], opts);
+    opts.stdio = 'pipe';
+    var first = true;
+
+    superspawn.spawn('pod', ['install', '--verbose'], opts)
+    .progress(function (stdio){
+        if (stdio.stderr) { console.error(stdio.stderr); }
+        if (stdio.stdout) {
+            if (first) {
+                events.emit('verbose', '==== pod install start ====\n');
+                first = false;
+            }
+            events.emit('verbose', stdio.stdout); 
+        } 
+    })
+    .then(function() { // done
+        events.emit('verbose', '==== pod install end ====\n');
+    })
+    .fail(function(error) {
+        console.error(error);
+        // TODO: report on what to do if cocoapods is not installed
+    })
+    .fin();
 }
 
 function addToPodfileSync (projectName, pathToProjectFile, nameOfPod, podSpec, podsJSON) {


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