@maka/maka-cli 4.5.5 → 4.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/actions/actions.test.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/jest.config.js +11 -0
- package/package.json +5 -4
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
## About
|
|
2
6
|
Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
|
|
3
7
|
(i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0s=a0d;
|
|
1
|
+
const a0s=a0d;function a0c(){const E=['proFlags','6WKjFJq','includes','help','murder','validateMakaSubscription','Too\x20few\x20options','singleLicense','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','minOptsLength','validateParams','Name','validateMakaProject','_commands','Command\x20not\x20found','8sYtvGI','find','findSubCommand','function','roles','validateMeteorInstall','length','findCommand','runSubCommand','Too\x20few\x20arguments','84785jugvZb','assign','filter','mustHaveMeteorInstalled','shortDesc','options','90690hbswsF','call','usage','tableList','11rqWvkr','header','Command\x20requires\x20a\x20name','invoke','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','error','4255727VkVuRQ','fsi','maxArgLength','match','bright','bind','12698860LMwQFt','To\x20use\x20these\x20pro\x20flags,\x20\x22','getPro','6848523yEEemV','create','toString','split','parent','256gACERC','Description','keys','name','play','number','apply','join','Command.create\x20requires\x20a\x20handler\x20function!','notice','To\x20use\x20this\x20command,\x20\x22','push','run','forEach','search','There\x20is\x20no\x20Meteor\x20application\x20here','(((.+)+)+)+$','minArgLength','maxOptsLength','mustBeInMakaProject','Command\x20requires\x20a\x20handler\x20function','proCommands','exit','aliases','Too\x20many\x20arguments','Too\x20many\x20options','2424894rMuAgL','6832416WHTkYZ','Sub-Commands:','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'];a0c=function(){return E;};return a0c();}(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x249))/0x1*(-parseInt(p(0x231))/0x2)+parseInt(p(0x22b))/0x3+-parseInt(p(0x211))/0x4*(-parseInt(p(0x1f9))/0x5)+parseInt(p(0x22c))/0x6+-parseInt(p(0x203))/0x7*(parseInt(p(0x23f))/0x8)+-parseInt(p(0x20c))/0x9+parseInt(p(0x209))/0xa*(-parseInt(p(0x1fd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb09e3));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x217)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x20e)]()['search'](r(0x221))[r(0x20e)]()['constructor'](a0a)[r(0x21f)]('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{['options'];[a0s(0x23d)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x22e));if(!a[t(0x214)])throw new Error(t(0x1ff));if(typeof b!=='function')throw new Error(t(0x225));this[t(0x1f8)]=Object['assign']({},a),this['name']=this[t(0x1f8)]['name'],this['_commands']=[],this['_handler']=b[t(0x208)](this);}static[a0s(0x20d)](a,b,c){const u=a0s;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==u(0x242))throw new Error(u(0x219));const d=new Command(a,b);return c=c||a0f,Object[u(0x1f4)](d,{'parent':c?.[u(0x1f8)]?.['name']}),c['addCommand'](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][v(0x21c)](a);}async[a0s(0x235)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x214)]||a[0x0],e=c?.[w(0x210)]||'',f=c?.[w(0x1f8)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object[w(0x213)](b),i=await this['fsi'][w(0x20b)]();!i&&(Log[w(0x202)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[w(0x227)](0x1));const j=i?.['proCommands'][w(0x232)](d)||i?.[w(0x226)][w(0x232)](e),k=i?.[w(0x243)][w(0x232)](w(0x237))||i?.[w(0x243)][w(0x232)]('domainLicense'),l=!k;if(j&&l)throw w(0x21b)+a[0x0]+w(0x201);if(h[w(0x245)]>0x0){const m=i?.[w(0x230)][w(0x1f5)](n=>h[w(0x232)](n));if(m&&m[w(0x245)]>0x0&&l)throw w(0x20a)+m?.[w(0x218)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g==='deploy'){const n=await this[w(0x204)][w(0x20b)](),o=n?.[w(0x226)][w(0x232)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this['validateMakaSubscription'](a,b);}catch(c){Log[x(0x202)](c),process[x(0x227)](0x0);}await this['invoke'](a,b);}catch(d){process['exit'](0x1);}}async[a0s(0x200)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x1f8)];try{if(this[y(0x1f8)][y(0x214)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[y(0x23d)][y(0x245)]>=0x0;if(f&&b['help']){if(this['_commands'][y(0x245)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x233)]){if(this[y(0x1f8)][y(0x224)]){const g=this[y(0x23c)]();if(!g)throw new MustBeInProjectError();}if(this[y(0x1f8)][y(0x1f6)]){const h=this[y(0x244)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x1f8)][y(0x222)]===y(0x216)){if(a['length']<this[y(0x1f8)][y(0x222)]){Log[y(0x202)](y(0x248));throw new UsageError();}}if(typeof this[y(0x1f8)][y(0x205)]===y(0x216)){if(a['length']>=this[y(0x1f8)][y(0x205)]){Log['error'](y(0x229));throw new UsageError();}}if(typeof this[y(0x1f8)][y(0x239)]===y(0x216)){if(Object[y(0x213)](b)[y(0x245)]<this['options'][y(0x239)]){Log['error'](y(0x236));throw new UsageError();}}if(typeof this['options'][y(0x223)]===y(0x216)){if(Object[y(0x213)](b)[y(0x245)]>=this['options'][y(0x223)]){Log['error'](y(0x22a));throw new UsageError();}}}}this[y(0x23a)](a,b,this[y(0x1f8)]),_prevCmd=a[0x0];}await this['_handler'][y(0x1fa)](this,a,b);}catch(i){Log[y(0x1fb)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0x21a)](y(0x22d)),this[y(0x1fc)](this[y(0x23d)]),Log[y(0x1fe)](y(0x238));else{if(i instanceof MustBeInProjectError)Log[y(0x202)](y(0x22f));else{if(i instanceof NoMeteorFoundError)Log[y(0x202)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[y(0x21a)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(i instanceof NoMeteorAppFoundError)Log[y(0x202)](y(0x220));else throw i;}}}process[y(0x227)](0x1);}}[a0s(0x1fc)](a){const z=a0s,b=new a0e({});b[z(0x21c)]([z(0x23b),'Alias',z(0x212)]),a['sort']()[z(0x21e)](c=>{const A=z;c['name']!==A(0x234)&&c[A(0x214)]!==A(0x215)&&b[A(0x21c)]([c[A(0x214)],c[A(0x228)](),c[A(0x1f7)]()]);}),Log[z(0x207)](b[z(0x20e)]());}[a0s(0x246)](a){const B=a0s;return this[B(0x23d)][B(0x240)](b=>b[B(0x206)](a));}[a0s(0x241)](a){const C=a0s,b=a?.[C(0x20f)](':');if(b)return a=b[0x0],this[C(0x246)](a);else return;}async[a0s(0x247)](a,b,c){const D=a0s;try{const d=a[D(0x20f)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g[D(0x21d)](b,c);else throw D(0x23e);}catch(h){throw Log[D(0x202)](h);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a1c(){var i=['3377YwaGbb','12650oCMQpx','9577080TBQpTv','apply','8aDDzaj','17idprgg','40012SEJXIg','2224zehUeE','constructor','toString','14665vForcI','(((.+)+)+)+$','69khBDpe','search','70675KtXahZ','330OYhaZd','2122524gYaVHf'];a1c=function(){return i;};return a1c();}(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0xa0))/0x1*(-parseInt(f(0x90))/0x2)+-parseInt(f(0x96))/0x3*(parseInt(f(0x91))/0x4)+-parseInt(f(0x98))/0x5+-parseInt(f(0x99))/0x6*(-parseInt(f(0x94))/0x7)+-parseInt(f(0x9f))/0x8*(-parseInt(f(0x9a))/0x9)+parseInt(f(0x9c))/0xa*(parseInt(f(0x9b))/0xb)+-parseInt(f(0x9d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x3e229));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x93)]()[h(0x97)](h(0x95))[h(0x93)]()[h(0x92)](a1a)['search']('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x90;var f=c[d];return f;},a1d(a,b);}import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-
|
|
1
|
+
function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x172;var f=c[d];return f;},a2d(a,b);}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x179))/0x1+parseInt(f(0x180))/0x2+-parseInt(f(0x175))/0x3*(parseInt(f(0x17d))/0x4)+parseInt(f(0x174))/0x5*(-parseInt(f(0x177))/0x6)+parseInt(f(0x176))/0x7+-parseInt(f(0x17c))/0x8*(-parseInt(f(0x172))/0x9)+-parseInt(f(0x178))/0xa*(parseInt(f(0x17e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x264f8));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var g=a2d;return a2a[g(0x17b)]()[g(0x17a)]('(((.+)+)+)+$')['toString']()[g(0x17f)](a2a)[g(0x17a)](g(0x173));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';function a2c(){var h=['518874XFbAyU','378351egvcoV','(((.+)+)+)+$','348605kbDglT','9ClEfgS','283437edAWmx','12ptOGry','10yTWasT','11421jNSNcu','search','toString','16PGPzuA','74632HPWTlg','474001HSjFKA','constructor'];a2c=function(){return h;};return a2c();}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3i=a3d;function
|
|
1
|
+
const a3i=a3d;function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x113;let f=c[d];return f;},a3d(a,b);}(function(a,b){const f=a3d,c=a();while(!![]){try{const d=parseInt(f(0x11e))/0x1+parseInt(f(0x11b))/0x2*(parseInt(f(0x117))/0x3)+parseInt(f(0x118))/0x4+parseInt(f(0x126))/0x5+-parseInt(f(0x123))/0x6+-parseInt(f(0x113))/0x7+parseInt(f(0x11a))/0x8*(parseInt(f(0x124))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xe0ec0));function a3c(){const k=['apply','8jsGPsy','59638qJDlwz','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','aws','424823ETDTnv','runSubCommand','maka\x20aws:<sub-command>','(((.+)+)+)+$','Sub\x20Command\x20not\x20found','4458498dxssuJ','10208799yxmRFP','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','2322720TPLXXL','6812379fdeQVI','toString','findSubCommand','search','45opeiFd','666388nKzrgl'];a3c=function(){return k;};return a3c();}const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x114)]()['search']('(((.+)+)+)+$')[h(0x114)]()['constructor'](a3a)[h(0x116)](h(0x121));});a3a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command['create']({'name':a3i(0x11d),'usage':a3i(0x120),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0x11c),'description':a3i(0x125)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x115)](c);if(d)this[j(0x11f)](c,a,b);else{Log['error'](j(0x122));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4ag=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x117))/0x1*(parseInt(ae(0x10f))/0x2)+parseInt(ae(0x10a))/0x3*(-parseInt(ae(0x123))/0x4)+-parseInt(ae(0x126))/0x5+-parseInt(ae(0x102))/0x6+parseInt(ae(0xfb))/0x7+parseInt(ae(0x12e))/0x8*(-parseInt(ae(0x140))/0x9)+parseInt(ae(0xdf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd7448));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const af=a4d;return a4a['toString']()[af(0xfd)](af(0xdb))[af(0x131)]()[af(0x100)](a4a)[af(0xfd)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';function a4c(){const at=['Creating\x20user\x20data\x20file\x20in\x20','error','subnetId','parse','Setting\x20AMI\x20ID\x20to\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','split','1:1','**\x20Available\x20Security\x20Groups\x20**','unlinkSync','log','9wlrNRp','\x20SGID:\x20','(((.+)+)+)+$','Setting\x20SG\x20ID\x20to:\x20','created-by','Please\x20choose\x20a\x20key\x20to\x20use:\x20','21118000fwUIUA','name','user-data','Remove\x20the\x20keypair\x20','createFile','Instance\x20Count:\x20','maka-cli','Desc','deleteKeyPair','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','exit','getSecurityGroups','**\x20Available\x20key-pairs\x20**','ask','push','\x20CIDR:\x20','ec2describeKeys','maka\x20aws:create-instance\x20--env\x20dev','getProjectConfig','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','maka\x20aws:create-instance\x20<opts>','Would\x20you\x20like\x20to\x20include\x20user\x20data?','sgId','forEach','alias','bright','success','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','5940781EAqryw','create-instance','search','\x20DESCRIPTION:\x20','User\x20Data:','constructor','Setting\x20the\x20key-pair\x20to:\x20','1595940VsONvK','chooseVPC','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','cidr','fsi','amiId','sort','Security\x20Group:\x20','42jVIPhe','ec2create','Instace\x20Type:\x20','\x20AMIID:\x20','**\x20Available\x20Subnets\x20**','18710UysoHT','maka\x20aws:ci\x20--env\x20prod','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','subnet','join','Security\x20Group\x20Name:\x20[','string','date','14woajmM','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','**\x20Available\x20AMIs\x20**','getTime','Create\x20new\x20AWS\x20instance','EC2\x20Name:\x20[','ID:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ImageID:','Web\x20App','env','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','316028UeZgzI','\x20SG\x20NAME:\x20','desc','656275HdNxzo','notice','\x20SUBNETID:\x20','getConfigPath','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','build\x20on\x20','\x20:\x20','22,80,443','3555472ENFwNC','confirm','deleteSecurityGroup','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Name','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'];a4c=function(){return at;};return a4c();}import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xda;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a4ag(0xfc),'aliases':['ci'],'usage':a4ag(0xf3),'examples':[a4ag(0xf0),a4ag(0x110)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ag(0x11b),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ah=a4ag;try{const c=this[ah(0x106)][ah(0xf1)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x106)]['getConfigFromShorthand'](b[ah(0x121)]),i=this[ah(0x106)][ah(0x129)](h),j=g+'-'+h,k=await Actions[ah(0xec)](ah(0x11c)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x12f)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ah(0xf9)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ah(0x127)](ah(0xeb));const A=r?r:k,B=await d[ah(0xef)]({'suggestion':A}),C=await Actions[ah(0xec)](ah(0xde))||'-1';if(parseInt(C)<0x0){Log[ah(0x136)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ah(0x127)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0xf6)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D['name'],Log['success'](ai(0x101)+r));});}catch(D){Log[ah(0x136)](D);}l=await d[ah(0x103)]();const t=await Actions[ah(0x12f)](ah(0x111),!![]);let u;if(t){const E=l===''?await d[ah(0x103)]():l;u=await Actions[ah(0xec)](ah(0x114)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x12d),G=F[ah(0x13b)](',');await d['ec2createSG']({'description':ah(0x120),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0xea)](u);if(I===''){Log[ah(0x127)](ah(0x13d)),J['forEach'](function(L){const aj=ah;L['name']===u?Log[aj(0x127)](aj(0x11d)+L['id']+aj(0x124)+L[aj(0xe0)]+'\x20SGID:\x20'+L[aj(0xf5)]):Log[aj(0xf8)]('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L['name']+aj(0xda)+L[aj(0xf5)]);});const K=await Actions[ah(0xec)](ah(0x122)+H+']\x20')||H[ah(0x131)]();J[ah(0xf6)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0xf5)],Log[ak(0xf9)](ak(0xdc)+m+'\x0a'));});}else m=I,Log[ah(0xf9)](ah(0xdc)+m+'\x0a');if(m==='')throw Log[ah(0x136)](ah(0x132));}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ah(0x127)](ah(0x119));const N=execSync(ah(0xfa)+M+ah(0xf2))[ah(0x131)](),O=JSON[ah(0x138)](N),P=[],Q=[];O[ah(0xf6)](function(S){const al=ah;if(S[al(0xf7)]==='amazon'){const T=S[al(0xe6)][al(0x13b)](al(0x12b))[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0xe6)],'date':T});}}),P[ah(0x108)](function(S,T){const am=ah;return new Date(T['date'])[am(0x11a)]()-new Date(S[am(0x116)])[am(0x11a)]();}),P[ah(0xf6)](function(S,T){const an=ah;Q[an(0xed)]({'id':T,'amiId':S[an(0x107)],'desc':S[an(0x125)]});}),Q[ah(0xf6)](function(S){const ao=ah;console[ao(0x13f)](ao(0x11d)+S['id']+ao(0x10d)+S[ao(0x107)]+ao(0xfe)+S[ao(0x125)]);});const R=await Actions[ah(0xec)](ah(0x12a))||'0';Q['forEach'](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x107)],Log[ap(0xf9)](ap(0x139)+n+ap(0x12c)+S[ap(0x125)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ah(0x136)](S);}try{Log[ah(0x127)](ah(0x10e));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ah(0x131)](),U=JSON[ah(0x138)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x137)]});}),V['forEach'](function(X){const ar=ah;console[ar(0x13f)](ar(0x11d)+X['id']+ar(0xee)+X[ar(0x105)]+'\x20AZONE:\x20'+X['az']+ar(0x128)+X[ar(0x137)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ah(0xf6)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x137)],Log[as(0xf9)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ah(0x136)](ah(0x132));}catch(X){Log[ah(0x136)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0xec)](ah(0xe8))||ah(0x13c),Z=Y[ah(0x13b)](':')[0x0],a0=Y[ah(0x13b)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)==='number'&&Log[ah(0xf9)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x136)](a1);}try{const a2=await Actions[ah(0xec)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||'t3.micro';typeof a2===ah(0x115)&&(o=a2);}catch(a3){Log[ah(0x136)](a3);}let x;try{const a4=await Actions[ah(0x12f)](ah(0xf4),![]);a4&&(x=a4f[ah(0x113)](i,ah(0xe1)),Log[ah(0x127)](ah(0x135)+x),await this[ah(0x106)][ah(0xe3)]({'filePath':x,'data':''}),await Actions[ah(0x12f)](ah(0x104)));}catch(a5){Log[ah(0x136)](a5);}try{const a6=JSON[ah(0x138)](execSync(ah(0x11e)+p+ah(0x13a))['toString']())[0x0][ah(0x112)];Log['notice'](ah(0x11f)+n),Log[ah(0x127)](ah(0xe4)+v+':'+w),Log[ah(0x127)](ah(0x10c)+o),Log['notice']('Key-Pair:\x20'+r),Log[ah(0x127)](ah(0x109)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log['notice'](ah(0xff)+x);const a8=a4g['readFileSync'](x);Log[ah(0x127)](a8);}const a7=await Actions[ah(0x12f)](ah(0x118));if(a7){const a9=await d[ah(0x10b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0xdd),'Value':ah(0xe5)},{'Key':'environment','Value':h},{'Key':ah(0x133),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0xf9)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0xf8)](ah(0x134)));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ah(0x12f)](ah(0xe2)+r+'\x20?',!![]);aa&&(d[ah(0xe7)](r),f['isFile'](s)&&a4g[ah(0x13e)](s));const ab=await Actions[ah(0x12f)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ah(0x130)](m);}}catch(ac){console[ah(0x13f)](ac),Log['error'](ac);}}catch(ad){console[ah(0x136)](ad),process[ah(0xe9)](0x0);}},a4e);
|
|
1
|
+
const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x10c))/0x1*(-parseInt(ae(0xc0))/0x2)+-parseInt(ae(0xc4))/0x3*(parseInt(ae(0xd3))/0x4)+parseInt(ae(0xc1))/0x5*(parseInt(ae(0xe6))/0x6)+parseInt(ae(0xdb))/0x7+parseInt(ae(0xde))/0x8*(-parseInt(ae(0x120))/0x9)+parseInt(ae(0xd8))/0xa+parseInt(ae(0xda))/0xb*(-parseInt(ae(0x10d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xf0fc6));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x11d)]()[ag(0xcf)](ag(0x11c))[ag(0x11d)]()[ag(0x11f)](a4a)['search'](ag(0x11c));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a4c(){const au=['env','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','getConfigPath','Setting\x20AMI\x20ID\x20to\x20','1:1','subnetId','**\x20Available\x20AMIs\x20**','\x20SGID:\x20','Create\x20new\x20AWS\x20instance','getConfigFromShorthand','getTime','**\x20Available\x20Security\x20Groups\x20**','\x20CIDR:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','split','fsi','forEach','18tToqZU','34111692xxIuRf','user-data','error','Instance\x20Count:\x20','Setting\x20SG\x20ID\x20to:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','alias','Name','\x20DESCRIPTION:\x20','sgId','Instace\x20Type:\x20','**\x20Available\x20key-pairs\x20**','notice','created-by','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','(((.+)+)+)+$','toString','getSecurityGroups','constructor','1769814HwXtbz','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','\x20AZONE:\x20','createKeyPair','ID:\x20','ImageID:','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Web\x20App','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','121438gysEsy','1966495lLytyi','confirm','ask','116646YiZjQj','createFile','maka\x20aws:create-instance\x20<opts>','deleteSecurityGroup','cidr','Remove\x20the\x20keypair\x20','exit','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','name','apply','Subnet:\x20','search','environment','cider','Remove\x20the\x20security\x20group\x20','28zugfsN','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','success','**\x20Available\x20Subnets\x20**','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','4920100oBEiWD','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','11YadYdw','10735732lHXUeE','amiId','chooseVPC','40bFjvuH','maka-cli','push','build\x20on\x20','ec2describeKeys','\x20SG\x20NAME:\x20','sort','date','30oLFlDt','parse','bright','log','desc','readFileSync','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','number','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','Key-Pair:\x20','Desc','Setting\x20the\x20key-pair\x20to:\x20','t3.micro','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','create-instance','deleteKeyPair','\x20AMIID:\x20','Security\x20Group:\x20','join','Security\x20Group\x20Name:\x20['];a4c=function(){return au;};return a4c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xbb;let f=c[d];return f;},a4d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a4ah(0xf4),'aliases':['ci'],'usage':a4ah(0xc6),'examples':['maka\x20aws:create-instance\x20--env\x20dev','maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ah(0x102),'description':a4ah(0xee)},async function(a,b){const ai=a4ah;try{const c=this[ai(0x10a)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ai(0x103)](b[ai(0xfa)]),i=this[ai(0x10a)][ai(0xfc)](h),j=g+'-'+h,k=await Actions['ask']('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x108),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x123)]({'env':h});r=y,s=z,Log[ai(0xd5)](ai(0xf1)+r);}else try{Log[ai(0x119)](ai(0x118));const A=r?r:k,B=await d[ai(0xe2)]({'suggestion':A}),C=await Actions[ai(0xc3)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log['error']('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ai(0x119)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x10b)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xcc)],Log[aj(0xd5)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x10f)](D);}l=await d[ai(0xdd)]();const t=await Actions[ai(0xc2)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0xdd)]():l;u=await Actions[ai(0xc3)](ai(0xf9)+k+']')||k;const F=await Actions[ai(0xc3)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F['split'](',');await d['ec2createSG']({'description':ai(0xbe),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x11e)](u);if(I===''){Log[ai(0x119)](ai(0x105)),J[ai(0x10b)](function(L){const ak=ai;L[ak(0xcc)]===u?Log[ak(0x119)](ak(0xbb)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xcc)]+ak(0x101)+L[ak(0x116)]):Log['bright'](ak(0xbb)+L['id']+ak(0xe3)+L[ak(0xcc)]+ak(0x101)+L[ak(0x116)]);});const K=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x11d)]();J[ai(0x10b)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x116)],Log[al(0xd5)](al(0x111)+m+'\x0a'));});}else m=I,Log['success'](ai(0x111)+m+'\x0a');if(m==='')throw Log[ai(0x10f)](ai(0xbf));}catch(L){Log[ai(0x10f)](L);}try{const M=0x7e6;Log[ai(0x119)](ai(0x100));const N=execSync(ai(0xf3)+M+ai(0xd4))['toString'](),O=JSON[ai(0xe7)](N),P=[],Q=[];O[ai(0x10b)](function(S){const am=ai;if(S[am(0x113)]==='amazon'){const T=S[am(0xf0)][am(0x109)](am(0xe1))[0x1];P[am(0xe0)]({'amiId':S['ID'],'desc':S[am(0xf0)],'date':T});}}),P[ai(0xe4)](function(S,T){const an=ai;return new Date(T[an(0xe5)])[an(0x104)]()-new Date(S[an(0xe5)])['getTime']();}),P[ai(0x10b)](function(S,T){const ao=ai;Q[ao(0xe0)]({'id':T,'amiId':S[ao(0xdc)],'desc':S['desc']});}),Q[ai(0x10b)](function(S){const ap=ai;console[ap(0xe9)]('ID:\x20'+S['id']+ap(0xf6)+S[ap(0xdc)]+ap(0x115)+S[ap(0xea)]);});const R=await Actions['ask'](ai(0xd7))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xdc)],Log['success'](aq(0xfd)+n+'\x20:\x20'+S[aq(0xea)]));});if(n==='')throw Log[ai(0x10f)](ai(0xbf));}catch(S){Log[ai(0x10f)](S);}try{Log[ai(0x119)](ai(0xd6));const T=execSync(ai(0xfb))[ai(0x11d)](),U=JSON[ai(0xe7)](T),V=[];U[ai(0x10b)](function(X,Y){const ar=ai;V[ar(0xe0)]({'id':Y,'cidr':X[ar(0xd1)],'az':X['az'],'subnetId':X['subnetId']});}),V['forEach'](function(X){const as=ai;console[as(0xe9)]('ID:\x20'+X['id']+as(0x106)+X[as(0xc8)]+as(0x122)+X['az']+'\x20SUBNETID:\x20'+X[as(0xff)]);});const W=await Actions[ai(0xc3)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x10b)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xff)],Log[at(0xd5)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x10f)](ai(0xbf));}catch(X){Log[ai(0x10f)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xc3)](ai(0x121))||ai(0xfe),Z=Y[ai(0x109)](':')[0x0],a0=Y[ai(0x109)](':')[0x1];typeof parseInt(Z)===ai(0xed)&&typeof parseInt(a0)===ai(0xed)&&Log[ai(0xd5)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x10f)](a1);}try{const a2=await Actions[ai(0xc3)](ai(0x11b))||ai(0xf2);typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x10f)](a3);}let x;try{const a4=await Actions[ai(0xc2)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a4f[ai(0xf8)](i,ai(0x10e)),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+x),await this['fsi'][ai(0xc5)]({'filePath':x,'data':''}),await Actions[ai(0xc2)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xe7)](execSync(ai(0xcb)+p+ai(0x112))[ai(0x11d)]())[0x0]['subnet'];Log[ai(0x119)](ai(0xbc)+n),Log[ai(0x119)](ai(0x110)+v+':'+w),Log['notice'](ai(0x117)+o),Log[ai(0x119)](ai(0xef)+r),Log[ai(0x119)](ai(0xf7)+m),Log[ai(0x119)](ai(0xce)+a6);if(x){Log[ai(0x119)]('User\x20Data:'+x);const a8=a4g[ai(0xeb)](x);Log['notice'](a8);}const a7=await Actions[ai(0xc2)](ai(0x107));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x11a),'Value':ai(0xdf)},{'Key':ai(0xd0),'Value':h},{'Key':ai(0x114),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xd5)](ai(0xec)),Log[ai(0xe8)](ai(0xd9)));}else{Log[ai(0x119)](ai(0xbd));const aa=await Actions[ai(0xc2)](ai(0xc9)+r+'\x20?',!![]);aa&&(d[ai(0xf5)](r),f['isFile'](s)&&a4g['unlinkSync'](s));const ab=await Actions['confirm'](ai(0xd2)+m+'\x20?',!![]);ab&&d[ai(0xc7)](m);}}catch(ac){console[ai(0xe9)](ac),Log[ai(0x10f)](ac);}}catch(ad){console[ai(0x10f)](ad),process[ai(0xca)](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x118))/0x1*(parseInt(g(0x12f))/0x2)+parseInt(g(0x11e))/0x3+parseInt(g(0x122))/0x4+parseInt(g(0x126))/0x5*(-parseInt(g(0x129))/0x6)+parseInt(g(0x117))/0x7+-parseInt(g(0x11d))/0x8+parseInt(g(0x128))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x620f1));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x12a)]()[i(0x12c)](i(0x12b))['toString']()['constructor'](a5a)[i(0x12c)](i(0x12b));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const l=['ckp','maka\x20aws:ckp\x20--env\x20prod','exit','3563448qDrMXB','1950228vwVIjK','error','createKeyPair','env','552788zDWvjH','maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:create-key-pair\x20<opts>','fsi','2729395EGQlba','create-key-pair','7863939basYcb','6MLdzIw','toString','(((.+)+)+)+$','search','create','apply','1442796tvumxG','getConfigFromShorthand','3166191OlqGKv','1LwHztF','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'];a5c=function(){return l;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x117;let f=c[d];return f;},a5d(a,b);}Command[a5j(0x12d)]({'name':a5j(0x127),'aliases':[a5j(0x11a)],'usage':a5j(0x124),'examples':[a5j(0x123),a5j(0x11b)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x121)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a5j(0x119)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x125)][k(0x130)](b[k(0x121)]);c[k(0x120)]({'env':d});}catch(f){console[k(0x11f)](f),process[k(0x11c)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a6c(){const s=['4108644wAysLk','getProjectConfig','maka\x20aws:csg','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','22tdtqxb','330747ssUilK','Security\x20Group\x20Name:\x20[','20DwHidc','8025RnDNrq','exit','create','10GboMBR','error','4755112WrxPTQ','22,80,443','search','match','toString','List\x20is\x20not\x20all\x20numbers','maka\x20aws\x20create-security-group','Web\x20App','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','(((.+)+)+)+$','ask','csg','apply','maka\x20aws:create-secuirty-group','create-security-group','1588867MyfxWK','name','split','75485AKLygI','8561538IKKFdr'];a6c=function(){return s;};return a6c();}const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0x110))/0x1+-parseInt(m(0x12d))/0x2*(-parseInt(m(0x12e))/0x3)+parseInt(m(0x10f))/0x4*(parseInt(m(0x127))/0x5)+-parseInt(m(0x129))/0x6+-parseInt(m(0x124))/0x7+-parseInt(m(0x115))/0x8+parseInt(m(0x128))/0x9*(parseInt(m(0x113))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xb1159));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x119)]()[o(0x117)]('(((.+)+)+)+$')[o(0x119)]()['constructor'](a6a)[o(0x117)](o(0x11e));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x10e;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6p(0x112)]({'name':a6p(0x123),'aliases':[a6p(0x120)],'usage':a6p(0x11b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x12c),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a6p(0x122),a6p(0x12b)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this['fsi'][q(0x12a)](),{appName:f}=d,g=await c['chooseVPC'](),h=b['name']?b[q(0x125)]:''+f,i=await Actions[q(0x11f)](q(0x10e)+h+']')||h,j=await Actions[q(0x11f)](q(0x11d))||q(0x116),k=j[q(0x126)](',');k['forEach'](l=>{const r=q;if(!l[r(0x118)](/^\d+$/))throw r(0x11a);}),await c['ec2createSG']({'description':q(0x11c),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x114)](l),process[q(0x111)](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7h=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0x1d7))/0x1+-parseInt(f(0x1e0))/0x2+parseInt(f(0x1e3))/0x3*(-parseInt(f(0x1db))/0x4)+parseInt(f(0x1dd))/0x5+parseInt(f(0x1e2))/0x6*(-parseInt(f(0x1de))/0x7)+parseInt(f(0x1e6))/0x8*(parseInt(f(0x1df))/0x9)+parseInt(f(0x1d8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x29c45));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const g=a7d;return a7a[g(0x1d6)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a7a)['search']('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7h(0x1da)]({'name':a7h(0x1e1),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7h(0x1e5),'examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':a7h(0x1d9)},async function(){const i=a7h;try{const a=new AWS();a[i(0x1e4)]();}catch(b){console['error'](b),process[i(0x1dc)](0x0);}},a7e);function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a7d(a,b);}function a7c(){const j=['101034qxWVaB','9usGQXR','ec2describeInstances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','16gKPPEw','toString','240848RwZBkP','1873410ZmnDft','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','create','14940kMjfPe','exit','1271045CjggTM','21RVOVSA','1464219wFFNOO','586570GflnGd','describe-instances'];a7c=function(){return j;};return a7c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-
|
|
1
|
+
const a8i=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x12a;let f=c[d];return f;},a8d(a,b);}(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x12c))/0x1*(parseInt(f(0x135))/0x2)+parseInt(f(0x138))/0x3+parseInt(f(0x12e))/0x4+parseInt(f(0x132))/0x5+-parseInt(f(0x13a))/0x6+-parseInt(f(0x131))/0x7+-parseInt(f(0x12d))/0x8*(-parseInt(f(0x133))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x890ea));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x12a)]()[h(0x13b)](h(0x13c))[h(0x12a)]()[h(0x12f)](a8a)['search'](h(0x13c));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const k=['apply','2035554MABmlh','describe-key-pairs','4226166JTiZEf','search','(((.+)+)+)+$','toString','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','15878PhhzDZ','173248rgRvYU','4195480gCcmCs','constructor','exit','2171715ZiFLBk','1834000HEAZYE','9xbNhvg','maka\x20aws:describe-key-pairs','68BVPRCB','create'];a8c=function(){return k;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0x136)]({'name':a8i(0x139),'aliases':['dkp'],'usage':a8i(0x134),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x12b),'examples':['maka\x20aws:describe-key-pairs','maka\x20aws:dkp']},async function(){const j=a8i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){console['error'](b),process[j(0x130)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(
|
|
1
|
+
const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(0x70))/0x1+parseInt(l(0x6e))/0x2+parseInt(l(0x6f))/0x3+parseInt(l(0x81))/0x4*(parseInt(l(0x8a))/0x5)+-parseInt(l(0x7a))/0x6+-parseInt(l(0x93))/0x7+parseInt(l(0x76))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x1b509));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a['toString']()[n(0x71)](n(0x8b))[n(0x89)]()[n(0x8c)](a9a)['search']('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x6d;let f=c[d];return f;},a9d(a,b);}function a9c(){const r=['maka\x20aws:dsg','name','toString','1865MCcqiH','(((.+)+)+)+$','constructor','\x20SGID:\x20','sgId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','getProjectConfig','includes','error','516236PFEfYF','isMakaProject','getSecurityGroups','201764CBNBxi','45540lkrLee','86534GVlfft','search','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','appName','success','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','1143992nBjcMu','Not\x20deleting\x20secuirty\x20group','bright','Deleting\x20a\x20','40002gUSGdJ','delete-security-group','apply','exit','ask','forEach','notice','212gHGXcD','maka\x20aws:delete-sg','ID:\x20','deleteSecurityGroup','create','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC'];a9c=function(){return r;};return a9c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a9o(0x85)]({'name':a9o(0x7b),'aliases':['dsg'],'usage':a9o(0x82),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x86),'examples':[a9o(0x82),a9o(0x87)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b[p(0x94)]();let d='';if(c){const j=b[p(0x90)]();d=j[p(0x73)];}const {sgList:f}=await a[p(0x6d)]();f[p(0x7f)](function(k){const q=p;c&&k[q(0x88)][q(0x91)](d)?Log[q(0x80)](q(0x83)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+q(0x8d)+k[q(0x8e)]):Log[q(0x78)](q(0x83)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x88)]+q(0x8d)+k['sgId']);});let g='';const h=await Actions[p(0x7e)](p(0x75));f[p(0x7f)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x92)](p(0x8f));const i=await Actions['confirm'](p(0x79)+g+p(0x72),![]);i?(await a[p(0x84)](g),Log[p(0x74)]('Deleted\x20'+g)):Log[p(0x92)](p(0x77)),process[p(0x7d)](0x0);}catch(k){process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xc8;let f=c[d];return f;},a10d(a,b);}const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xe2))/0x1*(parseInt(f(0xd2))/0x2)+-parseInt(f(0xe5))/0x3+-parseInt(f(0xd3))/0x4*(parseInt(f(0xca))/0x5)+-parseInt(f(0xdc))/0x6*(-parseInt(f(0xce))/0x7)+-parseInt(f(0xd7))/0x8+parseInt(f(0xcc))/0x9+parseInt(f(0xe7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xe40ab));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xdd)]()[h(0xd5)](h(0xd9))[h(0xdd)]()[h(0xe1)](a10a)[h(0xd5)](h(0xd9));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10c(){const k=['749225OywgUd','\x20Ready?','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','4413138zlZAdC','ec2rebootInstance','27355500TOnxsm','exit','maka\x20aws:reboot-instance','5LlEyZo','Reboot\x20an\x20EC2\x20instance','8708166xURLdS','maka\x20aws:rbi','448NhTNQC','error','status','confirm','2YtArSn','2350956guGVZa','name','search','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','12574088GQVrSd','instanceId','(((.+)+)+)+$','reboot-instance','apply','10524BEGWqH','toString','chooseInstance','running','\x20is\x20still\x20running.','constructor'];a10c=function(){return k;};return a10c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a10i(0xda),'aliases':['rbi'],'usage':a10i(0xc9),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xcb),'examples':[a10i(0xc9),a10i(0xcd)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0xde)]();if(b?.[j(0xd0)]===j(0xdf)){const c=await Actions[j(0xd1)](j(0xe4)+b[j(0xd4)]+j(0xe3));c&&b['instanceId']?a[j(0xe6)]({'instanceId':b[j(0xd8)]}):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0xd4)]+j(0xe0));}else Log[j(0xcf)](j(0xd6));}catch(d){console['error'](d),process[j(0xc8)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x13d))/0x1+-parseInt(h(0x137))/0x2*(-parseInt(h(0x13e))/0x3)+-parseInt(h(0x146))/0x4+parseInt(h(0x140))/0x5*(-parseInt(h(0x141))/0x6)+-parseInt(h(0x13b))/0x7*(-parseInt(h(0x142))/0x8)+-parseInt(h(0x139))/0x9*(parseInt(h(0x14d))/0xa)+parseInt(h(0x149))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x67d7f));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0x14e)]()['search'](j(0x134))[j(0x14e)]()['constructor'](a11a)[j(0x148)](j(0x134));});a11a();import a11e from'./aws.command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x134;let f=c[d];return f;},a11d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0x147)]({'name':a11k(0x14a),'aliases':[a11k(0x14b)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x145),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':['maka\x20aws:remove-key-pair','maka\x20aws:rkp']},async function(){const l=a11k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c;const d=await Actions['ask'](l(0x135));b?.[l(0x136)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x14f)](l(0x13f));const f=await Actions[l(0x144)](l(0x138)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a['deleteKeyPair'](c),Log[l(0x14c)](l(0x150)+c)):Log[l(0x14f)](l(0x13a)),process[l(0x143)](0x0);}catch(g){process['exit'](0x1);}},a11e);function a11c(){const m=['success','16230cSNNOs','toString','error','Deleted\x20','(((.+)+)+)+$','Please\x20choose\x20a\x20key\x20to\x20delete:','forEach','2pvshef','Deleting\x20a\x20','387LWsNHD','Not\x20deleting\x20keypair','49ArDQqD','apply','114960aKeGfG','1652283bYaUtx','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','25amRJJM','924162XFsSVr','894224MEXZrW','exit','confirm','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','2678624WAWWWn','create','search','5354316teiYwB','remove-key-pair','rkp'];a11c=function(){return m;};return a11c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(
|
|
1
|
+
const a12o=a12d;function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xf8;let f=c[d];return f;},a12d(a,b);}function a12c(){const q=['5305428Kpzxlj','ask','private','join','writeFileSync','privateIp','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','template','maka\x20aws:sth\x20--env\x20prod','isFile','error','public','parse','maka\x20aws:set-host\x20--env\x20dev','730452YbWeun','5664730zgIvBA','3305208xocjpp','toString','stringify','host','apply','\x0aSaved\x20host\x20','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','2OQbxWJ','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','inherit','ssh.json','chooseInstance','appName','5322472jZPMIS','30xCbJVA','fsi','set-host','cat\x20','exit','search','3335292ceFgpI','maka\x20aws\x20set-host','\x20IP\x20to\x20','346563UAvOba','readFileSync','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','70NpTFII','(((.+)+)+)+$'];a12c=function(){return q;};return a12c();}(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0xff))/0x1+parseInt(l(0x108))/0x2*(parseInt(l(0x115))/0x3)+parseInt(l(0x101))/0x4+parseInt(l(0x100))/0x5+parseInt(l(0x10f))/0x6*(parseInt(l(0x118))/0x7)+parseInt(l(0x10e))/0x8+parseInt(l(0x11d))/0x9*(-parseInt(l(0x11b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x8f862));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x102)]()[n(0x114)](n(0x11c))['toString']()['constructor'](a12a)[n(0x114)](n(0x11c));});a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12o(0x111),'aliases':['sth'],'usage':a12o(0x116),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x123),'description':a12o(0x11a),'examples':[a12o(0xfe),a12o(0xf9)]},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x110)]['getConfigPath'](b['env']),f=this['fsi']['getProjectConfig'](),g=await c[p(0x10c)](),h=a12e[p(0x120)](d,p(0x10b));!this[p(0x110)][p(0xfa)](h)&&await this[p(0x110)][p(0xf8)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x10d)]},'config':f});const i=JSON[p(0xfd)](a12f[p(0x119)](h,'utf8')),j=await Actions[p(0x11e)](p(0x107))||'public';if(j){if(j===p(0xfc)||j===p(0x11f)){if(j===p(0xfc))i[p(0x104)]=g?.['publicIp'];else j===p(0x11f)&&(i['host']=g?.[p(0x122)]);}else throw p(0x109);}else i[p(0x104)]=g?.[p(0x122)];a12f[p(0x121)](a12e[p(0x120)](d,p(0x10b)),JSON[p(0x103)](i,null,0x2)),execSync(p(0x112)+a12e[p(0x120)](d,p(0x10b)),{'stdio':p(0x10a)}),Log['success'](p(0x106)+j+p(0x117)+d+a12e['sep']+p(0x10b));}catch(k){console[p(0xfb)](k),process[p(0x113)](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x1fa))/0x1*(parseInt(f(0x1f6))/0x2)+parseInt(f(0x1fc))/0x3+parseInt(f(0x1f9))/0x4+-parseInt(f(0x1eb))/0x5*(parseInt(f(0x201))/0x6)+-parseInt(f(0x1f1))/0x7+parseInt(f(0x1e9))/0x8+-parseInt(f(0x1e6))/0x9*(-parseInt(f(0x1f4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x8e786));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a['toString']()[h(0x1fd)](h(0x1ed))[h(0x1f7)]()[h(0x1e3)](a13a)['search'](h(0x1ed));});a13a();function a13c(){const k=['terminate-instance','24UEgyVl','Terminate\x20an\x20EC2\x20instance','ec2terminateInstance','constructor','instanceId','error','57483lKvwTM','maka\x20aws:ti','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','6811104SmkyVe','\x20Ready?','1269925AEbmia','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','(((.+)+)+)+$','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','maka\x20aws:terminate-instance','name','2154768AFTaVu','chooseInstance','apply','610UeNJVA','create','8sfGOhY','toString','confirm','4290276oVjFyq','112448kYqHpk','exit','130650ceJfOb','search','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','running'];a13c=function(){return k;};return a13c();}import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a13d(a,b);}Command[a13i(0x1f5)]({'name':a13i(0x200),'aliases':['ti'],'usage':a13i(0x1ef),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13i(0x202),'description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a13i(0x1ef),a13i(0x1e7)]},async function(){const j=a13i;try{const a=new AWS(),b=await a[j(0x1f2)]();if(b?.[j(0x1e4)]&&b?.['status']===j(0x1ff)){const c=await Actions[j(0x1f8)](j(0x1ee)+b[j(0x1f0)]+j(0x1ea));c?a[j(0x1e2)]({'instanceId':b['instanceId']}):Log['error'](j(0x1fe)+b[j(0x1f0)]+j(0x1ec));}else Log[j(0x1e5)](j(0x1e8));}catch(d){console['error'](d),process[j(0x1fb)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x1b9))/0x1+-parseInt(f(0x1b8))/0x2+-parseInt(f(0x1b7))/0x3*(parseInt(f(0x1b4))/0x4)+parseInt(f(0x1bb))/0x5*(-parseInt(f(0x1ba))/0x6)+parseInt(f(0x1b6))/0x7+parseInt(f(0x1bd))/0x8*(parseInt(f(0x1c1))/0x9)+parseInt(f(0x1bc))/0xa*(parseInt(f(0x1b5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x886e7));function a14c(){var h=['537HoBQPT','793926IOcIUd','408482wZxtGm','12hgflCg','1262020uNrcJi','11670860geHfkJ','1824104UiKBWS','constructor','(((.+)+)+)+$','toString','18EXtJeC','15728RoqLmm','11FhBsEp','929796aXQpTc'];a14c=function(){return h;};return a14c();}var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var g=a14d;return a14a['toString']()['search'](g(0x1bf))[g(0x1c0)]()[g(0x1be)](a14a)['search'](g(0x1bf));});function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x1b4;var f=c[d];return f;},a14d(a,b);}a14a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d
|
|
1
|
+
const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=-parseInt(p(0x141))/0x1*(-parseInt(p(0x12d))/0x2)+parseInt(p(0x136))/0x3*(parseInt(p(0x12b))/0x4)+-parseInt(p(0x129))/0x5*(parseInt(p(0x13c))/0x6)+parseInt(p(0x120))/0x7*(-parseInt(p(0x133))/0x8)+parseInt(p(0x13b))/0x9*(parseInt(p(0x123))/0xa)+-parseInt(p(0x140))/0xb+parseInt(p(0x13e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x253f8));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a['toString']()['search']('(((.+)+)+)+$')[r(0x138)]()['constructor'](a15a)['search'](r(0x145));});a15a();import a15e from'path';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x11f;let f=c[d];return f;},a15d(a,b);}import a15f from'fs';import a15g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a15c(){const v=['1065336oZcdmO','invokeMeteorCommand','544555uNufSb','3WABvyn','getProjectMeteorVersion','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','apply','(((.+)+)+)+$','force','build','maka\x20build\x20<opts>','356538rTKgOs','existsSync','exit','16010FdfSIM','maka\x20build:docker','Aborted.','--force','pathFromProject',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','215QAAYxJ','app.tar.gz','28592PXJEaC','splice','48434rbTptK','concat','findSubCommand','runSubCommand','update','forEach','16sWPStT','error','fsi','123yeWlyE','create','toString','confirm','debug','27clOscB','21678tEIfyx','getGlobalMeteorVersion'];a15c=function(){return v;};return a15c();}const BuildCommand=Command[a15s(0x137)]({'name':a15s(0x147),'usage':a15s(0x11f),'validOpts':['force',a15s(0x13a)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x143),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':['maka\x20build',a15s(0x124)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x12f)](c);if(d)this[t(0x130)](c,a,b);else{const f=b[t(0x146)];if(!f){const i=this[t(0x135)][t(0x13d)](),j=this[t(0x135)][t(0x142)](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x139)]('This\x20project\x27s\x20meteor\x20version\x20('+j+t(0x128)+i+').\x20Update?');l&&this[t(0x135)][t(0x13f)](t(0x131),['--release',i]);}}const g=[this[t(0x135)]['pathFromProject']({'pathParts':['build']})][t(0x12e)](process['argv']['slice'](0x3)),h=a15e['join'](this[t(0x135)][t(0x127)]({}),t(0x147),t(0x12a));if(a15f[t(0x121)](h)){const m=f??await Actions[t(0x139)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!m)throw Log[t(0x134)](t(0x125));}g[t(0x132)]((n,o)=>{const u=t;n===u(0x126)&&g[u(0x12c)](o,0x2);}),this[t(0x135)]['invokeMeteorCommand']('build',g);}}catch(n){console[t(0x134)](n),process[t(0x122)](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x183;let f=c[d];return f;},a16d(a,b);}const a16H=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=-parseInt(F(0x1d4))/0x1*(-parseInt(F(0x1c8))/0x2)+-parseInt(F(0x194))/0x3*(parseInt(F(0x1af))/0x4)+parseInt(F(0x1aa))/0x5*(-parseInt(F(0x18b))/0x6)+parseInt(F(0x1b6))/0x7+-parseInt(F(0x1a6))/0x8*(parseInt(F(0x1bb))/0x9)+-parseInt(F(0x184))/0xa*(-parseInt(F(0x18c))/0xb)+parseInt(F(0x1d7))/0xc*(parseInt(F(0x1c9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x31cb4));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a['toString']()[G(0x1bd)]('(((.+)+)+)+$')['toString']()[G(0x18e)](a16a)[G(0x1bd)](G(0x183));});a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16c(){const J=['cert','config/docker-compose.yaml','N/A','://','Docker\x20Context\x20Path:\x20','maka\x20build:docker\x20<opts>','56VXoXfO','length','error','-t\x20','95xcHmLq','--architecture','confirm','appName','platform','292niLGCd','build','getGlobalConfig','findGenerator','[*]\x20maka\x20','.maka','pm2.config.js','1902257VPhvxX','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','invoke','join','https','378630DGYFJU','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','search','inherit','debug','setProjectConfig','force','docker\x20build\x20--build-arg\x20NODE_VERSION=','docker','push','meteor','mkdirSync','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','306906JQykDp','1282606tcdfwC','maka\x20build:docker\x20--tag','--server=','exit','http','findAppDirectory','docker-compose.yaml','cert.pem','ask','tag','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','1iGuRUv','config','win32','12tQUAnH','serverName','os.linux.x86_64','(((.+)+)+)+$','1810HMAPXO','app','_keys','app.tar.gz','.meteor','Stored\x20server\x20config\x20to\x20','serverPort','32226XuWrfC','7381fpjUGN','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','constructor','\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','isDirectory','dockerfile','isFile','copyFileSync','1842bdkIaO','readFileLines','Dockerfile','notice','template','ignore','pathFromProject','checkConfigExists','\x20npm\x20install\x20--save','Try\x20\x27maka\x20run:docker\x27','fsi','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!'];a16c=function(){return J;};return a16c();}Command['create']({'name':'docker','aliases':['d'],'usage':a16H(0x1a5),'validOpts':[a16H(0x1c1),a16H(0x1d2),'debug'],'shortDesc':a16H(0x1bc),'description':a16H(0x18f),'mustBeInMakaProject':!![],'examples':[a16H(0x1ca),'maka\x20build:docker\x20--debug']},async function(a,b){const I=a16H;try{const c=await this['fsi'][I(0x1b1)](),d=await this[I(0x19e)]['getProjectConfig'](),f=await this[I(0x19e)]['getProjectsMeteorNodeVersion']();f===I(0x1a2)&&(Log['error']('Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).'),process[I(0x1cc)](0x1));const g=process[I(0x1ae)]===I(0x1d6)?'meteor.bat':I(0x1c5),h=this['fsi'][I(0x19a)]({}),i=a16f['join'](h,I(0x196));if(!this[I(0x19e)][I(0x192)](i)){const s=a16h[I(0x1b2)](I(0x191));s&&await s['invoke']([I(0x191)],{'cwd':h,'config':d});}const j=this[I(0x19e)][I(0x19b)]('docker');if(!j){const t=a16h[I(0x1b2)](I(0x1d5));if(t){await t[I(0x1b8)]([I(0x1c3)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[I(0x19e)]['getConfigPath'](I(0x1c3)),v=a16f[I(0x1b9)](u,I(0x1b5));await this[I(0x19e)][I(0x198)]({'srcPath':'config/pm2.config.js','destPath':v,'context':{'app':d[I(0x1ad)],'isDocker':![]},'config':d});const w=a16f[I(0x1b9)](u,I(0x1cf));await this[I(0x19e)][I(0x198)]({'srcPath':I(0x1a1),'destPath':w,'context':{'app':d[I(0x1ad)],'appFileCase':paramCase(d[I(0x1ad)])},'config':d});}}if(this[I(0x19e)]['isFile'](c['cert'])){const x=this[I(0x19e)][I(0x190)](a16f[I(0x1b9)](I(0x1d5),'docker','_keys'));!x&&a16g[I(0x1c6)](a16f[I(0x1b9)](I(0x1d5),'docker',I(0x186))),a16g[I(0x193)](c[I(0x1a0)],a16f[I(0x1b9)](h,I(0x1d5),I(0x1c3),I(0x186),I(0x1d0)));}const k=[I(0x1b0),a16f[I(0x1b9)](this['fsi']['findProjectDirectory'](),'build'),I(0x1ab),I(0x1d9)],l=this[I(0x19e)][I(0x195)](a16f[I(0x1b9)](this[I(0x19e)][I(0x19a)]({}),I(0x185),I(0x188),'platforms')),m=l[I(0x1a7)]>0x2?!![]:![];if(m){const y=d[I(0x1d8)]?d[I(0x1d8)]:await Actions[I(0x1d1)](I(0x1d3)),z=d[I(0x18a)]?d[I(0x18a)]:await Actions[I(0x1d1)]('Mobile\x20server\x20port:\x20');if(y[I(0x1a7)]==0x0||z['length']==0x0)throw I(0x19f);const A=z=='443'?I(0x1ba):I(0x1cd);k[I(0x1c4)](I(0x1cb)+A+I(0x1a3)+y+':'+z);if(!d['serverName']&&!d[I(0x18a)]){const B=await Actions[I(0x1ac)](I(0x1b7));B&&(this[I(0x19e)][I(0x1c0)](I(0x1d8),y),this[I(0x19e)][I(0x1c0)](I(0x18a),z),Log['notice'](I(0x189)+a16f[I(0x1b9)](I(0x1b4),'config.json')));}}const n=a16f[I(0x1b9)](this[I(0x19e)][I(0x19a)]({}),I(0x1b0),I(0x187));if(a16g['existsSync'](n)){const C=await Actions['confirm'](I(0x18d)),D=C;D&&(execSync(g+I(0x19c),{'cwd':this[I(0x19e)][I(0x1ce)](),'stdio':I(0x199)}),execSync(g+'\x20\x20'+k[I(0x1b9)]('\x20'),{'cwd':this[I(0x19e)][I(0x1ce)](),'stdio':I(0x1be)}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[I(0x19e)][I(0x1ce)](),'stdio':I(0x199)}),Log[I(0x197)](I(0x1b3)+k[I(0x1b9)]('\x20')),execSync(g+'\x20'+k[I(0x1b9)]('\x20'),{'cwd':this[I(0x19e)]['findAppDirectory'](),'stdio':I(0x1be)});const o=this[I(0x19e)]['pathFromProject']({});let p=I(0x1a9)+paramCase(d[I(0x1ad)])+':latest';b[I(0x1d2)]&&(p=I(0x1a9)+b[I(0x1d2)]);Log[I(0x197)](I(0x1c7)+f),Log[I(0x197)]('Tagging\x20Docker\x20Image:\x20'+p),Log['notice'](I(0x1a4)+o);const q=b[I(0x1bf)]?'--progress=plain\x20--no-cache':'',r=I(0x1c2)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':I(0x1be)}),Log['notice'](I(0x19d));}catch(E){console[I(0x1a8)](E),process['exit'](0x0);}},a16e);
|