You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/04/23 18:36:43 UTC
git commit: CB-6329 Delete unused info-utils.js
Repository: cordova-cli
Updated Branches:
refs/heads/master cdb5deff9 -> 106014ae7
CB-6329 Delete unused info-utils.js
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/106014ae
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/106014ae
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/106014ae
Branch: refs/heads/master
Commit: 106014ae77119043fd4b481cd39f5839dbc7cf66
Parents: cdb5def
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Apr 23 12:36:12 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Apr 23 12:36:12 2014 -0400
----------------------------------------------------------------------
src/info-utils.js | 50 --------------------------------------------------
1 file changed, 50 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/106014ae/src/info-utils.js
----------------------------------------------------------------------
diff --git a/src/info-utils.js b/src/info-utils.js
deleted file mode 100644
index 607e922..0000000
--- a/src/info-utils.js
+++ /dev/null
@@ -1,50 +0,0 @@
- /**
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-var superspawn = require('./superspawn'),
- Q = require('q'),
- _self;
-
-_self = {
- getNodeInfo : function () {
- return _self.execSpawn("node", "--version", "Node version: ", "Error retrieving Node version: ");
- },
- getCordovaInfo : function () {
- return _self.execSpawn("Cordova", "--version", "Cordova version: ", "Error retrieving Cordova version: ");
- },
- getPlatformInfo : function (platform, projectRoot) {
- switch (platform) {
- case "ios":
- return _self.execSpawn("xcodebuild", "-version", "iOS platform:\n\n", "Error retrieving iOS platform information: ");
- break;
- case "android":
- return _self.execSpawn("android list target", "", "Android platform:\n\n", "Error retrieving Android platform information: ");
- break;
- }
- },
- // Execute using a child_process exec, for any async command
- execSpawn : function (command, args, resultMsg, errorMsg) {
- return Q.when(superspawn.spawn(command, args), function (result) {
- return resultMsg + result;
- }, function (error) {
- return errorMsg + error;
- });
- }
-};
-
-module.exports = _self;