Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14A2B1010B for ; Sat, 3 May 2014 19:11:16 +0000 (UTC) Received: (qmail 88516 invoked by uid 500); 3 May 2014 19:11:15 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 88485 invoked by uid 500); 3 May 2014 19:11:15 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 88473 invoked by uid 99); 3 May 2014 19:11:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2014 19:11:15 +0000 Date: Sat, 3 May 2014 19:11:15 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6481) adds plugin level hooks support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6481?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1398878= 8#comment-13988788 ]=20 ASF GitHub Bot commented on CB-6481: ------------------------------------ Github user sgrebnov commented on a diff in the pull request: https://github.com/apache/cordova-plugman/pull/74#discussion_r12257681 =20 --- Diff: src/util/hooks.js --- @@ -0,0 +1,148 @@ +/** + 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 path =3D require('path'), + fs =3D require('fs'), + child_process =3D require('child_process'), + Q =3D require('q'), + events =3D require('../events'), + os =3D require('os'), + isWindows =3D (os.platform().substr(0,3) =3D=3D=3D 'win'); + +/** + * Implements functionality to run plugin level hooks.=20 + * Hooks are defined in plugin config file as