Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03EAE10918 for ; Thu, 27 Mar 2014 21:57:19 +0000 (UTC) Received: (qmail 20212 invoked by uid 500); 27 Mar 2014 21:57:18 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 20114 invoked by uid 500); 27 Mar 2014 21:57:18 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 19976 invoked by uid 99); 27 Mar 2014 21:57:16 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2014 21:57:16 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 5B3978AB432; Thu, 27 Mar 2014 21:57:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Thu, 27 Mar 2014 21:57:17 -0000 Message-Id: <2576ba8cb9fe45eeaa85bb9abefbff86@git.apache.org> In-Reply-To: <76d18626ed584fc6a0f7093ed4d4dac9@git.apache.org> References: <76d18626ed584fc6a0f7093ed4d4dac9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/8] git commit: CB-6357 platform: provide exports for functions CB-6357 platform: provide exports for functions Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/40efd93b Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/40efd93b Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/40efd93b Branch: refs/heads/master Commit: 40efd93b3376854271f2bcb74c3c3a2fb52f81b3 Parents: 10d073b Author: Josh Soref Authored: Mon Mar 24 17:30:46 2014 -0400 Committer: Josh Soref Committed: Thu Mar 27 00:03:47 2014 -0400 ---------------------------------------------------------------------- src/platform.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/40efd93b/src/platform.js ---------------------------------------------------------------------- diff --git a/src/platform.js b/src/platform.js index 96add30..9eb5825 100644 --- a/src/platform.js +++ b/src/platform.js @@ -246,7 +246,7 @@ module.exports = function platform(command, targets) { * */ -module.exports.supports = function(project_root, name) { +function supports(project_root, name) { // required parameters if (!name) return Q.reject(new CordovaError('requires a platform name parameter')); @@ -284,6 +284,7 @@ function call_into_create(target, projectRoot, cfg, libDir, template_dir) { } else { // Make sure we have minimum requirements to work with specified platform events.emit('verbose', 'Checking if platform "' + target + '" passes minimum requirements...'); + /* XXX this is calling the public symbol so that Jasmine Spy can attack it */ return module.exports.supports(projectRoot, target) .then(function() { events.emit('log', 'Creating ' + target + ' project...'); @@ -332,3 +333,10 @@ function call_into_create(target, projectRoot, cfg, libDir, template_dir) { }); } } + +module.exports.add = add; +module.exports.remove = remove; +module.exports.update = update; +module.exports.check = check; +module.exports.list = list; +module.exports.supports = supports;