cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/3] cordova-lib git commit: Adds stubs for `publish`/`unpublish` commands. This closes #254
Date Thu, 16 Jul 2015 00:16:16 GMT
Adds stubs for `publish`/`unpublish` commands. This closes #254


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

Branch: refs/heads/master
Commit: bff2f6e9a2674dc888a0596b23c82dfee7f93ebb
Parents: 64c2c00
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Thu Jul 9 10:49:24 2015 +0300
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Wed Jul 15 17:05:01 2015 -0700

----------------------------------------------------------------------
 cordova-lib/src/plugman/plugman.js | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/bff2f6e9/cordova-lib/src/plugman/plugman.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/plugman.js b/cordova-lib/src/plugman/plugman.js
index 3d805df..72dc6b9 100644
--- a/cordova-lib/src/plugman/plugman.js
+++ b/cordova-lib/src/plugman/plugman.js
@@ -160,6 +160,16 @@ plugman.commands =  {
             }
         });
     },
+    'publish'  : function() {
+        events.emit('error', 'The publish functionality is not supported anymore since the
Cordova Plugin registry\n' +
+            'has moved to read-only state. For publishing use corresponding \'npm\' commands.\n\n'
+
+            'If for any reason you still need for \'plugman publish\' - consider downgrade
to plugman@0.23.3');
+    },
+    'unpublish': function(cli_opts) {
+        events.emit('error', 'The publish functionality is not supported anymore since the
Cordova Plugin registry\n' +
+            'has moved to read-only state. For publishing/unpublishing use corresponding
\'npm\' commands.\n\n' +
+            'If for any reason you still need for \'plugman unpublish\' - consider downgrade
to plugman@0.23.3');
+    },
     'create': function(cli_opts) {
         if( !cli_opts.name || !cli_opts.plugin_id || !cli_opts.plugin_version) {
             return console.log( plugman.help() );


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


Mime
View raw message