@maka/maka-cli 4.4.3 → 4.4.5
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/bundle/obf/package.json +2 -1
- 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/package.json +1 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"
|
|
3
|
+
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
+
"version": "4.4.5",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
7
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x11c))/0x1+parseInt(p(0x12f))/0x2+parseInt(p(0x131))/0x3*(-parseInt(p(0x13a))/0x4)+parseInt(p(0x10b))/0x5+-parseInt(p(0x113))/0x6+parseInt(p(0xf7))/0x7+-parseInt(p(0x12e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x87d03));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0xfd)]()[r(0x102)](r(0x10a))['toString']()['constructor'](a0a)[r(0x102)](r(0x10a));});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';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xf1;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const E=['validateMeteorInstall','proCommands','runSubCommand','name','toString','Too\x20few\x20options','Command.create\x20requires\x20some\x20options!','minOptsLength','addCommand','search','splice','usage','length','notice','findCommand','Please\x20run\x20\x22maka\x20install\x20meteor\x22','murder','(((.+)+)+)+$','2134045OKchyb','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','assign','help','bright','includes','_commands','maxOptsLength','88344vvzSAX','create','proFlags','validateParams','Command\x20requires\x20a\x20name','aliases','To\x20use\x20these\x20pro\x20flags,\x20\x22','tableList','Command.create\x20requires\x20a\x20handler\x20function!','314062RyqoFq','validateMakaSubscription','Command\x20requires\x20a\x20handler\x20function','apply','domainLicense','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','options','exit','Too\x20many\x20options','keys','mustHaveMeteorInstalled','push','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','invoke','filter','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20not\x20found','validateMakaProject','12735016NDVjsF','2073454wwUiYk','match','620049oBHFBx','fsi','Description','bind','play','_handler','generate','minArgLength','Sub-Commands:','4nzaJyj','split','Name','Alias','Too\x20few\x20arguments','Too\x20many\x20arguments','forEach','roles','parent','join','call','sort','error','getPro','header','4143839PNNOQq','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{[a0s(0x122)];[a0s(0x111)];constructor(a,b){const t=a0s;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(t(0x117));if(typeof b!=='function')throw new Error(t(0x11e));this[t(0x122)]=Object[t(0x10d)]({},a),this[t(0xfc)]=this['options'][t(0xfc)],this[t(0x111)]=[],this['_handler']=b[t(0x134)](this);}static[a0s(0x114)](a,b,c){const u=a0s;if(!a)throw new Error(u(0xff));if(typeof b!=='function')throw new Error(u(0x11b));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[u(0x122)]?.[u(0xfc)]}),c[u(0x101)](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[v(0x111)][v(0x127)](a);}async[a0s(0x11d)](a,b){const w=a0s,c=this[w(0x107)](a[0x0]);if(c){const d=c?.[w(0xfc)]||a[0x0],e=c?.[w(0x142)]||'',f=c?.[w(0x122)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object['keys'](b),i=await this[w(0x132)][w(0xf5)]();!i&&(Log[w(0xf4)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const j=i?.[w(0xfa)][w(0x110)](d)||i?.[w(0xfa)][w(0x110)](e),k=i?.[w(0x141)][w(0x110)]('singleLicense')||i?.['roles'][w(0x110)](w(0x120)),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x128);if(h[w(0x105)]>0x0){const m=i?.[w(0x115)][w(0x12a)](n=>h[w(0x110)](n));if(m&&m[w(0x105)]>0x0&&l)throw w(0x119)+m?.[w(0xf1)](',\x20')+w(0x128);}if(g==='deploy'){const n=await this[w(0x132)][w(0xf5)](),o=n?.[w(0xfa)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x128);}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x11d)](a,b);}catch(c){Log[x(0xf4)](c),process[x(0x123)](0x0);}await this['invoke'](a,b);}catch(d){process[x(0x123)](0x1);}}async[a0s(0x129)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![]}=this['options'];try{if(this[y(0x122)]['name']!==y(0x137)){if(!isRoot){const d=(a[0x0]===_prevCmd||a[y(0x105)]===0x0)&&this[y(0x111)][y(0x105)]>=0x0;if(d&&b[y(0x10e)]){if(this['_commands'][y(0x105)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x10e)]){if(this['options']['mustBeInMakaProject']){const f=this[y(0x12d)]();if(!f)throw new MustBeInProjectError();}if(this[y(0x122)][y(0x126)]){const g=this[y(0xf9)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[y(0x122)][y(0x138)]==='number'){if(a[y(0x105)]<this[y(0x122)][y(0x138)]){Log[y(0xf4)](y(0x13e));throw new UsageError();}}if(typeof this[y(0x122)]['maxArgLength']==='number'){if(a[y(0x105)]>=this[y(0x122)]['maxArgLength']){Log[y(0xf4)](y(0x13f));throw new UsageError();}}if(typeof this[y(0x122)]['minOptsLength']==='number'){if(Object[y(0x125)](b)['length']<this['options'][y(0x100)]){Log['error'](y(0xfe));throw new UsageError();}}if(typeof this[y(0x122)]['maxOptsLength']==='number'){if(Object[y(0x125)](b)[y(0x105)]>=this['options'][y(0x112)]){Log[y(0xf4)](y(0x124));throw new UsageError();}}}}this[y(0x116)](a,b,this[y(0x122)]),_prevCmd=a[0x0];}await this[y(0x136)][y(0xf2)](this,a,b);}catch(h){Log[y(0x104)](description,examples,usage,c);if(h instanceof UsageErrorWithSubs)Log['notice'](y(0x139)),this[y(0x11a)](this[y(0x111)]),Log[y(0xf6)](y(0x10c));else{if(h instanceof MustBeInProjectError)Log['error'](y(0xf8));else{if(h instanceof NoMeteorFoundError)Log[y(0xf4)](y(0x121)),Log[y(0x106)](y(0x108));else{if(h instanceof NoMeteorAppFoundError)Log[y(0xf4)](y(0x12b));else throw h;}}}process[y(0x123)](0x1);}}['tableList'](a){const z=a0s,b=new a0e({});b[z(0x127)]([z(0x13c),z(0x13d),z(0x133)]),a[z(0xf3)]()[z(0x140)](c=>{const A=z;c[A(0xfc)]!==A(0x109)&&c[A(0xfc)]!==A(0x135)&&b[A(0x127)]([c['name'],c[A(0x118)](),c['shortDesc']()]);}),Log[z(0x10f)](b[z(0xfd)]());}[a0s(0x107)](a){const B=a0s;return this[B(0x111)]['find'](b=>b[B(0x130)](a));}['findSubCommand'](a){const C=a0s,b=a?.[C(0x13b)](':');if(b)return a=b[0x0],this[C(0x107)](a);else return;}async[a0s(0xfb)](a,b,c){const D=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[D(0x103)](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g['run'](b,c);else throw D(0x12c);}catch(h){throw Log[D(0xf4)](h);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xaa))/0x1*(parseInt(f(0xa0))/0x2)+parseInt(f(0xa7))/0x3*(parseInt(f(0xab))/0x4)+-parseInt(f(0xa9))/0x5+-parseInt(f(0x9f))/0x6*(-parseInt(f(0xa3))/0x7)+-parseInt(f(0xa2))/0x8*(parseInt(f(0xa8))/0x9)+-parseInt(f(0xa6))/0xa+-parseInt(f(0xa4))/0xb*(-parseInt(f(0xac))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x1fadb));var a1b=(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;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0xa1)]()[g(0xa5)]('(((.+)+)+)+$')[g(0xa1)]()['constructor'](a1a)[g(0xa5)]('(((.+)+)+)+$');});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';import'./create.js';import'./debug.js';function a1c(){var h=['91tTtveu','172117Kldsia','search','861170IecHUu','342AjuXAU','1089DIQIxd','967160thQdUE','23rhJzdf','1768VUoGpb','240VHnsSG','34152fmGkJm','2414dTYfWY','toString','3688pCwqkW'];a1c=function(){return h;};return a1c();}import'./deploy.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x9f;var f=c[d];return f;},a1d(a,b);}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(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x117;var f=c[d];return f;},a2d(a,b);}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x122))/0x1+parseInt(f(0x11a))/0x2*(-parseInt(f(0x120))/0x3)+parseInt(f(0x11f))/0x4+-parseInt(f(0x117))/0x5*(parseInt(f(0x11d))/0x6)+-parseInt(f(0x123))/0x7+parseInt(f(0x11b))/0x8+parseInt(f(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xb4586));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(0x121)]()[g(0x118)](g(0x119))[g(0x121)]()[g(0x11e)](a2a)['search'](g(0x119));});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=['36658bSSJQc','58944rMftoE','16468929JAinFo','315102ynLiII','constructor','165444JUJDJK','15DVPDvU','toString','420645BEQlbA','1827175zsGeqf','115qYooAF','search','(((.+)+)+)+$'];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(a,b){const f=a3d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x82;let f=c[d];return f;},a3d(a,b);}const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=parseInt(f(0x88))/0x1+parseInt(f(0x8a))/0x2*(parseInt(f(0x85))/0x3)+parseInt(f(0x8d))/0x4+-parseInt(f(0x8c))/0x5+-parseInt(f(0x8e))/0x6*(parseInt(f(0x8f))/0x7)+-parseInt(f(0x83))/0x8+parseInt(f(0x84))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x33e31));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x8b)]()[h(0x87)]('(((.+)+)+)+$')[h(0x8b)]()['constructor'](a3a)['search'](h(0x90));});a3a();import{Command}from'../../command.js';function a3c(){const k=['590298pXQMIA','7vBVlFL','(((.+)+)+)+$','findSubCommand','apply','3370576MBPUqy','5716305YJzQAf','387vSxxVH','create','search','162224UjCLGl','Sub\x20Command\x20not\x20found','536MXbkza','toString','1871815qmLtUZ','1098624xNjhFg'];a3c=function(){return k;};return a3c();}import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0x86)]({'name':'aws','usage':'maka\x20aws:<sub-command>','minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':'\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'},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x91)](c);if(d)this['runSubCommand'](c,a,b);else{Log['error'](j(0x89));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1db;let f=c[d];return f;},a4d(a,b);}const a4a9=a4d;(function(a,b){const a6=a4d,c=a();while(!![]){try{const d=-parseInt(a6(0x20e))/0x1+parseInt(a6(0x201))/0x2+-parseInt(a6(0x21a))/0x3*(parseInt(a6(0x204))/0x4)+parseInt(a6(0x237))/0x5*(-parseInt(a6(0x1e9))/0x6)+parseInt(a6(0x205))/0x7+parseInt(a6(0x241))/0x8+parseInt(a6(0x1fc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x8244a));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const a7=a4d;if(c){const e=c[a7(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const a8=a4d;return a4a[a8(0x209)]()[a8(0x213)](a8(0x1fe))['toString']()[a8(0x219)](a4a)[a8(0x213)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';function a4c(){const al=['4304sDQPEP','5877011bDXUUo','ImageID:','build\x20on\x20','getTime','toString','chooseVPC','\x20:\x20','Setting\x20the\x20key-pair\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','937636ZkXWTt','Security\x20Group\x20Name:\x20[','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','subnetId','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','search','string','maka\x20aws:ci\x20--env\x20prod','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','1:1','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','constructor','1128uNUHAu','ec2createSG','listSecurityGroups','push','create-instance','*\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','name','ask','alias','createFile','22,80,443','**\x20Available\x20AMIs\x20**','ec2describeKeys','**\x20Available\x20key-pairs\x20**','\x20CIDR:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','t3.micro','ec2create','Security\x20Group:\x20','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','subnet','readFileSync','No\x20instance\x20has\x20been\x20created.','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','cidr','\x20AZONE:\x20','Setting\x20SG\x20ID\x20to:\x20','forEach','amiId','35bGjFrb','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','exit','ID:\x20','\x20AMIID:\x20','create','Setting\x20AMI\x20ID\x20to\x20','sgId','createKeyPair','parse','7939728MMpaPK','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=*','getProjectConfig','apply','bright','Desc','}]\x22','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Create\x20new\x20AWS\x20instance','user-data','error','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','\x22Web\x20App\x22','join','Key-Pair:\x20','log','444552yVaTvB','env','Subnet:\x20','Instace\x20Type:\x20','confirm','desc','number','date','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','cider','maka\x20aws:create-instance\x20--env\x20dev','getConfigPath','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','fsi','User\x20Data:','success','split','389115bJvImN','\x20SUBNETID:\x20','(((.+)+)+)+$','\x20DESCRIPTION:\x20','\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','1038320crbOAy','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','notice'];a4c=function(){return al;};return a4c();}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';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4a9(0x23c)]({'name':a4a9(0x21e),'aliases':['ci'],'usage':'maka\x20aws:create-instance\x20<opts>','examples':[a4a9(0x1f4),a4a9(0x215)],'mustBeInMakaProject':!![],'requiredOpts':[a4a9(0x1ea)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4a9(0x1e1),'description':a4a9(0x200)},async function(a,b){const aa=a4a9;try{const c=this[aa(0x1f8)][aa(0x1db)](),d=new AWS(),{appName:f}=c,g=this[aa(0x1f8)]['getConfigFromShorthand'](b['env']),h=this['fsi'][aa(0x1f5)](g),i=f+'-'+g,j=await Actions[aa(0x221)]('EC2\x20Name:\x20['+i+']\x20')||i;let k='',l='',m='',n='',o='',p='';const q=await Actions[aa(0x1ed)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let r='';q&&(r=await d[aa(0x23f)]({'env':g}));try{Log[aa(0x203)](aa(0x227));const w=r?r:j,x=d[aa(0x226)]({'suggestion':w}),y=await Actions[aa(0x221)](aa(0x1f7))||'-1';if(parseInt(y)<0x0){Log[aa(0x1e3)](aa(0x22d)),Log[aa(0x203)](aa(0x230));return;}x?.[aa(0x235)](function(z){const ab=aa;parseInt(y)===z['id']&&(k=z[ab(0x220)],Log['success'](ab(0x20c)+k));});}catch(z){Log['error'](z);}l=await d[aa(0x20a)]();const s=await Actions['confirm'](aa(0x229));let t;if(s){const A=l===''?d[aa(0x20a)]():l;t=await Actions[aa(0x221)](aa(0x20f)+j+']')||j;const B=await Actions[aa(0x221)](aa(0x1f2))||aa(0x224),C=B[aa(0x1fb)](',');d[aa(0x21b)]({'description':aa(0x1e5),'name':t,'vpcId':A,'sgPorts':C});}t=j;try{const D=await d[aa(0x21c)](t),E=await Actions['ask'](aa(0x202))||'0';D[aa(0x235)](function(F){const ac=aa;F['id']===parseInt(E)&&(m=F[ac(0x23e)],Log[ac(0x1fa)](ac(0x234)+m+'\x0a'));});if(m==='')throw Log[aa(0x1e3)](aa(0x231));}catch(F){Log[aa(0x1e3)](F);}try{const G=0x7e6;Log['notice'](aa(0x225));const H=execSync(aa(0x242)+G+aa(0x21f))['toString'](),I=JSON['parse'](H),J=[],K=[];I[aa(0x235)](function(M){const ad=aa;if(M[ad(0x222)]==='amazon'){const N=M['Desc']['split'](ad(0x207))[0x1];J[ad(0x21d)]({'amiId':M['ID'],'desc':M[ad(0x1de)],'date':N});}}),J['sort'](function(M,N){const ae=aa;return new Date(N[ae(0x1f0)])[ae(0x208)]()-new Date(M[ae(0x1f0)])[ae(0x208)]();}),J[aa(0x235)](function(M,N){const af=aa;K[af(0x21d)]({'id':N,'amiId':M[af(0x236)],'desc':M[af(0x1ee)]});}),K[aa(0x235)](function(M){const ag=aa;console[ag(0x1e8)](ag(0x23a)+M['id']+ag(0x23b)+M[ag(0x236)]+ag(0x1ff)+M['desc']);});const L=await Actions[aa(0x221)](aa(0x218))||'0';K[aa(0x235)](function(M){const ah=aa;M['id']===parseInt(L)&&(n=M['amiId'],Log[ah(0x1fa)](ah(0x23d)+n+ah(0x20b)+M[ah(0x1ee)]));});if(n==='')throw Log[aa(0x1e3)](aa(0x231));}catch(M){Log['error'](M);}try{Log[aa(0x203)]('**\x20Available\x20Subnets\x20**');const N=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[aa(0x209)](),O=JSON[aa(0x240)](N),P=[];O[aa(0x235)](function(R,S){const ai=aa;P[ai(0x21d)]({'id':S,'cidr':R[ai(0x1f3)],'az':R['az'],'subnetId':R[ai(0x211)]});}),P[aa(0x235)](function(R){const aj=aa;console[aj(0x1e8)]('ID:\x20'+R['id']+aj(0x228)+R[aj(0x232)]+aj(0x233)+R['az']+aj(0x1fd)+R[aj(0x211)]);});const Q=await Actions[aa(0x221)](aa(0x1f6))||'0';P[aa(0x235)](function(R){const ak=aa;R['id']===parseInt(Q)&&(p=R[ak(0x211)],Log[ak(0x1fa)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error'](aa(0x231));}catch(R){Log[aa(0x1e3)](R);}let u=aa(0x217);try{const S=await Actions[aa(0x221)](aa(0x1e0))||aa(0x217),T=S[aa(0x1fb)](':')[0x0],U=S[aa(0x1fb)](':')[0x1];typeof parseInt(T)===aa(0x1ef)&&typeof parseInt(U)===aa(0x1ef)&&(u=[T,U][aa(0x1e6)](':'),Log[aa(0x1fa)](aa(0x210)+u));}catch(V){Log[aa(0x1e3)](V);}try{const W=await Actions['ask']('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||aa(0x22a);typeof W===aa(0x214)&&(o=W);}catch(X){Log[aa(0x1e3)](X);}let v;try{const Y=await Actions[aa(0x1ed)](aa(0x1f1),![]);Y&&(v=a4f['join'](h,aa(0x1e2)),Log[aa(0x203)]('Creating\x20user\x20data\x20file\x20in\x20'+v),await this[aa(0x1f8)][aa(0x223)]({'filePath':v,'data':''}),await Actions['confirm'](aa(0x20d)));}catch(Z){Log[aa(0x1e3)](Z);}try{const a0=JSON[aa(0x240)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+aa(0x238))[aa(0x209)]())[0x0][aa(0x22e)];Log[aa(0x203)](aa(0x206)+n),Log[aa(0x203)]('Instance\x20Count:\x20'+u),Log['notice'](aa(0x1ec)+o),Log['notice'](aa(0x1e7)+k),Log['notice'](aa(0x22c)+m),Log[aa(0x203)](aa(0x1eb)+a0);if(v){Log[aa(0x203)](aa(0x1f9)+v);const a2=await a4g[aa(0x22f)](v);Log['notice'](a2);}const a1=await Actions[aa(0x1ed)](aa(0x212));if(a1){const a3=d[aa(0x22b)]({'imageId':n,'count':u,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':aa(0x1e4)+g+'},\x20{Key=Name,Value='+j+aa(0x1df),...v&&{'userData':v}});a3&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[aa(0x1dd)](aa(0x216)));}else Log[aa(0x203)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}catch(a4){console[aa(0x1e8)](a4),Log[aa(0x1e3)](a4);}}catch(a5){console[aa(0x1e3)](a5),process[aa(0x239)](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5i=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x147;let f=c[d];return f;},a5d(a,b);}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x15d))/0x1+parseInt(g(0x152))/0x2+-parseInt(g(0x161))/0x3*(-parseInt(g(0x15b))/0x4)+-parseInt(g(0x148))/0x5*(-parseInt(g(0x155))/0x6)+-parseInt(g(0x154))/0x7+-parseInt(g(0x15f))/0x8+parseInt(g(0x153))/0x9*(parseInt(g(0x14b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x9be13));const a5b=(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;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0x158)]()[h(0x162)](h(0x15e))[h(0x158)]()[h(0x14c)](a5a)[h(0x162)]('(((.+)+)+)+$');});a5a();function a5c(){const k=['create','maka\x20aws:create-key-pair\x20<opts>','\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','getConfigFromShorthand','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','461568njZoon','1413bHRlJj','6422381awmHZj','6qxZtOo','maka\x20aws:ckp\x20--env\x20prod','createKeyPair','toString','env','error','116MhMWQW','fsi','289309ehxanX','(((.+)+)+)+$','3103096XriHND','ckp','3972GWrovL','search','exit','776345JhdYML','create-key-pair','maka\x20aws:create-key-pair\x20--env\x20prod','78350RAIaaS','constructor'];a5c=function(){return k;};return a5c();}import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5i(0x14d)]({'name':a5i(0x149),'aliases':[a5i(0x160)],'usage':a5i(0x14e),'examples':[a5i(0x14a),a5i(0x156)],'mustBeInMakaProject':!![],'requiredOpts':[a5i(0x159)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5i(0x151),'description':a5i(0x14f)},async function(a,b){const j=a5i;try{const c=new AWS(),d=this[j(0x15c)][j(0x150)](b[j(0x159)]);c[j(0x157)]({'env':d});}catch(f){console[j(0x15a)](f),process[j(0x147)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d
|
|
1
|
+
function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x79;let f=c[d];return f;},a6d(a,b);}const a6p=a6d;function a6c(){const s=['search','(((.+)+)+)+$','9778KmCGTU','maka\x20aws\x20create-security-group','apply','create-security-group','forEach','List\x20is\x20not\x20all\x20numbers','4864416ugplrB','fsi','ec2createSG','match','ask','1432396zBtFGC','392Xgtshw','csg','\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','error','\x22Web\x20App\x22','2539698HACTvw','378057VMPqnK','320QSWylU','8410jeOUlY','22,80,443','163908IroTeV','getProjectConfig','393jEoOYq'];a6c=function(){return s;};return a6c();}(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0x80))/0x1+-parseInt(m(0x89))/0x2*(-parseInt(m(0x86))/0x3)+parseInt(m(0x7a))/0x4*(-parseInt(m(0x82))/0x5)+parseInt(m(0x7f))/0x6+-parseInt(m(0x79))/0x7+parseInt(m(0x8f))/0x8+-parseInt(m(0x84))/0x9*(parseInt(m(0x81))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x535f1));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a['toString']()[o(0x87)]('(((.+)+)+)+$')['toString']()['constructor'](a6a)[o(0x87)](o(0x88));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a6p(0x8c),'aliases':[a6p(0x7b)],'usage':a6p(0x8a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a6p(0x7c),'examples':['maka\x20aws:create-secuirty-group','maka\x20aws:csg']},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x90)][q(0x85)](),{appName:f}=d,g=await c['chooseVPC'](),h=b['name']?b['name']:''+f,i=await Actions['ask']('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x93)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0x83),k=j['split'](',');k[q(0x8d)](l=>{const r=q;if(!l[r(0x92)](/^\d+$/))throw r(0x8e);}),c[q(0x91)]({'description':q(0x7e),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x7d)](l),process['exit'](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7h=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d
|
|
1
|
+
const a7h=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(0xc2))/0x1*(parseInt(f(0xc6))/0x2)+-parseInt(f(0xbf))/0x3*(parseInt(f(0xb4))/0x4)+parseInt(f(0xb8))/0x5*(-parseInt(f(0xc7))/0x6)+parseInt(f(0xbc))/0x7+parseInt(f(0xc1))/0x8+-parseInt(f(0xb7))/0x9+parseInt(f(0xbb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x2cc11));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['toString']()[g(0xc5)]('(((.+)+)+)+$')[g(0xc0)]()['constructor'](a7a)[g(0xc5)](g(0xbe));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xb4;let f=c[d];return f;},a7d(a,b);}function a7c(){const j=['3239630VLGalE','1041838eaKpdb','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','(((.+)+)+)+$','454959kZOvij','toString','17624FYjjQQ','122kQzxzX','describe-instances','maka\x20aws:describe-instances','search','2284uXRrNP','256806lUDlRC','\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','4nLOpJm','exit','maka\x20aws:di','1358595RAtNcu','15lRzrKp','create','ec2describeInstances'];a7c=function(){return j;};return a7c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a7h(0xb9)]({'name':a7h(0xc3),'aliases':['di'],'usage':a7h(0xc4),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7h(0xbd),'examples':['maka\x20aws:describe-instances',a7h(0xb6)],'description':a7h(0xc8)},async function(){const i=a7h;try{const a=new AWS();a[i(0xba)]();}catch(b){console['error'](b),process[i(0xb5)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d
|
|
1
|
+
const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x18c))/0x1+-parseInt(f(0x188))/0x2+parseInt(f(0x17c))/0x3*(-parseInt(f(0x189))/0x4)+parseInt(f(0x186))/0x5+-parseInt(f(0x180))/0x6+parseInt(f(0x17b))/0x7+-parseInt(f(0x187))/0x8*(-parseInt(f(0x18b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x5b7f4));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x17a)]()[h(0x179)](h(0x181))[h(0x17a)]()[h(0x17d)](a8a)[h(0x179)](h(0x181));});a8a();import a8e from'./aws.command.js';function a8c(){const k=['(((.+)+)+)+$','exit','ec2describeKeys','describe-key-pairs','apply','2892955sPFofn','39664cLwwKp','458684xkYAGt','4ynkzih','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','1278LZyCkC','143368swOWYO','error','search','toString','565537VTmrvg','67131VNnUNY','constructor','maka\x20aws:describe-key-pairs','maka\x20aws:dkp','3561354TqmwEV'];a8c=function(){return k;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x179;let f=c[d];return f;},a8d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8i(0x184),'aliases':['dkp'],'usage':a8i(0x17e),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x18a),'examples':[a8i(0x17e),a8i(0x17f)]},async function(){const j=a8i;try{const a=new AWS();a[j(0x183)]();}catch(b){console[j(0x18d)](b),process[j(0x182)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9j=a9d;(function(a,b){const h=a9d,c=a();while(!![]){try{const d=parseInt(h(0x146))/0x1+-parseInt(h(0x155))/0x2+-parseInt(h(0x14a))/0x3*(parseInt(h(0x144))/0x4)+-parseInt(h(0x150))/0x5+parseInt(h(0x157))/0x6+-parseInt(h(0x148))/0x7+parseInt(h(0x140))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xf2984));function a9c(){const m=['sgId','Deleted\x20','success','exit','48842320eHjkXT','error','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','listSecurityGroups','4256gXGQdv','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','103739PxBflj','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','13728631xBZUmj','toString','2832kfwKsz','maka\x20aws:delete-sg','maka\x20aws:dsg','search','create','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','3591700kcSigp','(((.+)+)+)+$','Not\x20deleting\x20secuirty\x20group','constructor','delete-security-group','3322168PIzAou','deleteSecurityGroup','778272BxdXKE','forEach','confirm'];a9c=function(){return m;};return a9c();}const a9b=(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;};}()),a9a=a9b(this,function(){const i=a9d;return a9a[i(0x149)]()[i(0x14d)](i(0x151))['toString']()[i(0x153)](a9a)[i(0x14d)](i(0x151));});a9a();import a9e 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 a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x13b;let f=c[d];return f;},a9d(a,b);}Command[a9j(0x14e)]({'name':a9j(0x154),'aliases':['dsg'],'usage':a9j(0x14b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9j(0x142),'examples':['maka\x20aws:delete-sg',a9j(0x14c)]},async function(){const k=a9j;try{const a=new AWS(),b=await a[k(0x143)]();let c;const d=await Actions['ask'](k(0x147));b[k(0x158)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x13c)]);});if(!c)throw Log[k(0x141)](k(0x14f));const f=await Actions[k(0x13b)]('Deleting\x20a\x20'+c+k(0x145),![]);f?(a[k(0x156)](c),Log[k(0x13e)](k(0x13d)+c)):Log[k(0x141)](k(0x152)),process[k(0x13f)](0x0);}catch(g){process[k(0x13f)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1c0))/0x1*(-parseInt(f(0x1b1))/0x2)+parseInt(f(0x1cb))/0x3*(parseInt(f(0x1bd))/0x4)+parseInt(f(0x1b9))/0x5*(-parseInt(f(0x1c5))/0x6)+-parseInt(f(0x1b8))/0x7+-parseInt(f(0x1b6))/0x8*(parseInt(f(0x1b2))/0x9)+-parseInt(f(0x1b4))/0xa+parseInt(f(0x1ce))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xeb45e));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1bc)]()['search']('(((.+)+)+)+$')[h(0x1bc)]()[h(0x1c7)](a10a)[h(0x1b7)]('(((.+)+)+)+$');});a10a();import a10e 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';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a10d(a,b);}function a10c(){const k=['Reboot\x20an\x20EC2\x20instance','create','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','355578idpUYp','apply','constructor','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','\x20Ready?','error','526656XBKAzT','maka\x20aws:reboot-instance','confirm','38851428FlSgMb','ec2rebootInstance','status','name','67440aTiBLY','222219UKHxlG','\x20is\x20still\x20running.','9590090LJoWKf','rbi','328Ohthtp','search','4370555lIVxqZ','95zmtnWM','maka\x20aws:rbi','instanceId','toString','4qHqbXG','reboot-instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','29KyIZBg','chooseInstance'];a10c=function(){return k;};return a10c();}Command[a10i(0x1c3)]({'name':a10i(0x1be),'aliases':[a10i(0x1b5)],'usage':a10i(0x1cc),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x1c2),'examples':['maka\x20aws:reboot-instance',a10i(0x1ba)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x1c1)]();if(b?.[j(0x1d0)]==='running'){const c=await Actions[j(0x1cd)](j(0x1c8)+b[j(0x1d1)]+j(0x1c9));c?a[j(0x1cf)]({'instanceId':b[j(0x1bb)]}):Log[j(0x1ca)](j(0x1c4)+b['name']+j(0x1b3));}else Log['error'](j(0x1bf));}catch(d){console[j(0x1ca)](d),process['exit'](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d
|
|
1
|
+
const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0xcf))/0x1+parseInt(h(0xc7))/0x2*(parseInt(h(0xc8))/0x3)+-parseInt(h(0xd5))/0x4*(-parseInt(h(0xc3))/0x5)+-parseInt(h(0xcd))/0x6*(-parseInt(h(0xc5))/0x7)+-parseInt(h(0xd3))/0x8*(-parseInt(h(0xc6))/0x9)+-parseInt(h(0xd0))/0xa+-parseInt(h(0xd1))/0xb*(parseInt(h(0xd9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xd3a2e));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0xc4)]()[j(0xcc)]('(((.+)+)+)+$')[j(0xc4)]()['constructor'](a11a)[j(0xcc)](j(0xdb));});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xbe;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const n=['Not\x20deleting\x20keypair','\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','Deleted\x20','search','12jOVetZ','maka\x20aws:rkp','1091953rMMOiX','12914470WvkjJp','29191393fyOZrh','remove-key-pair','169816jhhHBd','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1043012trJYmp','exit','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','create','12HYaqWo','maka\x20aws:remove-key-pair','(((.+)+)+)+$','ec2describeKeys','error','apply','rkp','ask','name','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','25BhVFov','toString','670439KfvAEN','243WjccHL','378gGCfAa','26217iddHIS'];a11c=function(){return n;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0xd8)]({'name':a11k(0xd2),'aliases':[a11k(0xbf)],'usage':a11k(0xda),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0xc2),'description':a11k(0xca),'examples':[a11k(0xda),a11k(0xce)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0xdc)]();let c;const d=await Actions[l(0xc0)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.['forEach'](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xc1)]);});if(!c)throw Log['error'](l(0xd4));const f=await Actions['confirm']('Deleting\x20a\x20'+c+l(0xd7),![]);f?(a['deleteKeyPair'](c),Log['success'](l(0xcb)+c)):Log[l(0xdd)](l(0xc9)),process[l(0xd6)](0x0);}catch(g){process[l(0xd6)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12n=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=-parseInt(l(0x1da))/0x1*(parseInt(l(0x1de))/0x2)+parseInt(l(0x1c1))/0x3*(parseInt(l(0x1db))/0x4)+parseInt(l(0x1c3))/0x5+-parseInt(l(0x1dc))/0x6+-parseInt(l(0x1e5))/0x7*(-parseInt(l(0x1c2))/0x8)+-parseInt(l(0x1d0))/0x9*(-parseInt(l(0x1c5))/0xa)+-parseInt(l(0x1e4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xc7ed0));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a12d(a,b);}const a12b=(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;};}()),a12a=a12b(this,function(){const m=a12d;return a12a[m(0x1e1)]()[m(0x1be)](m(0x1d2))[m(0x1e1)]()[m(0x1c6)](a12a)[m(0x1be)](m(0x1d2));});a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';function a12c(){const p=['Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','fsi','chooseInstance','readFileSync','error','maka\x20aws:set-host\x20--env\x20dev','public','set-host','getProjectConfig','153aSCYdZ','template','(((.+)+)+)+$','exit','success','inherit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','config/ssh.json','utf8','ask','7vOBDAN','28YqvPGn','1777518GKanJO','writeFileSync','113818FYCmYW','maka\x20aws\x20set-host','isFile','toString','ssh.json','parse','18416123gpkehd','897526oMmUDi','privateIp','maka\x20aws:sth\x20--env\x20prod','cat\x20','join','appName','stringify','env','search','getConfigPath','sth','29091mDgNZs','80SXPNzp','4670735wbnRBg','host','531470fMXArH','constructor'];a12c=function(){return p;};return a12c();}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':a12n(0x1ce),'aliases':[a12n(0x1c0)],'usage':a12n(0x1df),'mustBeInMakaProject':!![],'requiredOpts':[a12n(0x1bd)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12n(0x1c7),'description':'\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','examples':[a12n(0x1cc),a12n(0x1e7)]},async function(a,b){const o=a12n;try{const c=new AWS(),d=this['fsi'][o(0x1bf)](b[o(0x1bd)]),f=this[o(0x1c8)][o(0x1cf)](),g=await c[o(0x1c9)](),h=a12e[o(0x1ba)](d,'ssh.json');!this[o(0x1c8)][o(0x1e0)](h)&&await this[o(0x1c8)][o(0x1d1)]({'srcPath':o(0x1d7),'destPath':h,'context':{'app':f[o(0x1bb)]},'config':f});const i=JSON[o(0x1e3)](a12f[o(0x1ca)](h,o(0x1d8))),j=await Actions[o(0x1d9)](o(0x1d6))||o(0x1cd);if(j){if(j==='public'||j==='private'){if(j==='public')i[o(0x1c4)]=g?.['publicIp'];else j==='private'&&(i['host']=g?.[o(0x1e6)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[o(0x1c4)]=g?.['privateIp'];a12f[o(0x1dd)](a12e[o(0x1ba)](d,o(0x1e2)),JSON[o(0x1bc)](i,null,0x2)),execSync(o(0x1e8)+a12e[o(0x1ba)](d,o(0x1e2)),{'stdio':o(0x1d5)}),Log[o(0x1d4)]('\x0aSaved\x20host\x20'+j+'\x20IP\x20to\x20'+d+a12e['sep']+'ssh.json');}catch(k){console[o(0x1cb)](k),process[o(0x1d3)](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-
|
|
1
|
+
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x145;let f=c[d];return f;},a13d(a,b);}const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x15b))/0x1+parseInt(f(0x156))/0x2+parseInt(f(0x147))/0x3*(parseInt(f(0x158))/0x4)+-parseInt(f(0x15e))/0x5+parseInt(f(0x14c))/0x6+parseInt(f(0x155))/0x7*(parseInt(f(0x15d))/0x8)+parseInt(f(0x154))/0x9*(-parseInt(f(0x14a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x2f063));const a13b=(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;};}()),a13a=a13b(this,function(){const g=a13d;return a13a[g(0x14b)]()[g(0x159)](g(0x160))[g(0x14b)]()[g(0x15a)](a13a)[g(0x159)](g(0x160));});a13a();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';function a13c(){const j=['4SzcGed','search','constructor','263556pwcCvz','maka\x20aws:terminate-instance','782656vtCrvI','672780FmUYIo','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','(((.+)+)+)+$','maka\x20aws:ti','\x20Ready?','197259oQbvSU','ec2terminateInstance','chooseInstance','10uvgCYx','toString','2208666hyJDas','confirm','exit','terminate-instance','name','status','create','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','663633KtUjpS','14MavGER','69864EhaLYS','error'];a13c=function(){return j;};return a13c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a13h(0x152)]({'name':a13h(0x14f),'aliases':['ti'],'usage':a13h(0x15c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','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':[a13h(0x15c),a13h(0x145)]},async function(){const i=a13h;try{const a=new AWS(),b=await a[i(0x149)]();if(b?.[i(0x151)]==='running'){const c=await Actions[i(0x14d)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0x150)]+i(0x146));c?a[i(0x148)]({'instanceId':b['instanceId']}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[i(0x150)]+i(0x15f));}else Log[i(0x157)](i(0x153));}catch(d){console['error'](d),process[i(0x14e)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a14d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a14d,c=a();while(!![]){try{var d=-parseInt(f(0x1e2))/0x1*(-parseInt(f(0x1e6))/0x2)+-parseInt(f(0x1e8))/0x3*(-parseInt(f(0x1e0))/0x4)+-parseInt(f(0x1de))/0x5*(parseInt(f(0x1eb))/0x6)+-parseInt(f(0x1e9))/0x7*(-parseInt(f(0x1df))/0x8)+-parseInt(f(0x1e5))/0x9*(parseInt(f(0x1ed))/0xa)+-parseInt(f(0x1e1))/0xb+parseInt(f(0x1e7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x896d0));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x1ec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x1e3)]()[h(0x1dd)](h(0x1e4))[h(0x1e3)]()[h(0x1ea)](a14a)[h(0x1dd)](h(0x1e4));});a14a();function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x1dd;var f=c[d];return f;},a14d(a,b);}import'./build.js';function a14c(){var i=['apply','1884910liRePH','search','245OgIVcR','901728EbeenF','4GlBYxG','4800070Aznkiw','1gnVJxo','toString','(((.+)+)+)+$','9WDApUN','1519006ssBmSi','3122868ysJdWA','217104BYxRdo','21AGHJKH','constructor','29694GRtNzs'];a14c=function(){return i;};return a14c();}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x183))/0x1*(parseInt(p(0x190))/0x2)+parseInt(p(0x17b))/0x3+-parseInt(p(0x18c))/0x4+-parseInt(p(0x18f))/0x5+parseInt(p(0x196))/0x6*(parseInt(p(0x18b))/0x7)+-parseInt(p(0x19c))/0x8+parseInt(p(0x195))/0x9*(parseInt(p(0x17d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd7f8d));function a15c(){const v=['argv','100srBAwd','(((.+)+)+)+$','findSubCommand','toString','splice','build','24197BlVPVr','invokeMeteorCommand','create','app.tar.gz','search',').\x20Update?','maka\x20build','fsi','10576153ppkixj','6792012pxArAz','--release','confirm','3616870eJsooo','2qIeZtp','Aborted.','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','maka\x20build:docker','join','1015317FUTMmh','6oZppUp','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','forEach','--force','update','apply','2228944gfbQxy','getProjectMeteorVersion','error','This\x20project\x27s\x20meteor\x20version\x20(','pathFromProject','maka\x20build\x20<opts>','force','getGlobalMeteorVersion',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','2764230yTHEDD'];a15c=function(){return v;};return a15c();}const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x180)]()[r(0x187)]('(((.+)+)+)+$')[r(0x180)]()['constructor'](a15a)[r(0x187)](r(0x17e));});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x17b;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a15s(0x185)]({'name':a15s(0x182),'usage':a15s(0x1a1),'validOpts':[a15s(0x1a2),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x197),'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':[a15s(0x189),a15s(0x193)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x17f)](c);if(d)this['runSubCommand'](c,a,b);else{const f=b['force'];if(!f){const i=this[t(0x18a)][t(0x1a3)](),j=this[t(0x18a)][t(0x19d)](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x18e)](t(0x19f)+j+t(0x1a4)+i+t(0x188));l&&this[t(0x18a)]['invokeMeteorCommand'](t(0x19a),[t(0x18d),i]);}}const g=[this[t(0x18a)][t(0x1a0)]({'pathParts':[t(0x182)]})]['concat'](process[t(0x17c)]['slice'](0x3)),h=a15e[t(0x194)](this[t(0x18a)][t(0x1a0)]({}),t(0x182),t(0x186));if(a15f['existsSync'](h)){const m=f??await Actions[t(0x18e)](t(0x192));if(!m)throw Log[t(0x19e)](t(0x191));}g[t(0x198)]((n,o)=>{const u=t;n===u(0x199)&&g[u(0x181)](o,0x2);}),this[t(0x18a)][t(0x184)]('build',g);}}catch(n){console['error'](n),process['exit'](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d
|
|
1
|
+
const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=-parseInt(F(0x110))/0x1*(parseInt(F(0x127))/0x2)+-parseInt(F(0x12c))/0x3*(parseInt(F(0xf0))/0x4)+parseInt(F(0xfe))/0x5+parseInt(F(0xf9))/0x6*(parseInt(F(0x119))/0x7)+-parseInt(F(0xee))/0x8+parseInt(F(0x121))/0x9*(parseInt(F(0xea))/0xa)+parseInt(F(0x10b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x77d9e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0xff)]()[H(0x11d)]('(((.+)+)+)+$')[H(0xff)]()[H(0xf7)](a16a)[H(0x11d)](H(0xfb));});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';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xd8;let f=c[d];return f;},a16d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a16I(0x132)]({'name':a16I(0xdf),'aliases':['d'],'usage':'maka\x20build:docker\x20<opts>','validOpts':[a16I(0xe6),a16I(0xf2),a16I(0xe5)],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':'\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','mustBeInMakaProject':!![],'examples':[a16I(0xe0),a16I(0x124)]},async function(a,b){const J=a16I;try{const c=await this['fsi'][J(0xdc)](),d=await this[J(0x11b)][J(0x11e)](),f=await this[J(0x11b)][J(0xe3)]();f===J(0x12e)&&(Log[J(0x108)](J(0xfc)),process[J(0x109)](0x1));const g=process[J(0xec)]===J(0x12d)?J(0x10c):J(0xdb),h=this['fsi']['pathFromProject']({}),i=a16f[J(0xeb)](h,J(0xd8));if(!this[J(0x11b)][J(0x11a)](i)){const s=a16h['findGenerator'](J(0x11c));s&&await s[J(0x115)](['dockerfile'],{'cwd':h,'config':d});}const j=this[J(0x11b)][J(0x106)]('docker');if(!j){const t=a16h['findGenerator'](J(0x111));if(t){await t[J(0x115)]([J(0xdf)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x11b)]['getConfigPath']('docker'),v=a16f[J(0xeb)](u,J(0x131));await this[J(0x11b)]['template']({'srcPath':J(0x104),'destPath':v,'context':{'app':d[J(0x116)],'isDocker':![]},'config':d});const w=a16f['join'](u,J(0x107));await this[J(0x11b)][J(0xef)]({'srcPath':'config/docker-compose.yaml','destPath':w,'context':{'app':d[J(0x116)],'appFileCase':paramCase(d[J(0x116)])},'config':d});}}if(this[J(0x11b)][J(0x11a)](c['cert'])){const x=this[J(0x11b)][J(0x10f)](a16f[J(0xeb)]('config',J(0xdf),'_keys'));!x&&a16g['mkdirSync'](a16f[J(0xeb)](J(0x111),J(0xdf),'_keys')),a16g[J(0xdd)](c[J(0xf4)],a16f[J(0xeb)](h,'config',J(0xdf),J(0x112),J(0x103)));}const k=[J(0x11f),a16f[J(0xeb)](this[J(0x11b)][J(0xe9)](),J(0x11f)),J(0x125),J(0x10e)],l=this[J(0x11b)][J(0xf8)](a16f[J(0xeb)](this[J(0x11b)][J(0xf5)]({}),J(0xda),J(0xe2),J(0x123))),m=l[J(0xfd)]>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0xe7)]:await Actions[J(0xf6)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[J(0xfa)]?d['serverPort']:await Actions[J(0xf6)](J(0x117));if(y[J(0xfd)]==0x0||z[J(0xfd)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z==J(0xe1)?J(0x105):J(0x102);k[J(0x122)](J(0x128)+A+J(0x10d)+y+':'+z);if(!d['serverName']&&!d[J(0xfa)]){const B=await Actions['confirm'](J(0x126));B&&(this[J(0x11b)][J(0x12b)]('serverName',y),this[J(0x11b)][J(0x12b)](J(0xfa),z),Log['notice'](J(0xe4)+a16f['join'](J(0x129),'config.json')));}}const n=a16f[J(0xeb)](this[J(0x11b)][J(0xf5)]({}),J(0x11f),J(0x12f));if(a16g[J(0xed)](n)){const C=await Actions['confirm'](J(0x101)),D=C;D&&(execSync(g+J(0x113),{'cwd':this[J(0x11b)][J(0xde)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[J(0xeb)]('\x20'),{'cwd':this[J(0x11b)][J(0xde)](),'stdio':'inherit'}));}else execSync(g+J(0x113),{'cwd':this[J(0x11b)]['findAppDirectory'](),'stdio':J(0xf1)}),Log['notice'](J(0x100)+k[J(0xeb)]('\x20')),execSync(g+'\x20'+k[J(0xeb)]('\x20'),{'cwd':this[J(0x11b)][J(0xde)](),'stdio':J(0x120)});const o=this['fsi'][J(0xf5)]({});let p=J(0xd9)+paramCase(d[J(0x116)])+J(0x12a);b[J(0xf2)]&&(p=J(0xd9)+b['tag']);Log['notice']('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log['notice'](J(0xf3)+p),Log['notice'](J(0x130)+o);const q=b['debug']?J(0x10a):'',r=J(0x114)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x120)}),Log['notice'](J(0x118));}catch(E){console[J(0x108)](E),process['exit'](0x0);}},a16e);function a16c(){const K=['docker\x20build\x20--build-arg\x20NODE_VERSION=','invoke','appName','Mobile\x20server\x20port:\x20','Try\x20\x27maka\x20run:docker\x27','2373651qzkEDu','isFile','fsi','dockerfile','search','getProjectConfig','build','inherit','324wvcMVS','push','platforms','maka\x20build:docker\x20--debug','--architecture','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','1495522GPGVsh','--server=','.maka',':latest','setProjectConfig','3zacRkq','win32','N/A','app.tar.gz','Docker\x20Context\x20Path:\x20','pm2.config.js','create','Dockerfile','-t\x20','app','meteor','getGlobalConfig','copyFileSync','findAppDirectory','docker','maka\x20build:docker\x20--tag','443','.meteor','getProjectsMeteorNodeVersion','Stored\x20server\x20config\x20to\x20','debug','force','serverName','apply','findProjectDirectory','106790nVOebU','join','platform','existsSync','598688niOMBD','template','933748CVFNvv','ignore','tag','Tagging\x20Docker\x20Image:\x20','cert','pathFromProject','ask','constructor','readFileLines','6NiAffr','serverPort','(((.+)+)+)+$','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).','length','2459690KWnEAX','toString','[*]\x20maka\x20','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','http','cert.pem','config/pm2.config.js','https','checkConfigExists','docker-compose.yaml','error','exit','--progress=plain\x20--no-cache','3646159PQGatl','meteor.bat','://','os.linux.x86_64','isDirectory','1agnKJh','config','_keys','\x20npm\x20install\x20--save'];a16c=function(){return K;};return a16c();}
|