@maka/maka-cli 4.5.16 → 4.5.17
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 +1 -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/sideQuest/commands.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/inventory.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/puzzles.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/eventBus.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.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/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/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,7 +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.5.
|
|
4
|
+
"version": "4.5.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
7
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0r=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0xfd))/0x1*(-parseInt(p(0x100))/0x2)+parseInt(p(0x108))/0x3+-parseInt(p(0xfa))/0x4*(parseInt(p(0xec))/0x5)+-parseInt(p(0xe0))/0x6+parseInt(p(0xd1))/0x7+-parseInt(p(0xfb))/0x8+-parseInt(p(0xd3))/0x9*(-parseInt(p(0xda))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xab6da));const a0b=(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;};}()),a0a=a0b(this,function(){const q=a0d;return a0a['toString']()[q(0x105)](q(0xf9))[q(0xf8)]()[q(0xcb)](a0a)[q(0x105)](q(0xf9));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xb6;let f=c[d];return f;},a0d(a,b);}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0r(0xc9)];[a0r(0x103)];constructor(a,b){const s=a0r;super();if(!a)throw new Error(s(0x101));if(!a[s(0x102)])throw new Error(s(0xf0));if(typeof b!==s(0xcd))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[s(0xc9)]=Object['assign']({},a),this[s(0x102)]=this['options'][s(0x102)],this[s(0x103)]=[],this['_handler']=b[s(0xed)](this);}static[a0r(0xdd)](a,b,c){const t=a0r;if(!a)throw new Error(t(0xc5));if(typeof b!==t(0xcd))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[t(0xd4)](d,{'parent':c?.[t(0xc9)]?.['name']}),c[t(0xc2)](d),d;}['addCommand'](a){if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands']['push'](a);}async[a0r(0xcc)](a,b){const u=a0r,c=this[u(0x107)](a[0x0]);if(c){const d=c?.[u(0x102)]||a[0x0],e=c?.['parent']||'',f=c?.['options'];if(f[u(0xfe)])return;const g=a[0x0],h=Object[u(0xf3)](b),i=await this[u(0xe9)][u(0xd2)]();!i&&(Log['error'](u(0xbf)),process[u(0xce)](0x1));const j=i?.[u(0xd7)][u(0xbd)](d)||i?.['proCommands'][u(0xbd)](e),k=i?.[u(0xf7)][u(0xbd)]('singleLicense')||i?.[u(0xf7)][u(0xbd)]('domainLicense'),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+u(0xf4);if(h['length']>0x0){const m=i?.[u(0xc6)]['filter'](n=>h['includes'](n));if(m&&m[u(0xee)]>0x0&&l)throw u(0xb9)+m?.[u(0xe5)](',\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[u(0xe9)][u(0xd2)](),o=n?.['proCommands'][u(0xbd)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw u(0xd8)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a0r(0xe6)](a,b){const v=a0r;try{a=a||[],b=b||{};try{await this['validateMakaSubscription'](a,b);}catch(c){Log[v(0xff)](c),process[v(0xce)](0x0);}await this[v(0xd5)](a,b);}catch(d){process['exit'](0x1);}}async['invoke'](a,b){const w=a0r,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this['options'][w(0x102)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[w(0x103)][w(0xee)]>=0x0;if(f&&b[w(0xb7)]){if(this[w(0x103)][w(0xee)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[w(0xb7)]){if(this[w(0xc9)][w(0xb6)]){const g=this[w(0xdf)]();if(!g)throw new MustBeInProjectError();}if(this[w(0xc9)][w(0xcf)]){const h=this[w(0xc1)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[w(0xc9)][w(0xde)]==='number'){if(a['length']<this[w(0xc9)][w(0xde)]){Log['error'](w(0xf5));throw new UsageError();}}if(typeof this['options'][w(0xd0)]===w(0xef)){if(a['length']>=this['options'][w(0xd0)]){Log[w(0xff)](w(0xbc));throw new UsageError();}}if(typeof this[w(0xc9)][w(0xbb)]==='number'){if(Object[w(0xf3)](b)['length']<this[w(0xc9)][w(0xbb)]){Log['error'](w(0xbe));throw new UsageError();}}if(typeof this[w(0xc9)][w(0xe3)]===w(0xef)){if(Object[w(0xf3)](b)['length']>=this[w(0xc9)][w(0xe3)]){Log[w(0xff)](w(0xf1));throw new UsageError();}}}}this['validateParams'](a,b,this[w(0xc9)]),_prevCmd=a[0x0];}await this[w(0xc8)]['call'](this,a,b);}catch(i){Log['usage'](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[w(0xe8)](w(0xe1)),this[w(0xd9)](this[w(0x103)]),Log[w(0xf2)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(i instanceof MustBeInProjectError)Log[w(0xff)](w(0xca));else{if(i instanceof NoMeteorFoundError)Log[w(0xff)](w(0xdc)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(i instanceof NoMeteorAppFoundError)Log[w(0xff)](w(0xf6));else throw i;}}}process[w(0xce)](0x1);}}[a0r(0xd9)](a){const x=a0r,b=new a0e({});b[x(0xd6)]([x(0xeb),x(0xfc),x(0xc7)]),a[x(0xc4)]()[x(0xe4)](c=>{const y=x;c[y(0x102)]!==y(0xb8)&&c[y(0x102)]!==y(0xdb)&&b[y(0xd6)]([c[y(0x102)],c[y(0x104)](),c[y(0xe2)]()]);}),Log[x(0xc3)](b[x(0xf8)]());}['findCommand'](a){const z=a0r;return this[z(0x103)][z(0xea)](b=>b['match'](a));}[a0r(0xba)](a){const A=a0r,b=a?.['split'](':');if(b)return a=b[0x0],this[A(0x107)](a);else return;}async['runSubCommand'](a,b,c){const B=a0r;try{const d=a[B(0xe7)](':');a=d[0x0];const f=d[0x1];f&&b[B(0xc0)](0x0,0x0,f);const g=this[B(0x107)](a);if(g)await g[B(0xe6)](b,c);else throw B(0x106);}catch(h){throw Log[B(0xff)](h);}}}function a0c(){const C=['invoke','push','proCommands','To\x20use\x20this\x20command,\x20\x22','tableList','16089170nvRrzV','play','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','create','minArgLength','validateMakaProject','4745076uzCSlF','Sub-Commands:','shortDesc','maxOptsLength','forEach','join','run','split','notice','fsi','find','Name','526015HWYzAX','bind','length','number','Command\x20requires\x20a\x20name','Too\x20many\x20options','header','keys','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Too\x20few\x20arguments','There\x20is\x20no\x20Meteor\x20application\x20here','roles','toString','(((.+)+)+)+$','16hOOFQr','1722728wLxMKp','Alias','6871ACKCgt','disableAuthCheck','error','130czKElJ','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','name','_commands','aliases','search','Command\x20not\x20found','findCommand','2592582oFgiiu','mustBeInMakaProject','help','murder','To\x20use\x20these\x20pro\x20flags,\x20\x22','findSubCommand','minOptsLength','Too\x20many\x20arguments','includes','Too\x20few\x20options','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','splice','validateMeteorInstall','addCommand','bright','sort','Command.create\x20requires\x20some\x20options!','proFlags','Description','_handler','options','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','constructor','validateMakaSubscription','function','exit','mustHaveMeteorInstalled','maxArgLength','718711wUUcSL','getPro','9fZczTx','assign'];a0c=function(){return C;};return a0c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x109))/0x1+-parseInt(f(0x110))/0x2*(parseInt(f(0x108))/0x3)+-parseInt(f(0x111))/0x4+-parseInt(f(0x10a))/0x5*(parseInt(f(0x105))/0x6)+parseInt(f(0x113))/0x7+-parseInt(f(0x107))/0x8*(parseInt(f(0x106))/0x9)+parseInt(f(0x10d))/0xa*(parseInt(f(0x10b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x1ff13));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x112)]()[h(0x10c)]('(((.+)+)+)+$')[h(0x112)]()['constructor'](a1a)[h(0x10c)](h(0x10f));});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';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';function a1c(){var i=['5rquxls','11sWtblI','search','2204810dRuCCv','apply','(((.+)+)+)+$','4762AbMMID','708932JCxpre','toString','1606402THYwVZ','214512QCnmll','270801wYezRa','32pEMRxt','288VKPFFl','242785UbcGkL'];a1c=function(){return i;};return a1c();}import'./reconfig.js';import'./ssh.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x105;var f=c[d];return f;},a1d(a,b);}import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a2d,c=a();while(!![]){try{var d=-parseInt(f(0x15c))/0x1*(parseInt(f(0x15f))/0x2)+parseInt(f(0x158))/0x3+parseInt(f(0x15d))/0x4+parseInt(f(0x159))/0x5+parseInt(f(0x160))/0x6+-parseInt(f(0x156))/0x7+parseInt(f(0x161))/0x8*(parseInt(f(0x157))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe541b));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(0x15e)]()[g(0x155)]('(((.+)+)+)+$')[g(0x15e)]()[g(0x15b)](a2a)[g(0x155)](g(0x15a));});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=['(((.+)+)+)+$','constructor','19EucqdB','1464420xvdJKu','toString','83796THkcWR','4054308iOZlWI','8488iUmTtE','search','9670465lIQBvn','7857UrkJmO','756408yePupw','4481900BZkYfJ'];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';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x155;var f=c[d];return f;},a2d(a,b);}import'./rkp.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d
|
|
1
|
+
const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=parseInt(f(0x18a))/0x1*(-parseInt(f(0x185))/0x2)+-parseInt(f(0x187))/0x3+parseInt(f(0x17a))/0x4*(parseInt(f(0x177))/0x5)+parseInt(f(0x17b))/0x6+parseInt(f(0x189))/0x7+-parseInt(f(0x17e))/0x8*(parseInt(f(0x188))/0x9)+-parseInt(f(0x179))/0xa*(-parseInt(f(0x186))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x8aa05));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x180)]()[h(0x183)](h(0x182))[h(0x180)]()[h(0x184)](a3a)[h(0x183)](h(0x182));});a3a();function a3c(){const k=['2863735RwzZYF','11dZMQvf','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','findSubCommand','create','runSubCommand','35WmwhQZ','aws','10UFZeUG','164444OKCIRm','4386756raJtAC','error','apply','16SlmiLK','\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','toString','Sub\x20Command\x20not\x20found','(((.+)+)+)+$','search','constructor','83506ajRXza','3152446cyZTDf','1113858clrlru','1422954ZEQail'];a3c=function(){return k;};return a3c();}import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x176;let f=c[d];return f;},a3d(a,b);}import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0x18d)]({'name':a3i(0x178),'usage':'maka\x20aws:<sub-command>','minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0x18b),'description':a3i(0x17f)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x18c)](c);if(d)this[j(0x176)](c,a,b);else{Log[j(0x17c)](j(0x181));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=parseInt(ae(0x1cd))/0x1+parseInt(ae(0x21d))/0x2*(-parseInt(ae(0x218))/0x3)+-parseInt(ae(0x1bc))/0x4+parseInt(ae(0x1d7))/0x5*(parseInt(ae(0x207))/0x6)+parseInt(ae(0x1d0))/0x7*(-parseInt(ae(0x1ee))/0x8)+-parseInt(ae(0x1cb))/0x9+parseInt(ae(0x220))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x6aa1f));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x20a)]()[ag(0x202)](ag(0x1dc))[ag(0x20a)]()[ag(0x1e1)](a4a)[ag(0x202)](ag(0x1dc));});function a4c(){const au=['Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','22,80,443','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','12EgzLCI','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka-cli','toString','forEach','bright','unlinkSync','**\x20Available\x20Security\x20Groups\x20**','name','Setting\x20SG\x20ID\x20to:\x20','\x20:\x20','maka\x20aws:create-instance\x20--env\x20dev','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','**\x20Available\x20AMIs\x20**','number','success','Remove\x20the\x20security\x20group\x20','4449gjsIab','Remove\x20the\x20keypair\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','isFile','date','1170FYbfEG','push','ec2create','9011440PNikNG','subnet','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','notice','ImageID:','desc','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getSecurityGroups','cidr','1734756hhQlfy','*\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','ec2createSG','Would\x20you\x20like\x20to\x20include\x20user\x20data?','ask','deleteSecurityGroup','string','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Create\x20new\x20AWS\x20instance','join','split','cider','sgId','Instace\x20Type:\x20','apply','537840sHKswv','maka\x20aws:ci\x20--env\x20prod','309626ujfeUe','sort','subnetId','33019bEbDUq','Name','ID:\x20','Creating\x20user\x20data\x20file\x20in\x20','**\x20Available\x20Subnets\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','environment','1974580kBhIqo','\x20CIDR:\x20','user-data','amazon','error','(((.+)+)+)+$','1:1','\x20SUBNETID:\x20','\x20AZONE:\x20','User\x20Data:','constructor','getTime','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','build\x20on\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','confirm','\x20SGID:\x20','Setting\x20AMI\x20ID\x20to\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Security\x20Group\x20Name:\x20[','createKeyPair','fsi','t3.micro','344cYpJJi','alias','**\x20Available\x20key-pairs\x20**','readFileSync','Desc','Instance\x20Count:\x20','create','exit','Setting\x20the\x20key-pair\x20to:\x20','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=*','Security\x20Group:\x20','maka\x20aws:create-instance\x20<opts>','Setting\x20Subnet\x20ID\x20to\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','log','create-instance','parse','env','\x20DESCRIPTION:\x20','search','chooseVPC'];a4c=function(){return au;};return a4c();}a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a4d(a,b);}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';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ah(0x1f4)]({'name':a4ah(0x1fe),'aliases':['ci'],'usage':a4ah(0x1f9),'examples':[a4ah(0x212),a4ah(0x1cc)],'mustBeInMakaProject':!![],'requiredOpts':[a4ah(0x200)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ah(0x1c4),'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 ai=a4ah;try{const c=this[ai(0x1ec)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1ec)]['getConfigFromShorthand'](b[ai(0x200)]),i=this[ai(0x1ec)]['getConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1c0)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1e6)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1eb)]({'env':h});r=y,s=z,Log[ai(0x216)](ai(0x1f6)+r);}else try{Log[ai(0x1b6)](ai(0x1f0));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask'](ai(0x1fb))||'-1';if(parseInt(C)<0x0){Log[ai(0x1db)](ai(0x1d5)),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x20f)],Log[aj(0x216)](aj(0x1f6)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x203)]();const t=await Actions[ai(0x1e6)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0x1c0)](ai(0x1ea)+k+']')||k;const F=await Actions[ai(0x1c0)](ai(0x1fc))||ai(0x205),G=F[ai(0x1c6)](',');await d[ai(0x1be)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1ba)](u);if(I===''){Log[ai(0x1b6)](ai(0x20e)),J['forEach'](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x1d2)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x20f)]+ak(0x1e7)+L[ak(0x1c8)]):Log[ak(0x20c)](ak(0x1d2)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x20f)]+ak(0x1e7)+L['sgId']);});const K=await Actions[ai(0x1c0)](ai(0x1c3)+H+']\x20')||H[ai(0x20a)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x216)](al(0x210)+m+'\x0a'));});}else m=I,Log[ai(0x216)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1db)](ai(0x208));}catch(L){Log[ai(0x1db)](L);}try{const M=0x7e6;Log['notice'](ai(0x214));const N=execSync(ai(0x1f7)+M+ai(0x1bd))[ai(0x20a)](),O=JSON[ai(0x1ff)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x1ef)]===am(0x1da)){const T=S[am(0x1f2)][am(0x1c6)](am(0x1e4))[0x1];P[am(0x21e)]({'amiId':S['ID'],'desc':S[am(0x1f2)],'date':T});}}),P[ai(0x1ce)](function(S,T){const an=ai;return new Date(T[an(0x21c)])['getTime']()-new Date(S[an(0x21c)])[an(0x1e2)]();}),P[ai(0x20b)](function(S,T){const ao=ai;Q[ao(0x21e)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0x1b8)]});}),Q[ai(0x20b)](function(S){const ap=ai;console[ap(0x1fd)]('ID:\x20'+S['id']+'\x20AMIID:\x20'+S['amiId']+ap(0x201)+S[ap(0x1b8)]);});const R=await Actions[ai(0x1c0)](ai(0x1b9))||'0';Q[ai(0x20b)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x216)](aq(0x1e8)+n+aq(0x211)+S[aq(0x1b8)]));});if(n==='')throw Log['error'](ai(0x208));}catch(S){Log[ai(0x1db)](S);}try{Log[ai(0x1b6)](ai(0x1d4));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x20a)](),U=JSON['parse'](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x21e)]({'id':Y,'cidr':X[ar(0x1c7)],'az':X['az'],'subnetId':X[ar(0x1cf)]});}),V['forEach'](function(X){const as=ai;console[as(0x1fd)]('ID:\x20'+X['id']+as(0x1d8)+X[as(0x1bb)]+as(0x1df)+X['az']+as(0x1de)+X[as(0x1cf)]);});const W=await Actions[ai(0x1c0)](ai(0x222))||'0';V[ai(0x20b)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1cf)],Log['success'](at(0x1fa)+p));});if(p==='')throw Log[ai(0x1db)](ai(0x208));}catch(X){Log[ai(0x1db)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1c0)](ai(0x21a))||ai(0x1dd),Z=Y[ai(0x1c6)](':')[0x0],a0=Y[ai(0x1c6)](':')[0x1];typeof parseInt(Z)===ai(0x215)&&typeof parseInt(a0)===ai(0x215)&&Log[ai(0x216)](ai(0x206)+Z+':'+a0);}catch(a1){Log[ai(0x1db)](a1);}try{const a2=await Actions[ai(0x1c0)](ai(0x1e9))||ai(0x1ed);typeof a2===ai(0x1c2)&&(o=a2);}catch(a3){Log['error'](a3);}let x;try{const a4=await Actions[ai(0x1e6)](ai(0x1bf),![]);a4&&(x=a4f[ai(0x1c5)](i,ai(0x1d9)),Log['notice'](ai(0x1d3)+x),await this[ai(0x1ec)]['createFile']({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0x1db)](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x20a)]())[0x0][ai(0x221)];Log[ai(0x1b6)](ai(0x1b7)+n),Log['notice'](ai(0x1f3)+v+':'+w),Log[ai(0x1b6)](ai(0x1c9)+o),Log[ai(0x1b6)]('Key-Pair:\x20'+r),Log['notice'](ai(0x1f8)+m),Log[ai(0x1b6)]('Subnet:\x20'+a6);if(x){Log['notice'](ai(0x1e0)+x);const a8=a4g[ai(0x1f1)](x);Log[ai(0x1b6)](a8);}const a7=await Actions[ai(0x1e6)](ai(0x1e5));if(a7){const a9=await d[ai(0x21f)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x209)},{'Key':ai(0x1d6),'Value':h},{'Key':ai(0x1d1),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x216)](ai(0x204)),Log[ai(0x20c)](ai(0x213)));}else{Log['notice'](ai(0x1e3));const aa=await Actions[ai(0x1e6)](ai(0x219)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x21b)](s)&&a4g[ai(0x20d)](s));const ab=await Actions[ai(0x1e6)](ai(0x217)+m+'\x20?',!![]);ab&&d[ai(0x1c1)](m);}}catch(ac){console[ai(0x1fd)](ac),Log[ai(0x1db)](ac);}}catch(ad){console[ai(0x1db)](ad),process[ai(0x1f5)](0x0);}},a4e);
|
|
1
|
+
const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x201))/0x1+parseInt(ae(0x246))/0x2+-parseInt(ae(0x229))/0x3+parseInt(ae(0x205))/0x4*(parseInt(ae(0x22b))/0x5)+parseInt(ae(0x23f))/0x6*(-parseInt(ae(0x216))/0x7)+-parseInt(ae(0x234))/0x8*(parseInt(ae(0x254))/0x9)+parseInt(ae(0x1ef))/0xa*(parseInt(ae(0x222))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x26e00));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x213)]()['search'](ag(0x237))[ag(0x213)]()['constructor'](a4a)['search'](ag(0x237));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a4d(a,b);}import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a4c(){const au=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','**\x20Available\x20key-pairs\x20**','desc','User\x20Data:','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','ID:\x20','number','Setting\x20the\x20key-pair\x20to:\x20','user-data','confirm','1:1','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','toString','amazon','t3.micro','1582GlGVLx','isFile','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','createKeyPair','Remove\x20the\x20keypair\x20','readFileSync','create-instance','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','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','**\x20Available\x20AMIs\x20**','**\x20Available\x20Security\x20Groups\x20**','forEach','11ROnASu','Security\x20Group:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','22,80,443','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Instace\x20Type:\x20','ec2create','155898JNrwIc','env','14930VoeuFJ','log','ImageID:','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=*','No\x20instance\x20has\x20been\x20created.','\x20SGID:\x20','bright','success','chooseVPC','848MiSdXO','deleteSecurityGroup','Please\x20choose\x20a\x20key\x20to\x20use:\x20','(((.+)+)+)+$','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Remove\x20the\x20security\x20group\x20','unlinkSync','alias','\x20SG\x20NAME:\x20','Subnet:\x20','*\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','90PjcVZx','cidr','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20DESCRIPTION:\x20','ask','630402ZgDRDh','Instance\x20Count:\x20','Setting\x20AMI\x20ID\x20to\x20','getProjectConfig','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\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','Desc','notice','name','sort','environment','\x20AMIID:\x20','26883MDaNwB','fsi','ec2describeKeys','Web\x20App','4133290hxPYFg','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','deleteKeyPair','build\x20on\x20','created-by','getTime','error','subnetId','amiId','apply','push','sgId','date','maka\x20aws:create-instance\x20--env\x20dev','maka-cli','parse','split','maka\x20aws:ci\x20--env\x20prod','206278CHpXgB','\x20CIDR:\x20','Create\x20new\x20AWS\x20instance','EC2\x20Name:\x20[','12Dayawi'];a4c=function(){return au;};return a4c();}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a4ah(0x21c),'aliases':['ci'],'usage':'maka\x20aws:create-instance\x20<opts>','examples':[a4ah(0x1fc),a4ah(0x200)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ah(0x203),'description':a4ah(0x24d)},async function(a,b){const ai=a4ah;try{const c=this['fsi'][ai(0x249)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x255)]['getConfigFromShorthand'](b[ai(0x22a)]),i=this[ai(0x255)]['getConfigPath'](h),j=g+'-'+h,k=await Actions['ask'](ai(0x204)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x219)]({'env':h});r=y,s=z,Log['success'](ai(0x20e)+r);}else try{Log[ai(0x24f)](ai(0x207));const A=r?r:k,B=await d[ai(0x256)]({'suggestion':A}),C=await Actions[ai(0x245)](ai(0x236))||'-1';if(parseInt(C)<0x0){Log[ai(0x1f5)](ai(0x21d)),Log[ai(0x24f)](ai(0x22f));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x232)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x1f5)](D);}l=await d[ai(0x233)]();const t=await Actions[ai(0x210)](ai(0x20a),!![]);let u;if(t){const E=l===''?await d[ai(0x233)]():l;u=await Actions[ai(0x245)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ai(0x206))||ai(0x225),G=F[ai(0x1ff)](',');await d['ec2createSG']({'description':ai(0x257),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log['notice'](ai(0x220)),J[ai(0x221)](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x20c)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x250)]+ak(0x230)+L['sgId']):Log['bright']('ID:\x20'+L['id']+ak(0x23c)+L[ak(0x250)]+ak(0x230)+L[ak(0x1fa)]);});const K=await Actions[ai(0x245)](ai(0x226)+H+']\x20')||H[ai(0x213)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1fa)],Log['success']('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0x232)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1f5)](ai(0x24c));}catch(L){Log[ai(0x1f5)](L);}try{const M=0x7e6;Log[ai(0x24f)](ai(0x21f));const N=execSync(ai(0x22e)+M+ai(0x23e))[ai(0x213)](),O=JSON[ai(0x1fe)](N),P=[],Q=[];O[ai(0x221)](function(S){const am=ai;if(S[am(0x23b)]===am(0x214)){const T=S[am(0x24e)]['split'](am(0x1f2))[0x1];P[am(0x1f9)]({'amiId':S['ID'],'desc':S[am(0x24e)],'date':T});}}),P[ai(0x251)](function(S,T){const an=ai;return new Date(T[an(0x1fb)])[an(0x1f4)]()-new Date(S['date'])[an(0x1f4)]();}),P[ai(0x221)](function(S,T){const ao=ai;Q[ao(0x1f9)]({'id':T,'amiId':S[ao(0x1f7)],'desc':S[ao(0x208)]});}),Q[ai(0x221)](function(S){const ap=ai;console['log'](ap(0x20c)+S['id']+ap(0x253)+S[ap(0x1f7)]+ap(0x244)+S[ap(0x208)]);});const R=await Actions[ai(0x245)](ai(0x243))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1f7)],Log['success'](aq(0x248)+n+aq(0x24b)+S[aq(0x208)]));});if(n==='')throw Log[ai(0x1f5)](ai(0x24c));}catch(S){Log[ai(0x1f5)](S);}try{Log['notice']('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x218))[ai(0x213)](),U=JSON['parse'](T),V=[];U[ai(0x221)](function(X,Y){const ar=ai;V[ar(0x1f9)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x1f6)]});}),V[ai(0x221)](function(X){const as=ai;console[as(0x22c)](as(0x20c)+X['id']+as(0x202)+X[as(0x240)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[as(0x1f6)]);});const W=await Actions[ai(0x245)](ai(0x24a))||'0';V[ai(0x221)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1f6)],Log[at(0x232)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x1f5)](ai(0x24c));}catch(X){Log[ai(0x1f5)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x211),Z=Y[ai(0x1ff)](':')[0x0],a0=Y[ai(0x1ff)](':')[0x1];typeof parseInt(Z)===ai(0x20d)&&typeof parseInt(a0)===ai(0x20d)&&Log[ai(0x232)](ai(0x1f0)+Z+':'+a0);}catch(a1){Log[ai(0x1f5)](a1);}try{const a2=await Actions[ai(0x245)](ai(0x238))||ai(0x215);typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x1f5)](a3);}let x;try{const a4=await Actions[ai(0x210)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a4f['join'](i,ai(0x20f)),Log[ai(0x24f)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x255)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x210)](ai(0x20b)));}catch(a5){Log[ai(0x1f5)](a5);}try{const a6=JSON[ai(0x1fe)](execSync(ai(0x242)+p+ai(0x241))[ai(0x213)]())[0x0]['subnet'];Log[ai(0x24f)](ai(0x22d)+n),Log['notice'](ai(0x247)+v+':'+w),Log[ai(0x24f)](ai(0x227)+o),Log[ai(0x24f)]('Key-Pair:\x20'+r),Log[ai(0x24f)](ai(0x223)+m),Log[ai(0x24f)](ai(0x23d)+a6);if(x){Log[ai(0x24f)](ai(0x209)+x);const a8=a4g[ai(0x21b)](x);Log['notice'](a8);}const a7=await Actions[ai(0x210)](ai(0x224));if(a7){const a9=await d[ai(0x228)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1f3),'Value':ai(0x1fd)},{'Key':ai(0x252),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x232)](ai(0x212)),Log[ai(0x231)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x24f)](ai(0x21e));const aa=await Actions[ai(0x210)](ai(0x21a)+r+'\x20?',!![]);aa&&(d[ai(0x1f1)](r),f[ai(0x217)](s)&&a4g[ai(0x23a)](s));const ab=await Actions[ai(0x210)](ai(0x239)+m+'\x20?',!![]);ab&&d[ai(0x235)](m);}}catch(ac){console[ai(0x22c)](ac),Log[ai(0x1f5)](ac);}}catch(ad){console[ai(0x1f5)](ad),process['exit'](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5i=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x146))/0x1+parseInt(g(0x13d))/0x2*(-parseInt(g(0x13f))/0x3)+parseInt(g(0x14b))/0x4+parseInt(g(0x141))/0x5*(-parseInt(g(0x137))/0x6)+parseInt(g(0x140))/0x7+parseInt(g(0x149))/0x8+-parseInt(g(0x14d))/0x9*(-parseInt(g(0x147))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x7342a));function a5c(){const k=['exit','2344026VaykTW','error','create-key-pair','(((.+)+)+)+$','\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','search','6458QTipff','create','711WzzQED','2882215LQPpKP','5ifRJLj','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','constructor','fsi','maka\x20aws:ckp\x20--env\x20prod','582497ZMLzoV','90swQhrh','ckp','2309928YAPsNo','getConfigFromShorthand','1983692PWYfye','env','1014138iaTGJn'];a5c=function(){return k;};return a5c();}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['toString']()[h(0x13c)](h(0x13a))['toString']()[h(0x143)](a5a)[h(0x13c)](h(0x13a));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x136;let f=c[d];return f;},a5d(a,b);}Command[a5i(0x13e)]({'name':a5i(0x139),'aliases':[a5i(0x148)],'usage':'maka\x20aws:create-key-pair\x20<opts>','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a5i(0x145)],'mustBeInMakaProject':!![],'requiredOpts':[a5i(0x14c)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5i(0x142),'description':a5i(0x13b)},async function(a,b){const j=a5i;try{const c=new AWS(),d=this[j(0x144)][j(0x14a)](b[j(0x14c)]);c['createKeyPair']({'env':d});}catch(f){console[j(0x138)](f),process[j(0x136)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6o=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0xb6))/0x1+-parseInt(m(0xc3))/0x2*(parseInt(m(0xbe))/0x3)+-parseInt(m(0xbc))/0x4+-parseInt(m(0xbb))/0x5*(parseInt(m(0xd0))/0x6)+-parseInt(m(0xd1))/0x7*(parseInt(m(0xbd))/0x8)+parseInt(m(0xca))/0x9*(-parseInt(m(0xbf))/0xa)+-parseInt(m(0xd2))/0xb*(-parseInt(m(0xb9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x8f22c));const a6b=(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;};}()),a6a=a6b(this,function(){const n=a6d;return a6a[n(0xc9)]()['search'](n(0xcf))[n(0xc9)]()[n(0xb8)](a6a)['search'](n(0xcf));});a6a();import a6e from'./aws.command.js';function a6c(){const q=['ask','maka\x20aws:create-secuirty-group','getProjectConfig','22,80,443','toString','9069642Ntkral','exit','name','Security\x20Group\x20Name:\x20[','create','(((.+)+)+)+$','307788TZxqrS','21rUUlXr','77JuYDuZ','1129118lgFXFe','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','constructor','9138516wAfMzp','create-security-group','90LsdPKX','2586012deHAOj','1970768JACjRL','896268sPpsrN','10VjTsjr','Web\x20App','ec2createSG','\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','2sSGgAu','forEach'];a6c=function(){return q;};return a6c();}import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xb6;let f=c[d];return f;},a6d(a,b);}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[a6o(0xce)]({'name':a6o(0xba),'aliases':['csg'],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6o(0xb7),'description':a6o(0xc2),'examples':[a6o(0xc6),'maka\x20aws:csg']},async function(a,b){const p=a6o;try{const c=new AWS(),d=this['fsi'][p(0xc7)](),{appName:f}=d,g=await c['chooseVPC'](),h=b['name']?b[p(0xcc)]:''+f,i=await Actions['ask'](p(0xcd)+h+']')||h,j=await Actions[p(0xc5)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||p(0xc8),k=j['split'](',');k[p(0xc4)](l=>{if(!l['match'](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[p(0xc1)]({'description':p(0xc0),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log['error'](l),process[p(0xcb)](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a7i=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x15b;let f=c[d];return f;},a7d(a,b);}(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(0x171))/0x1*(-parseInt(f(0x170))/0x2)+parseInt(f(0x15b))/0x3+parseInt(f(0x167))/0x4*(-parseInt(f(0x15c))/0x5)+-parseInt(f(0x160))/0x6*(parseInt(f(0x169))/0x7)+parseInt(f(0x16e))/0x8+-parseInt(f(0x15d))/0x9+parseInt(f(0x16a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xcca69));function a7c(){const k=['2nSiNsn','515771vYHPky','2477922ilAunP','2292735zQolWD','3280815rUPFTP','constructor','ec2describeInstances','758766tyjGqW','maka\x20aws:di','toString','exit','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','describe-instances','maka\x20aws:describe-instances','12WgQCNH','\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','21UpxSGU','9758570ChRocT','apply','search','(((.+)+)+)+$','13373984JfkhrL','create'];a7c=function(){return k;};return a7c();}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x162)]()[h(0x16c)](h(0x16d))['toString']()[h(0x15e)](a7a)[h(0x16c)](h(0x16d));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x16f)]({'name':a7i(0x165),'aliases':['di'],'usage':a7i(0x166),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x164),'examples':[a7i(0x166),a7i(0x161)],'description':a7i(0x168)},async function(){const j=a7i;try{const a=new AWS();a[j(0x15f)]();}catch(b){console['error'](b),process[j(0x163)](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(0x167))/0x1+-parseInt(f(0x161))/0x2+parseInt(f(0x15d))/0x3+parseInt(f(0x165))/0x4+-parseInt(f(0x164))/0x5*(parseInt(f(0x15e))/0x6)+-parseInt(f(0x166))/0x7+parseInt(f(0x16b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x5929e));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x16c)]()[h(0x162)](h(0x168))[h(0x16c)]()['constructor'](a8a)[h(0x162)]('(((.+)+)+)+$');});function a8c(){const k=['3894jCrTaQ','maka\x20aws:dkp','exit','1274308ofRnQs','search','maka\x20aws:describe-key-pairs','320RJHanN','1089292bCcRGo','4861297ijKrfL','635517RgWXkv','(((.+)+)+)+$','dkp','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','3959264kEnJEB','toString','error','create','apply','1006881FjDANM'];a8c=function(){return k;};return a8c();}a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x15c;let f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0x16e)]({'name':'describe-key-pairs','aliases':[a8i(0x169)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x16a),'examples':[a8i(0x163),a8i(0x15f)]},async function(){const j=a8i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){console[j(0x16d)](b),process[j(0x160)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9o=a9d;
|
|
1
|
+
const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(0x186))/0x1+-parseInt(l(0x196))/0x2+-parseInt(l(0x1a0))/0x3*(parseInt(l(0x19a))/0x4)+parseInt(l(0x1ab))/0x5+parseInt(l(0x19b))/0x6*(parseInt(l(0x19f))/0x7)+-parseInt(l(0x1a7))/0x8*(parseInt(l(0x1ad))/0x9)+-parseInt(l(0x187))/0xa*(-parseInt(l(0x18a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x66ae5));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a['toString']()[n(0x19d)](n(0x1a8))['toString']()[n(0x1a6)](a9a)['search']('(((.+)+)+)+$');});a9a();function a9c(){const s=['Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','apply','getSecurityGroups','getProjectConfig','maka\x20aws:delete-sg','notice','name','dsg','534948NmhdmG','sgId','exit','Not\x20deleting\x20secuirty\x20group','8iruSWl','210TLMPfJ','confirm','search','ask','38822KmmFev','995190kkxrAS','success','create','error','ID:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','constructor','8WLYDYx','(((.+)+)+)+$','Deleted\x20','maka\x20aws:dsg','3838145jIQviQ','bright','74889yOJfrT','forEach','delete-security-group','607024iJZGrm','773170VSwPaL','appName','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','143cwOObD','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','\x20SG\x20NAME:\x20','deleteSecurityGroup'];a9c=function(){return s;};return a9c();}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-0x184;let f=c[d];return f;},a9d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a9o(0x1a2)]({'name':a9o(0x185),'aliases':[a9o(0x195)],'usage':a9o(0x192),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x18b),'examples':[a9o(0x192),a9o(0x1aa)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x191)]();d=j[p(0x188)];}const {sgList:f}=await a[p(0x190)]();f[p(0x184)](function(k){const q=p;c&&k[q(0x194)]['includes'](d)?Log[q(0x193)](q(0x1a4)+k['id']+q(0x18c)+k[q(0x194)]+'\x20SGID:\x20'+k['sgId']):Log[q(0x1ac)](q(0x1a4)+k['id']+q(0x18c)+k[q(0x194)]+'\x20SGID:\x20'+k['sgId']);});let g='';const h=await Actions[p(0x19e)](p(0x18e));f[p(0x184)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x197)]);});if(!g)throw Log[p(0x1a3)](p(0x1a5));const i=await Actions[p(0x19c)]('Deleting\x20a\x20'+g+p(0x189),![]);i?(await a[p(0x18d)](g),Log[p(0x1a1)](p(0x1a9)+g)):Log[p(0x1a3)](p(0x199)),process['exit'](0x0);}catch(k){process[p(0x198)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xa8))/0x1*(-parseInt(f(0xa3))/0x2)+-parseInt(f(0xad))/0x3+parseInt(f(0xb4))/0x4+parseInt(f(0xb1))/0x5+-parseInt(f(0xb6))/0x6*(parseInt(f(0xab))/0x7)+-parseInt(f(0xa5))/0x8*(parseInt(f(0x9f))/0x9)+parseInt(f(0xa1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xbec93));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xa2)]()[h(0xb5)](h(0xa7))[h(0xa2)]()[h(0xa9)](a10a)['search'](h(0xa7));});a10a();function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x9b;let f=c[d];return f;},a10d(a,b);}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 a10c(){const k=['\x20is\x20still\x20running.','2826000ObMCDx','search','6DTZiFT','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','Reboot\x20an\x20EC2\x20instance','apply','\x20Ready?','status','maka\x20aws:reboot-instance','rbi','confirm','5826501bsWHLh','error','27064540dHiTLh','toString','2032ZkzdyB','chooseInstance','8DlaZwS','running','(((.+)+)+)+$','40AmeEOQ','constructor','name','9092741GxaWXl','create','2313582CyRdHd','exit','instanceId','ec2rebootInstance','227055vxaCyo','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'];a10c=function(){return k;};return a10c();}Command[a10i(0xac)]({'name':'reboot-instance','aliases':[a10i(0x9d)],'usage':a10i(0x9c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xb8),'examples':[a10i(0x9c),'maka\x20aws:rbi']},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0xa4)]();if(b?.[j(0x9b)]===j(0xa6)){const c=await Actions[j(0x9e)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0xaa)]+j(0xba));c&&b['instanceId']?a[j(0xb0)]({'instanceId':b[j(0xaf)]}):Log[j(0xa0)](j(0xb7)+b[j(0xaa)]+j(0xb3));}else Log[j(0xa0)](j(0xb2));}catch(d){console[j(0xa0)](d),process[j(0xae)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11c(){const l=['9gRNoGJ','error','maka\x20aws:remove-key-pair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','forEach','toString','ask','Please\x20choose\x20a\x20key\x20to\x20delete:','success','Not\x20deleting\x20keypair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','8HKHOJt','891978udqApA','remove-key-pair','6942370IiKWXl','2099796dCiPNK','142487FLWHWs','Deleted\x20','ec2describeKeys','deleteKeyPair','rkp','1518406HEXaEC','2001605grsdEf','(((.+)+)+)+$','10647tQxDcI','2360kdbGZB','\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'];a11c=function(){return l;};return a11c();}const a11j=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x145))/0x1+-parseInt(h(0x14a))/0x2+-parseInt(h(0x144))/0x3+parseInt(h(0x140))/0x4*(parseInt(h(0x14b))/0x5)+-parseInt(h(0x141))/0x6+-parseInt(h(0x14d))/0x7*(-parseInt(h(0x14e))/0x8)+-parseInt(h(0x150))/0x9*(-parseInt(h(0x143))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x74c37));const a11b=(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;};}()),a11a=a11b(this,function(){const i=a11d;return a11a[i(0x13a)]()['search'](i(0x14c))[i(0x13a)]()['constructor'](a11a)['search'](i(0x14c));});a11a();import a11e 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';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x137;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a11j(0x142),'aliases':[a11j(0x149)],'usage':a11j(0x137),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a11j(0x14f),'examples':[a11j(0x137),'maka\x20aws:rkp']},async function(){const k=a11j;try{const a=new AWS(),b=await a[k(0x147)]();let c;const d=await Actions[k(0x13b)](k(0x13c));b?.[k(0x139)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[k(0x151)](k(0x138));const f=await Actions['confirm']('Deleting\x20a\x20'+c+k(0x13f),![]);f?(a[k(0x148)](c),Log[k(0x13d)](k(0x146)+c)):Log['error'](k(0x13e)),process['exit'](0x0);}catch(g){process['exit'](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d
|
|
1
|
+
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=-parseInt(l(0x1c1))/0x1+-parseInt(l(0x1b3))/0x2+parseInt(l(0x1ad))/0x3+-parseInt(l(0x1b7))/0x4*(parseInt(l(0x1d0))/0x5)+parseInt(l(0x1cd))/0x6*(-parseInt(l(0x1c2))/0x7)+-parseInt(l(0x1bf))/0x8+-parseInt(l(0x1b9))/0x9*(-parseInt(l(0x1b8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xc987f));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a['toString']()[n(0x1c4)](n(0x1d3))[n(0x1d6)]()[n(0x1cc)](a12a)['search'](n(0x1d3));});a12a();function a12c(){const q=['utf8','apply','public','305493XklGMr','\x0aSaved\x20host\x20','private','create','inherit','readFileSync','1849252qbUEgZ','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','stringify','chooseInstance','444tjDPXt','30UOxJxV','12115215MNOcUD','env','\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','ask','ssh.json','publicIp','13171760ymkmqp','parse','69905uyoxTF','21gSbWAr','maka\x20aws\x20set-host','search','config/ssh.json','writeFileSync','\x20IP\x20to\x20','set-host','appName','fsi','getConfigPath','constructor','236196tBduzQ','privateIp','sth','25030Tduilv','host','success','(((.+)+)+)+$','sep','join','toString'];a12c=function(){return q;};return a12c();}import a12e from'path';import a12f from'fs';import{execSync}from'child_process';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a12d(a,b);}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[a12o(0x1b0)]({'name':a12o(0x1c8),'aliases':[a12o(0x1cf)],'usage':a12o(0x1c3),'mustBeInMakaProject':!![],'requiredOpts':[a12o(0x1ba)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a12o(0x1bb),'examples':['maka\x20aws:set-host\x20--env\x20dev','maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a12o;try{const c=new AWS(),d=this['fsi'][p(0x1cb)](b[p(0x1ba)]),f=this[p(0x1ca)]['getProjectConfig'](),g=await c[p(0x1b6)](),h=a12e[p(0x1d5)](d,p(0x1bd));!this[p(0x1ca)]['isFile'](h)&&await this[p(0x1ca)]['template']({'srcPath':p(0x1c5),'destPath':h,'context':{'app':f[p(0x1c9)]},'config':f});const i=JSON[p(0x1c0)](a12f[p(0x1b2)](h,p(0x1d7))),j=await Actions[p(0x1bc)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||p(0x1d9);if(j){if(j==='public'||j===p(0x1af)){if(j===p(0x1d9))i['host']=g?.[p(0x1be)];else j===p(0x1af)&&(i[p(0x1d1)]=g?.[p(0x1ce)]);}else throw p(0x1b4);}else i['host']=g?.[p(0x1ce)];a12f[p(0x1c6)](a12e[p(0x1d5)](d,p(0x1bd)),JSON[p(0x1b5)](i,null,0x2)),execSync('cat\x20'+a12e[p(0x1d5)](d,p(0x1bd)),{'stdio':p(0x1b1)}),Log[p(0x1d2)](p(0x1ae)+j+p(0x1c7)+d+a12e[p(0x1d4)]+'ssh.json');}catch(k){console['error'](k),process['exit'](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x19f))/0x1*(-parseInt(f(0x197))/0x2)+parseInt(f(0x1a8))/0x3+parseInt(f(0x1a5))/0x4*(-parseInt(f(0x1a9))/0x5)+parseInt(f(0x1b1))/0x6*(parseInt(f(0x196))/0x7)+parseInt(f(0x199))/0x8+parseInt(f(0x1a4))/0x9+-parseInt(f(0x19b))/0xa*(parseInt(f(0x1a3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xeca4f));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(0x1ae)]()['search'](g(0x19c))['toString']()[g(0x1a2)](a13a)[g(0x1aa)](g(0x19c));});a13a();function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x194;let f=c[d];return f;},a13d(a,b);}import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const j=['\x20Ready?','toString','maka\x20aws:terminate-instance','name','546vRRiPx','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','Terminate\x20an\x20EC2\x20instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','terminate-instance','13419iIZjoq','78mieWEX','ec2terminateInstance','3586208sSGUDZ','maka\x20aws:ti','2817490EAVmym','(((.+)+)+)+$','chooseInstance','error','27347iOuFcu','status','instanceId','constructor','33pveyOr','3017196ORWGEg','132uXznox','exit','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','3821067SocXob','224795EPoTwH','search','\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','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'];a13c=function(){return j;};return a13c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a13h(0x195),'aliases':['ti'],'usage':a13h(0x1af),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13h(0x1b3),'description':a13h(0x1ab),'examples':[a13h(0x1af),a13h(0x19a)]},async function(){const i=a13h;try{const a=new AWS(),b=await a[i(0x19d)]();if(b?.[i(0x1a1)]&&b?.[i(0x1a0)]==='running'){const c=await Actions['confirm'](i(0x1b2)+b[i(0x1b0)]+i(0x1ad));c?a[i(0x198)]({'instanceId':b[i(0x1a1)]}):Log[i(0x19e)](i(0x194)+b['name']+i(0x1a7));}else Log[i(0x19e)](i(0x1ac));}catch(d){console[i(0x19e)](d),process[i(0x1a6)](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(0xb1))/0x1*(-parseInt(f(0xaa))/0x2)+-parseInt(f(0xb4))/0x3+parseInt(f(0xb0))/0x4*(parseInt(f(0xae))/0x5)+-parseInt(f(0xa8))/0x6+parseInt(f(0xab))/0x7+-parseInt(f(0xa7))/0x8+parseInt(f(0xa9))/0x9*(parseInt(f(0xac))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xe7f2f));function a14c(){var i=['(((.+)+)+)+$','14802696EAaRBS','3973116nOZfHR','3369483DqnCdx','15636RoKMat','4562628warkXw','80uiuyxV','constructor','169340BKMrtL','search','8EGAZfC','108RRmneK','apply','toString','3289182QpyYgF'];a14c=function(){return i;};return a14c();}function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0xa7;var f=c[d];return f;},a14d(a,b);}var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a['toString']()['search'](h(0xb5))[h(0xb3)]()[h(0xad)](a14a)[h(0xaf)](h(0xb5));});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(0x174))/0x1*(parseInt(p(0x184))/0x2)+-parseInt(p(0x171))/0x3*(-parseInt(p(0x18f))/0x4)+-parseInt(p(0x191))/0x5*(-parseInt(p(0x17d))/0x6)+parseInt(p(0x180))/0x7*(parseInt(p(0x18c))/0x8)+-parseInt(p(0x18e))/0x9+-parseInt(p(0x16e))/0xa*(parseInt(p(0x183))/0xb)+-parseInt(p(0x17e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x8186d));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x17a)]()[r(0x18b)](r(0x16f))[r(0x17a)]()[r(0x16c)](a15a)['search']('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x16b;let f=c[d];return f;},a15d(a,b);}import a15g from'semver';function a15c(){const v=['maka\x20build:docker','40AfHCkg','(((.+)+)+)+$',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','4251HVpptw','--release','confirm','964861WcVGru','invokeMeteorCommand','force','--force','update','existsSync','toString','concat','build','2202HYaQiE','19694796CfOFkf','apply','287lFbEet','findSubCommand','error','934329OVnGXA','2pbTZCU','fsi','slice','splice','app.tar.gz','forEach','pathFromProject','search','53176WXaiZd','debug','405648DfCGVn','1192hAtDuQ','argv','12220cDbjwh','create','join','getProjectMeteorVersion','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','constructor'];a15c=function(){return v;};return a15c();}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(0x192)]({'name':a15s(0x17c),'usage':'maka\x20build\x20<opts>','validOpts':['force',a15s(0x18d)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','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(0x16d)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x181)](c);if(d)this['runSubCommand'](c,a,b);else{const f=b[t(0x176)];if(!f){const i=this[t(0x185)]['getGlobalMeteorVersion'](),j=this[t(0x185)][t(0x194)](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x173)]('This\x20project\x27s\x20meteor\x20version\x20('+j+t(0x170)+i+').\x20Update?');l&&this[t(0x185)][t(0x175)](t(0x178),[t(0x172),i]);}}const g=[this[t(0x185)][t(0x18a)]({'pathParts':[t(0x17c)]})][t(0x17b)](process[t(0x190)][t(0x186)](0x3)),h=a15e[t(0x193)](this['fsi'][t(0x18a)]({}),'build',t(0x188));if(a15f[t(0x179)](h)){const m=f??await Actions['confirm'](t(0x16b));if(!m)throw Log[t(0x182)]('Aborted.');}g[t(0x189)]((n,o)=>{const u=t;n===u(0x177)&&g[u(0x187)](o,0x2);}),this['fsi']['invokeMeteorCommand'](t(0x17c),g);}}catch(n){console[t(0x182)](n),process['exit'](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16H=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x1b2))/0x1+-parseInt(F(0x18d))/0x2+-parseInt(F(0x184))/0x3*(-parseInt(F(0x18f))/0x4)+parseInt(F(0x1a4))/0x5*(-parseInt(F(0x17d))/0x6)+parseInt(F(0x198))/0x7+parseInt(F(0x1bb))/0x8+-parseInt(F(0x186))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x710ca));function a16c(){const J=['maka\x20build:docker\x20<opts>','pathFromProject','pm2.config.js','config','https','.meteor','8409FqUBEB','error','6846903DhzlFq','docker-compose.yaml','Try\x20\x27maka\x20run:docker\x27','inherit','--architecture','tag','serverPort','837550brAQoy','serverName','676ogdSxR','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).','fsi','-t\x20','platform','debug','notice','appName','maka\x20build:docker\x20--tag','1216796XnBtJU','dockerfile','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','length','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','win32','create','N/A','docker','\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','build','constructor','18285CmrZnA','\x20npm\x20install\x20--save','copyFileSync','toString','push','existsSync','config/pm2.config.js','isDirectory','platforms','Mobile\x20server\x20port:\x20','(((.+)+)+)+$','getConfigPath','mkdirSync','getProjectsMeteorNodeVersion','897765qUBKyT','findGenerator','findAppDirectory','meteor','join','app.tar.gz','getProjectConfig','os.linux.x86_64','exit','4610872iiFGqm','template','config.json','ignore','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','.maka','docker\x20build\x20--build-arg\x20NODE_VERSION=','443','search','_keys','cert.pem','setProjectConfig','app','--server=','isFile','ask','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','confirm',':latest','checkConfigExists','getGlobalConfig','Docker\x20Context\x20Path:\x20','force','invoke','786mhewnl'];a16c=function(){return J;};return a16c();}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[G(0x1a7)]()[G(0x16d)](G(0x1ae))[G(0x1a7)]()[G(0x1a3)](a16a)[G(0x16d)](G(0x1ae));});function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x168;let f=c[d];return f;},a16d(a,b);}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';Command[a16H(0x19e)]({'name':a16H(0x1a0),'aliases':['d'],'usage':a16H(0x17e),'validOpts':[a16H(0x17b),a16H(0x18b),a16H(0x194)],'shortDesc':a16H(0x175),'description':a16H(0x1a1),'mustBeInMakaProject':!![],'examples':[a16H(0x197),'maka\x20build:docker\x20--debug']},async function(a,b){const I=a16H;try{const c=await this[I(0x191)][I(0x179)](),d=await this[I(0x191)][I(0x1b8)](),f=await this[I(0x191)][I(0x1b1)]();f===I(0x19f)&&(Log[I(0x185)](I(0x190)),process['exit'](0x1));const g=process[I(0x193)]===I(0x19d)?'meteor.bat':I(0x1b5),h=this[I(0x191)][I(0x17f)]({}),i=a16f[I(0x1b6)](h,'Dockerfile');if(!this[I(0x191)][I(0x173)](i)){const s=a16h[I(0x1b3)](I(0x199));s&&await s[I(0x17c)]([I(0x199)],{'cwd':h,'config':d});}const j=this[I(0x191)][I(0x178)]('docker');if(!j){const t=a16h[I(0x1b3)]('config');if(t){await t[I(0x17c)]([I(0x1a0)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[I(0x191)][I(0x1af)](I(0x1a0)),v=a16f['join'](u,I(0x180));await this[I(0x191)][I(0x1bc)]({'srcPath':I(0x1aa),'destPath':v,'context':{'app':d[I(0x196)],'isDocker':![]},'config':d});const w=a16f['join'](u,I(0x187));await this['fsi']['template']({'srcPath':'config/docker-compose.yaml','destPath':w,'context':{'app':d[I(0x196)],'appFileCase':paramCase(d['appName'])},'config':d});}}if(this[I(0x191)]['isFile'](c['cert'])){const x=this[I(0x191)][I(0x1ab)](a16f[I(0x1b6)](I(0x181),I(0x1a0),I(0x16e)));!x&&a16g[I(0x1b0)](a16f[I(0x1b6)](I(0x181),I(0x1a0),I(0x16e))),a16g[I(0x1a6)](c['cert'],a16f[I(0x1b6)](h,I(0x181),I(0x1a0),I(0x16e),I(0x16f)));}const k=[I(0x1a2),a16f[I(0x1b6)](this[I(0x191)]['findProjectDirectory'](),I(0x1a2)),I(0x18a),I(0x1b9)],l=this[I(0x191)]['readFileLines'](a16f[I(0x1b6)](this['fsi']['pathFromProject']({}),I(0x171),I(0x183),I(0x1ac))),m=l[I(0x19b)]>0x2?!![]:![];if(m){const y=d['serverName']?d[I(0x18e)]:await Actions[I(0x174)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[I(0x18c)]?d[I(0x18c)]:await Actions[I(0x174)](I(0x1ad));if(y['length']==0x0||z['length']==0x0)throw I(0x19c);const A=z==I(0x16c)?I(0x182):'http';k[I(0x1a8)](I(0x172)+A+'://'+y+':'+z);if(!d[I(0x18e)]&&!d['serverPort']){const B=await Actions['confirm'](I(0x19a));B&&(this[I(0x191)][I(0x170)](I(0x18e),y),this['fsi'][I(0x170)]('serverPort',z),Log[I(0x195)]('Stored\x20server\x20config\x20to\x20'+a16f[I(0x1b6)](I(0x16a),I(0x1bd))));}}const n=a16f[I(0x1b6)](this['fsi'][I(0x17f)]({}),I(0x1a2),I(0x1b7));if(a16g[I(0x1a9)](n)){const C=await Actions[I(0x176)](I(0x169)),D=C;D&&(execSync(g+I(0x1a5),{'cwd':this['fsi'][I(0x1b4)](),'stdio':I(0x168)}),execSync(g+'\x20\x20'+k[I(0x1b6)]('\x20'),{'cwd':this[I(0x191)][I(0x1b4)](),'stdio':I(0x189)}));}else execSync(g+I(0x1a5),{'cwd':this[I(0x191)]['findAppDirectory'](),'stdio':'ignore'}),Log[I(0x195)]('[*]\x20maka\x20'+k[I(0x1b6)]('\x20')),execSync(g+'\x20'+k[I(0x1b6)]('\x20'),{'cwd':this[I(0x191)][I(0x1b4)](),'stdio':I(0x189)});const o=this[I(0x191)][I(0x17f)]({});let p=I(0x192)+paramCase(d['appName'])+I(0x177);b[I(0x18b)]&&(p=I(0x192)+b[I(0x18b)]);Log[I(0x195)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log['notice']('Tagging\x20Docker\x20Image:\x20'+p),Log[I(0x195)](I(0x17a)+o);const q=b[I(0x194)]?'--progress=plain\x20--no-cache':'',r=I(0x16b)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':I(0x189)}),Log[I(0x195)](I(0x188));}catch(E){console[I(0x185)](E),process[I(0x1ba)](0x0);}},a16e);
|