@maka/maka-cli 4.5.3 → 4.5.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 +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/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/templates/meteor/app/imports/startup/client/index.js.jsx +20 -6
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +21 -7
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +10 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +10 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +25 -14
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +25 -13
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +1 -1
- package/bundle/obf/src/templates/react/component/component.js.jsx +2 -6
- package/bundle/obf/src/templates/react/component/component.js.tsx +2 -6
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -5
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -5
- 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,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.5",
|
|
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 a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(
|
|
1
|
+
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x12b))/0x1+parseInt(p(0xda))/0x2*(-parseInt(p(0x107))/0x3)+-parseInt(p(0xe1))/0x4*(-parseInt(p(0xef))/0x5)+parseInt(p(0xe5))/0x6*(parseInt(p(0x113))/0x7)+parseInt(p(0x11f))/0x8+parseInt(p(0xfa))/0x9*(parseInt(p(0x109))/0xa)+-parseInt(p(0x12e))/0xb*(parseInt(p(0x112))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x3735d));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[q(0xf1)]()['search']('(((.+)+)+)+$')[q(0xf1)]()['constructor'](a0a)[q(0xdc)](q(0x12c));});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd8;let f=c[d];return f;},a0d(a,b);}function a0c(){const D=['Too\x20few\x20arguments','keys','run','maxArgLength','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','_commands','2044592coyZij','Sub-Commands:','splice','singleLicense','Too\x20many\x20arguments','sort','validateMakaSubscription','bind','domainLicense','help','includes','error','146175AaGydH','(((.+)+)+)+$','getPro','33loGdai','Command\x20requires\x20a\x20name','_handler','58IDFWwQ','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','search','Alias','deploy','generate','tableList','9608aWAaVb','addCommand\x20requires\x20a\x20Command\x20instance','length','options','24mJoPpL','mustHaveMeteorInstalled','aliases','shortDesc','usage','call','Name','findCommand','notice','Command.create\x20requires\x20a\x20handler\x20function!','335koECXk','play','toString','runSubCommand','push','create','Please\x20run\x20\x22maka\x20install\x20meteor\x22','exit','number','join','assign','207Xrqgpd','mustBeInMakaProject','split','header','invoke','roles','minArgLength','fsi','minOptsLength','To\x20use\x20this\x20command,\x20\x22','Too\x20many\x20options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','proCommands','1527AkGqvB','validateMakaProject','86780adcasG','function','Too\x20few\x20options','Command\x20requires\x20a\x20handler\x20function','find','murder','To\x20use\x20these\x20pro\x20flags,\x20\x22','match','parent','3369036KwFjud','561547uPmeDs','bright','addCommand','forEach','maxOptsLength','name'];a0c=function(){return D;};return a0c();}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];['_commands'];constructor(a,b){const r=a0d;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[r(0x118)])throw new Error(r(0xd8));if(typeof b!==r(0x10a))throw new Error(r(0x10c));this[r(0xe4)]=Object['assign']({},a),this[r(0x118)]=this[r(0xe4)][r(0x118)],this[r(0x11e)]=[],this['_handler']=b[r(0x126)](this);}static[a0s(0xf4)](a,b,c){const t=a0s;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(t(0xee));const d=new Command(a,b);return c=c||a0f,Object[t(0xf9)](d,{'parent':c?.[t(0xe4)]?.[t(0x118)]}),c['addCommand'](d),d;}[a0s(0x115)](a){const u=a0s;if(!(a instanceof Command))throw new Error(u(0xe2));this[u(0x11e)][u(0xf3)](a);}async['validateMakaSubscription'](a,b){const v=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[v(0x118)]||a[0x0],e=c?.[v(0x111)]||'',f=c?.[v(0xe4)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object['keys'](b),i=await this[v(0x101)][v(0x12d)]();!i&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[v(0xf6)](0x1));const j=i?.[v(0x106)]['includes'](d)||i?.['proCommands'][v(0x129)](e),k=i?.[v(0xff)][v(0x129)](v(0x122))||i?.[v(0xff)][v(0x129)](v(0x127)),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+v(0xdb);if(h[v(0xe3)]>0x0){const m=i?.['proFlags']['filter'](n=>h[v(0x129)](n));if(m&&m[v(0xe3)]>0x0&&l)throw v(0x10f)+m?.[v(0xf8)](',\x20')+v(0xdb);}if(g===v(0xde)){const n=await this[v(0x101)]['getPro'](),o=n?.[v(0x106)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw v(0x103)+a[0x0]+v(0xdb);}}}async['run'](a,b){const w=a0s;try{a=a||[],b=b||{};try{await this[w(0x125)](a,b);}catch(c){Log[w(0x12a)](c),process[w(0xf6)](0x0);}await this[w(0xfe)](a,b);}catch(d){process[w(0xf6)](0x1);}}async['invoke'](a,b){const x=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[x(0xe4)];try{if(this[x(0xe4)][x(0x118)]!==x(0xdf)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[x(0xe3)]===0x0)&&this[x(0x11e)]['length']>=0x0;if(f&&b[x(0x128)]){if(this[x(0x11e)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[x(0x128)]){if(this[x(0xe4)][x(0xfb)]){const g=this[x(0x108)]();if(!g)throw new MustBeInProjectError();}if(this[x(0xe4)][x(0xe6)]){const h=this['validateMeteorInstall']();if(!h)throw new NoMeteorFoundError();}if(typeof this[x(0xe4)][x(0x100)]===x(0xf7)){if(a[x(0xe3)]<this[x(0xe4)]['minArgLength']){Log['error'](x(0x119));throw new UsageError();}}if(typeof this[x(0xe4)][x(0x11c)]==='number'){if(a[x(0xe3)]>=this[x(0xe4)]['maxArgLength']){Log['error'](x(0x123));throw new UsageError();}}if(typeof this[x(0xe4)][x(0x102)]===x(0xf7)){if(Object[x(0x11a)](b)[x(0xe3)]<this['options']['minOptsLength']){Log[x(0x12a)](x(0x10b));throw new UsageError();}}if(typeof this[x(0xe4)][x(0x117)]===x(0xf7)){if(Object['keys'](b)[x(0xe3)]>=this[x(0xe4)][x(0x117)]){Log['error'](x(0x104));throw new UsageError();}}}}this['validateParams'](a,b,this[x(0xe4)]),_prevCmd=a[0x0];}await this[x(0xd9)][x(0xea)](this,a,b);}catch(i){Log[x(0xe9)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[x(0xed)](x(0x120)),this[x(0xe0)](this['_commands']),Log[x(0xfd)](x(0x11d));else{if(i instanceof MustBeInProjectError)Log[x(0x12a)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log[x(0x12a)](x(0x105)),Log[x(0xed)](x(0xf5));else{if(i instanceof NoMeteorAppFoundError)Log[x(0x12a)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw i;}}}process[x(0xf6)](0x1);}}[a0s(0xe0)](a){const y=a0s,b=new a0e({});b[y(0xf3)]([y(0xeb),y(0xdd),'Description']),a[y(0x124)]()[y(0x116)](c=>{const z=y;c[z(0x118)]!==z(0x10e)&&c[z(0x118)]!==z(0xf0)&&b[z(0xf3)]([c[z(0x118)],c[z(0xe7)](),c[z(0xe8)]()]);}),Log[y(0x114)](b[y(0xf1)]());}['findCommand'](a){const A=a0s;return this[A(0x11e)][A(0x10d)](b=>b[A(0x110)](a));}['findSubCommand'](a){const B=a0s,b=a?.['split'](':');if(b)return a=b[0x0],this[B(0xec)](a);else return;}async[a0s(0xf2)](a,b,c){const C=a0s;try{const d=a[C(0xfc)](':');a=d[0x0];const f=d[0x1];f&&b[C(0x121)](0x0,0x0,f);const g=this[C(0xec)](a);if(g)await g[C(0x11b)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log[C(0x12a)](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(0x1f7))/0x1*(-parseInt(f(0x1f5))/0x2)+-parseInt(f(0x1f6))/0x3*(parseInt(f(0x1ff))/0x4)+parseInt(f(0x1f4))/0x5+-parseInt(f(0x1fe))/0x6*(parseInt(f(0x1f3))/0x7)+-parseInt(f(0x1fb))/0x8+-parseInt(f(0x1f1))/0x9+-parseInt(f(0x1fd))/0xa*(-parseInt(f(0x1f9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x94d3a));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1f8)]()[h(0x1f0)]('(((.+)+)+)+$')['toString']()[h(0x1fa)](a1a)['search'](h(0x1fc));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';function a1c(){var i=['search','9332982oGyQAM','apply','91EPkGdi','3966930qOzwsh','9610EVJNIG','3sBzSlc','57QdCsiA','toString','11DZfbHz','constructor','9746488UiCOdj','(((.+)+)+)+$','23063570dTaAFA','39396jlhAtl','1693468VIaTZx'];a1c=function(){return i;};return a1c();}import'./create.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1f0;var f=c[d];return f;},a1d(a,b);}import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(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-0xc1;var f=c[d];return f;},a2d(a,b);}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0xc9))/0x1*(-parseInt(f(0xc1))/0x2)+parseInt(f(0xc4))/0x3*(-parseInt(f(0xc7))/0x4)+-parseInt(f(0xc2))/0x5+-parseInt(f(0xcc))/0x6+parseInt(f(0xca))/0x7+parseInt(f(0xc5))/0x8+parseInt(f(0xc3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe3d62));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a['toString']()['search'](h(0xc8))[h(0xc6)]()['constructor'](a2a)['search'](h(0xc8));});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 i=['apply','3201348tgsKaI','20AsTjUI','2245390MNVkoZ','9308115Gzftka','11751QsuhgH','5857864dRYRZQ','toString','124jzNnUi','(((.+)+)+)+$','34894cuARDv','4338271QTBzwK'];a2c=function(){return i;};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
|
-
function a3c(){const k=['
|
|
1
|
+
const a3i=a3d;function a3c(){const k=['1473575ivUHCL','runSubCommand','create','Sub\x20Command\x20not\x20found','apply','(((.+)+)+)+$','aws','301ExgLLB','maka\x20aws:<sub-command>','findSubCommand','error','458634cVifiK','search','329eFoylV','11ezxcnU','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','toString','2148490ohelpl','\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','1662TKJbot','9TptOIV','1594DYPBpT','797056hUsRRl','1164408RLbLAJ'];a3c=function(){return k;};return a3c();}(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0x196))/0x1*(-parseInt(f(0x18c))/0x2)+-parseInt(f(0x19a))/0x3+-parseInt(f(0x18e))/0x4+parseInt(f(0x18f))/0x5+parseInt(f(0x1a2))/0x6*(parseInt(f(0x19c))/0x7)+-parseInt(f(0x18d))/0x8*(parseInt(f(0x18b))/0x9)+-parseInt(f(0x1a0))/0xa*(-parseInt(f(0x19d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x356f4));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x19f)]()[h(0x19b)](h(0x194))[h(0x19f)]()['constructor'](a3a)[h(0x19b)](h(0x194));});a3a();function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x18b;let f=c[d];return f;},a3d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0x191)]({'name':a3i(0x195),'usage':a3i(0x197),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0x19e),'description':a3i(0x1a1)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x198)](c);if(d)this[j(0x190)](c,a,b);else{Log[j(0x199)](j(0x192));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(0xac))/0x1+parseInt(ae(0x86))/0x2+parseInt(ae(0x97))/0x3*(parseInt(ae(0xdb))/0x4)+-parseInt(ae(0x84))/0x5*(-parseInt(ae(0x8c))/0x6)+-parseInt(ae(0x9a))/0x7+parseInt(ae(0xe5))/0x8+-parseInt(ae(0xb6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x5c47c));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a['toString']()['search']('(((.+)+)+)+$')[ag(0xe1)]()[ag(0x90)](a4a)[ag(0xbf)](ag(0xd4));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a4c(){const au=['deleteKeyPair','desc','Setting\x20Subnet\x20ID\x20to\x20','subnet','ImageID:','create-instance','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','cider','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','number','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','22,80,443','string','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Setting\x20the\x20key-pair\x20to:\x20','split','Instace\x20Type:\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','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','exit','(((.+)+)+)+$','**\x20Available\x20AMIs\x20**','**\x20Available\x20Security\x20Groups\x20**','bright','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','push','Remove\x20the\x20keypair\x20','36552JujoCR','*\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','\x20AMIID:\x20','getSecurityGroups','chooseVPC','sort','toString','Desc','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka\x20aws:ci\x20--env\x20prod','3700608MAXQcZ','ask','Setting\x20SG\x20ID\x20to:\x20','forEach','name','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','1:1','**\x20Available\x20Subnets\x20**','475cEYQwF','deleteSecurityGroup','545078ARDTYS','environment','ec2createSG','subnetId','\x20SGID:\x20','user-data','34206WuJWBM','Instance\x20Count:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','t3.micro','constructor','readFileSync','date','Security\x20Group\x20Name:\x20[','\x20SG\x20NAME:\x20','build\x20on\x20','log','63jcZRpS','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','join','1036581CdiDZD','sgId','Subnet:\x20','isFile','**\x20Available\x20key-pairs\x20**','amiId','\x20SUBNETID:\x20','Name','confirm','error','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Remove\x20the\x20security\x20group\x20','maka\x20aws:create-instance\x20<opts>','alias','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','No\x20instance\x20has\x20been\x20created.','createKeyPair','483639PSPPiA','notice','\x20:\x20','Creating\x20user\x20data\x20file\x20in\x20','amazon','ID:\x20','Web\x20App','getConfigFromShorthand','User\x20Data:','getConfigPath','12835656pxrqVI','parse','unlinkSync','\x20DESCRIPTION:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','apply','success','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','fsi','search'];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';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x83;let f=c[d];return f;},a4d(a,b);}Command['create']({'name':a4ah(0xc5),'aliases':['ci'],'usage':a4ah(0xa6),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a4ah(0xe4)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a4ah(0xd1)},async function(a,b){const ai=a4ah;try{const c=this[ai(0xbe)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xbe)][ai(0xb3)](b['env']),i=this[ai(0xbe)][ai(0xb5)](h),j=g+'-'+h,k=await Actions[ai(0xe6)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xa2)](ai(0xd2),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xab)]({'env':h});r=y,s=z,Log[ai(0xbc)](ai(0xce)+r);}else try{Log[ai(0xad)](ai(0x9e));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0xe6)](ai(0xba))||'-1';if(parseInt(C)<0x0){Log[ai(0xa3)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ai(0xad)](ai(0xaa));return;}B?.[ai(0xe8)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xe9)],Log[aj(0xbc)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0xa3)](D);}l=await d[ai(0xdf)]();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0xdf)]():l;u=await Actions[ai(0xe6)](ai(0x93)+k+']')||k;const F=await Actions['ask'](ai(0xc8))||ai(0xcb),G=F[ai(0xcf)](',');await d[ai(0x88)]({'description':ai(0xb2),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xde)](u);if(I===''){Log['notice'](ai(0xd6)),J[ai(0xe8)](function(L){const ak=ai;L[ak(0xe9)]===u?Log['notice'](ak(0xb1)+L['id']+ak(0x94)+L['name']+ak(0x8a)+L[ak(0x9b)]):Log[ak(0xd7)](ak(0xb1)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xe9)]+ak(0x8a)+L[ak(0x9b)]);});const K=await Actions[ai(0xe6)](ai(0xc6)+H+']\x20')||H[ai(0xe1)]();J[ai(0xe8)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x9b)],Log[al(0xbc)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0xbc)](ai(0xe7)+m+'\x0a');if(m==='')throw Log[ai(0xa3)](ai(0xe3));}catch(L){Log['error'](L);}try{const M=0x7e6;Log['notice'](ai(0xd5));const N=execSync(ai(0xbd)+M+ai(0xdc))['toString'](),O=JSON['parse'](N),P=[],Q=[];O[ai(0xe8)](function(S){const am=ai;if(S[am(0xa7)]===am(0xb0)){const T=S['Desc'][am(0xcf)](am(0x95))[0x1];P[am(0xd9)]({'amiId':S['ID'],'desc':S[am(0xe2)],'date':T});}}),P[ai(0xe0)](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S[an(0x92)])['getTime']();}),P[ai(0xe8)](function(S,T){const ao=ai;Q[ao(0xd9)]({'id':T,'amiId':S[ao(0x9f)],'desc':S['desc']});}),Q['forEach'](function(S){const ap=ai;console[ap(0x96)](ap(0xb1)+S['id']+ap(0xdd)+S['amiId']+ap(0xb9)+S['desc']);});const R=await Actions[ai(0xe6)](ai(0xa8))||'0';Q[ai(0xe8)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x9f)],Log[aq(0xbc)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0xae)+S[aq(0xc1)]));});if(n==='')throw Log[ai(0xa3)](ai(0xe3));}catch(S){Log[ai(0xa3)](S);}try{Log[ai(0xad)](ai(0x83));const T=execSync(ai(0xea))[ai(0xe1)](),U=JSON['parse'](T),V=[];U[ai(0xe8)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0xc7)],'az':X['az'],'subnetId':X[ar(0x89)]});}),V[ai(0xe8)](function(X){const as=ai;console[as(0x96)](as(0xb1)+X['id']+'\x20CIDR:\x20'+X['cidr']+'\x20AZONE:\x20'+X['az']+as(0xa0)+X[as(0x89)]);});const W=await Actions[ai(0xe6)](ai(0x98))||'0';V[ai(0xe8)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x89)],Log['success'](at(0xc2)+p));});if(p==='')throw Log[ai(0xa3)](ai(0xe3));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xe6)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0xeb),Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0xc9)&&typeof parseInt(a0)==='number'&&Log['success']('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0xa3)](a1);}try{const a2=await Actions[ai(0xe6)](ai(0xcd))||ai(0x8f);typeof a2===ai(0xcc)&&(o=a2);}catch(a3){Log[ai(0xa3)](a3);}let x;try{const a4=await Actions[ai(0xa2)](ai(0x8e),![]);a4&&(x=a4f[ai(0x99)](i,ai(0x8b)),Log[ai(0xad)](ai(0xaf)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0xa2)](ai(0xd8)));}catch(a5){Log[ai(0xa3)](a5);}try{const a6=JSON[ai(0xb7)](execSync(ai(0xa9)+p+ai(0xa4))['toString']())[0x0][ai(0xc3)];Log[ai(0xad)](ai(0xc4)+n),Log[ai(0xad)](ai(0x8d)+v+':'+w),Log[ai(0xad)](ai(0xd0)+o),Log[ai(0xad)]('Key-Pair:\x20'+r),Log[ai(0xad)]('Security\x20Group:\x20'+m),Log[ai(0xad)](ai(0x9c)+a6);if(x){Log[ai(0xad)](ai(0xb4)+x);const a8=a4g[ai(0x91)](x);Log[ai(0xad)](a8);}const a7=await Actions[ai(0xa2)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':'maka-cli'},{'Key':ai(0x87),'Value':h},{'Key':ai(0xa1),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xbc)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0xd7)](ai(0xca)));}else{Log[ai(0xad)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0xda)+r+'\x20?',!![]);aa&&(d[ai(0xc0)](r),f[ai(0x9d)](s)&&a4g[ai(0xb8)](s));const ab=await Actions[ai(0xa2)](ai(0xa5)+m+'\x20?',!![]);ab&&d[ai(0x85)](m);}}catch(ac){console[ai(0x96)](ac),Log[ai(0xa3)](ac);}}catch(ad){console[ai(0xa3)](ad),process[ai(0xd3)](0x0);}},a4e);
|
|
1
|
+
const a4ag=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x117))/0x1*(parseInt(ae(0x10f))/0x2)+parseInt(ae(0x10a))/0x3*(-parseInt(ae(0x123))/0x4)+-parseInt(ae(0x126))/0x5+-parseInt(ae(0x102))/0x6+parseInt(ae(0xfb))/0x7+parseInt(ae(0x12e))/0x8*(-parseInt(ae(0x140))/0x9)+parseInt(ae(0xdf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd7448));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const af=a4d;return a4a['toString']()[af(0xfd)](af(0xdb))[af(0x131)]()[af(0x100)](a4a)[af(0xfd)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';function a4c(){const at=['Creating\x20user\x20data\x20file\x20in\x20','error','subnetId','parse','Setting\x20AMI\x20ID\x20to\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','split','1:1','**\x20Available\x20Security\x20Groups\x20**','unlinkSync','log','9wlrNRp','\x20SGID:\x20','(((.+)+)+)+$','Setting\x20SG\x20ID\x20to:\x20','created-by','Please\x20choose\x20a\x20key\x20to\x20use:\x20','21118000fwUIUA','name','user-data','Remove\x20the\x20keypair\x20','createFile','Instance\x20Count:\x20','maka-cli','Desc','deleteKeyPair','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','exit','getSecurityGroups','**\x20Available\x20key-pairs\x20**','ask','push','\x20CIDR:\x20','ec2describeKeys','maka\x20aws:create-instance\x20--env\x20dev','getProjectConfig','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','maka\x20aws:create-instance\x20<opts>','Would\x20you\x20like\x20to\x20include\x20user\x20data?','sgId','forEach','alias','bright','success','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','5940781EAqryw','create-instance','search','\x20DESCRIPTION:\x20','User\x20Data:','constructor','Setting\x20the\x20key-pair\x20to:\x20','1595940VsONvK','chooseVPC','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','cidr','fsi','amiId','sort','Security\x20Group:\x20','42jVIPhe','ec2create','Instace\x20Type:\x20','\x20AMIID:\x20','**\x20Available\x20Subnets\x20**','18710UysoHT','maka\x20aws:ci\x20--env\x20prod','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','subnet','join','Security\x20Group\x20Name:\x20[','string','date','14woajmM','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','**\x20Available\x20AMIs\x20**','getTime','Create\x20new\x20AWS\x20instance','EC2\x20Name:\x20[','ID:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ImageID:','Web\x20App','env','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','316028UeZgzI','\x20SG\x20NAME:\x20','desc','656275HdNxzo','notice','\x20SUBNETID:\x20','getConfigPath','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','build\x20on\x20','\x20:\x20','22,80,443','3555472ENFwNC','confirm','deleteSecurityGroup','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Name','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'];a4c=function(){return at;};return a4c();}import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xda;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a4ag(0xfc),'aliases':['ci'],'usage':a4ag(0xf3),'examples':[a4ag(0xf0),a4ag(0x110)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ag(0x11b),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ah=a4ag;try{const c=this[ah(0x106)][ah(0xf1)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x106)]['getConfigFromShorthand'](b[ah(0x121)]),i=this[ah(0x106)][ah(0x129)](h),j=g+'-'+h,k=await Actions[ah(0xec)](ah(0x11c)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x12f)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ah(0xf9)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ah(0x127)](ah(0xeb));const A=r?r:k,B=await d[ah(0xef)]({'suggestion':A}),C=await Actions[ah(0xec)](ah(0xde))||'-1';if(parseInt(C)<0x0){Log[ah(0x136)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ah(0x127)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0xf6)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D['name'],Log['success'](ai(0x101)+r));});}catch(D){Log[ah(0x136)](D);}l=await d[ah(0x103)]();const t=await Actions[ah(0x12f)](ah(0x111),!![]);let u;if(t){const E=l===''?await d[ah(0x103)]():l;u=await Actions[ah(0xec)](ah(0x114)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x12d),G=F[ah(0x13b)](',');await d['ec2createSG']({'description':ah(0x120),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0xea)](u);if(I===''){Log[ah(0x127)](ah(0x13d)),J['forEach'](function(L){const aj=ah;L['name']===u?Log[aj(0x127)](aj(0x11d)+L['id']+aj(0x124)+L[aj(0xe0)]+'\x20SGID:\x20'+L[aj(0xf5)]):Log[aj(0xf8)]('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L['name']+aj(0xda)+L[aj(0xf5)]);});const K=await Actions[ah(0xec)](ah(0x122)+H+']\x20')||H[ah(0x131)]();J[ah(0xf6)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0xf5)],Log[ak(0xf9)](ak(0xdc)+m+'\x0a'));});}else m=I,Log[ah(0xf9)](ah(0xdc)+m+'\x0a');if(m==='')throw Log[ah(0x136)](ah(0x132));}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ah(0x127)](ah(0x119));const N=execSync(ah(0xfa)+M+ah(0xf2))[ah(0x131)](),O=JSON[ah(0x138)](N),P=[],Q=[];O[ah(0xf6)](function(S){const al=ah;if(S[al(0xf7)]==='amazon'){const T=S[al(0xe6)][al(0x13b)](al(0x12b))[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0xe6)],'date':T});}}),P[ah(0x108)](function(S,T){const am=ah;return new Date(T['date'])[am(0x11a)]()-new Date(S[am(0x116)])[am(0x11a)]();}),P[ah(0xf6)](function(S,T){const an=ah;Q[an(0xed)]({'id':T,'amiId':S[an(0x107)],'desc':S[an(0x125)]});}),Q[ah(0xf6)](function(S){const ao=ah;console[ao(0x13f)](ao(0x11d)+S['id']+ao(0x10d)+S[ao(0x107)]+ao(0xfe)+S[ao(0x125)]);});const R=await Actions[ah(0xec)](ah(0x12a))||'0';Q['forEach'](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x107)],Log[ap(0xf9)](ap(0x139)+n+ap(0x12c)+S[ap(0x125)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ah(0x136)](S);}try{Log[ah(0x127)](ah(0x10e));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ah(0x131)](),U=JSON[ah(0x138)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x137)]});}),V['forEach'](function(X){const ar=ah;console[ar(0x13f)](ar(0x11d)+X['id']+ar(0xee)+X[ar(0x105)]+'\x20AZONE:\x20'+X['az']+ar(0x128)+X[ar(0x137)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ah(0xf6)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x137)],Log[as(0xf9)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ah(0x136)](ah(0x132));}catch(X){Log[ah(0x136)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0xec)](ah(0xe8))||ah(0x13c),Z=Y[ah(0x13b)](':')[0x0],a0=Y[ah(0x13b)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)==='number'&&Log[ah(0xf9)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x136)](a1);}try{const a2=await Actions[ah(0xec)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||'t3.micro';typeof a2===ah(0x115)&&(o=a2);}catch(a3){Log[ah(0x136)](a3);}let x;try{const a4=await Actions[ah(0x12f)](ah(0xf4),![]);a4&&(x=a4f[ah(0x113)](i,ah(0xe1)),Log[ah(0x127)](ah(0x135)+x),await this[ah(0x106)][ah(0xe3)]({'filePath':x,'data':''}),await Actions[ah(0x12f)](ah(0x104)));}catch(a5){Log[ah(0x136)](a5);}try{const a6=JSON[ah(0x138)](execSync(ah(0x11e)+p+ah(0x13a))['toString']())[0x0][ah(0x112)];Log['notice'](ah(0x11f)+n),Log[ah(0x127)](ah(0xe4)+v+':'+w),Log[ah(0x127)](ah(0x10c)+o),Log['notice']('Key-Pair:\x20'+r),Log[ah(0x127)](ah(0x109)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log['notice'](ah(0xff)+x);const a8=a4g['readFileSync'](x);Log[ah(0x127)](a8);}const a7=await Actions[ah(0x12f)](ah(0x118));if(a7){const a9=await d[ah(0x10b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0xdd),'Value':ah(0xe5)},{'Key':'environment','Value':h},{'Key':ah(0x133),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0xf9)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0xf8)](ah(0x134)));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ah(0x12f)](ah(0xe2)+r+'\x20?',!![]);aa&&(d[ah(0xe7)](r),f['isFile'](s)&&a4g[ah(0x13e)](s));const ab=await Actions[ah(0x12f)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ah(0x130)](m);}}catch(ac){console[ah(0x13f)](ac),Log['error'](ac);}}catch(ad){console[ah(0x136)](ad),process[ah(0xe9)](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d
|
|
1
|
+
function a5c(){const l=['4330914tgZBfG','env','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','4165056WaobYk','\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','ckp','375mKOtQF','(((.+)+)+)+$','8ihpIew','22004ZSbETi','1381854YfMBlZ','exit','fsi','30190ifqbce','apply','40jNognA','3129654WxmiFf','maka\x20aws:ckp\x20--env\x20prod','2812149SBwQdr','maka\x20aws:create-key-pair\x20--env\x20prod','search','createKeyPair','toString','getConfigFromShorthand','create-key-pair'];a5c=function(){return l;};return a5c();}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x1b4))/0x1*(parseInt(g(0x1b9))/0x2)+parseInt(g(0x1b6))/0x3+parseInt(g(0x1b5))/0x4*(parseInt(g(0x1b2))/0x5)+-parseInt(g(0x1bc))/0x6+parseInt(g(0x1ac))/0x7+parseInt(g(0x1af))/0x8+parseInt(g(0x1be))/0x9*(-parseInt(g(0x1bb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x5856a));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1a9)]()[i(0x1c0)](i(0x1b3))[i(0x1a9)]()['constructor'](a5a)[i(0x1c0)](i(0x1b3));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5j(0x1ab),'aliases':[a5j(0x1b1)],'usage':'maka\x20aws:create-key-pair\x20<opts>','examples':[a5j(0x1bf),a5j(0x1bd)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x1ad)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x1ae),'description':a5j(0x1b0)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x1b8)][k(0x1aa)](b[k(0x1ad)]);c[k(0x1a8)]({'env':d});}catch(f){console['error'](f),process[k(0x1b7)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6p=a6d;function a6c(){const s=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Security\x20Group\x20Name:\x20[','csg','531430LrCJeM','ask','(((.+)+)+)+$','262068Akooxu','\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','maka\x20aws:csg','search','constructor','fsi','split','ec2createSG','9921393yErMmD','maka\x20aws:create-secuirty-group','2572068mcrZGj','toString','create','85256hlaGnt','maka\x20aws\x20create-security-group','chooseVPC','create-security-group','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','1jhKZRz','407blxbrg','forEach','error','1115359vvnNPd','7139100fnCfZN','apply','22,80,443','match','195wbrQJa','8dsunxG','name'];a6c=function(){return s;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x8c;let f=c[d];return f;},a6d(a,b);}(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x98))/0x1*(parseInt(m(0xaa))/0x2)+parseInt(m(0x90))/0x3+parseInt(m(0x93))/0x4*(-parseInt(m(0xa1))/0x5)+parseInt(m(0x9d))/0x6+parseInt(m(0x9c))/0x7*(parseInt(m(0xa2))/0x8)+parseInt(m(0x8e))/0x9+-parseInt(m(0xa7))/0xa*(parseInt(m(0x99))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9cd71));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x91)]()[o(0xad)](o(0xa9))['toString']()[o(0xae)](a6a)[o(0xad)](o(0xa9));});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[a6p(0x92)]({'name':a6p(0x96),'aliases':[a6p(0xa6)],'usage':a6p(0x94),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x97),'description':a6p(0xab),'examples':[a6p(0x8f),a6p(0xac)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0xaf)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x95)](),h=b['name']?b[q(0xa3)]:''+f,i=await Actions['ask'](q(0xa5)+h+']')||h,j=await Actions[q(0xa8)](q(0xa4))||q(0x9f),k=j[q(0x8c)](',');k[q(0x9a)](l=>{const r=q;if(!l[r(0xa0)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[q(0x8d)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x9b)](l),process['exit'](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0x1bc))/0x1+parseInt(f(0x1be))/0x2*(parseInt(f(0x1b0))/0x3)+-parseInt(f(0x1ba))/0x4+-parseInt(f(0x1bb))/0x5+parseInt(f(0x1b6))/0x6+parseInt(f(0x1b1))/0x7*(parseInt(f(0x1b5))/0x8)+parseInt(f(0x1b9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9675b));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x1b7)]()[h(0x1b2)]('(((.+)+)+)+$')[h(0x1b7)]()[h(0x1bd)](a7a)['search'](h(0x1aa));});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a7d(a,b);}import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x1ad)]({'name':a7i(0x1b3),'aliases':['di'],'usage':a7i(0x1ae),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x1b4),'examples':[a7i(0x1ae),a7i(0x1af)],'description':'\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'},async function(){const j=a7i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){console[j(0x1b8)](b),process[j(0x1ab)](0x0);}},a7e);function a7c(){const k=['create','maka\x20aws:describe-instances','maka\x20aws:di','3yoBikw','4853954cKnfXN','search','describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','8dFbhNK','4905600XpXBNY','toString','error','15519987AOVjwk','4788984LlCdPo','4847120NyMHVG','910625xdpRbz','constructor','916226WJxMuM','(((.+)+)+)+$','exit','apply'];a7c=function(){return k;};return a7c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xe0;let f=c[d];return f;},a8d(a,b);}function a8c(){const k=['describe-key-pairs','8518256UlAMDQ','6885630WJYhPd','12HcmEKW','apply','21130eGBASV','28fHvgnc','286HhhrBD','246654IwQNkv','error','search','create','constructor','21318605qzFnMd','3051uHFALq','maka\x20aws:dkp','3045igZEwV','exit','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','maka\x20aws:describe-key-pairs','toString','dkp','7ORcXuL','355191UjqmSC','ec2describeKeys'];a8c=function(){return k;};return a8c();}const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0xed))/0x1*(-parseInt(f(0xe4))/0x2)+parseInt(f(0xf4))/0x3*(-parseInt(f(0xe3))/0x4)+parseInt(f(0xf8))/0x5+-parseInt(f(0xe5))/0x6*(parseInt(f(0xf3))/0x7)+parseInt(f(0xf7))/0x8+-parseInt(f(0xeb))/0x9*(-parseInt(f(0xe2))/0xa)+-parseInt(f(0xea))/0xb*(parseInt(f(0xe0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xbfd2b));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0xf1)]()['search']('(((.+)+)+)+$')[h(0xf1)]()[h(0xe9)](a8a)[h(0xe7)]('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0xe8)]({'name':a8i(0xf6),'aliases':[a8i(0xf2)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0xef),'examples':[a8i(0xf0),a8i(0xec)]},async function(){const j=a8i;try{const a=new AWS();a[j(0xf5)]();}catch(b){console[j(0xe6)](b),process[j(0xee)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(0x1fc))/0x1+-parseInt(l(0x20b))/0x2+-parseInt(l(0x1f0))/0x3+parseInt(l(0x20c))/0x4+-parseInt(l(0x1ff))/0x5*(-parseInt(l(0x1ef))/0x6)+parseInt(l(0x1f6))/0x7+-parseInt(l(0x1f9))/0x8*(parseInt(l(0x205))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x6ba0f));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a['toString']()[n(0x1f8)](n(0x209))[n(0x1f2)]()['constructor'](a9a)[n(0x1f8)](n(0x209));});function a9c(){const r=['3062190jpUPPr','1393686ANlWAK','Deleted\x20','toString','getSecurityGroups','isMakaProject','maka\x20aws:delete-sg','4284994IXWxlU','maka\x20aws:dsg','search','1086472MyAoBz','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','sgId','561180DOoWls','ask','create','5FAYTWj','Deleting\x20a\x20','error','success','apply','exit','9psThqv','notice','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ID:\x20','(((.+)+)+)+$','dsg','206408ZOaCCi','2332380GQCFKg','forEach','\x20SG\x20NAME:\x20','name','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','\x20SGID:\x20','confirm'];a9c=function(){return r;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a9d(a,b);}Command[a9o(0x1fe)]({'name':'delete-security-group','aliases':[a9o(0x20a)],'usage':a9o(0x1f5),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a9o(0x1f5),a9o(0x1f7)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1f4)]();let d='';if(c){const j=b['getProjectConfig']();d=j['appName'];}const {sgList:f}=await a[p(0x1f3)]();f[p(0x20d)](function(k){const q=p;c&&k[q(0x1eb)]['includes'](d)?Log[q(0x206)](q(0x208)+k['id']+q(0x1ea)+k[q(0x1eb)]+q(0x1ed)+k[q(0x1fb)]):Log['bright'](q(0x208)+k['id']+q(0x1ea)+k['name']+q(0x1ed)+k[q(0x1fb)]);});let g='';const h=await Actions[p(0x1fd)](p(0x1fa));f[p(0x20d)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x201)](p(0x207));const i=await Actions[p(0x1ee)](p(0x200)+g+p(0x1ec),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x202)](p(0x1f1)+g)):Log[p(0x201)]('Not\x20deleting\x20secuirty\x20group'),process['exit'](0x0);}catch(k){process[p(0x204)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xad))/0x1+-parseInt(f(0xc1))/0x2*(parseInt(f(0xb2))/0x3)+parseInt(f(0xb3))/0x4*(parseInt(f(0xaf))/0x5)+parseInt(f(0xbb))/0x6+-parseInt(f(0xc5))/0x7+parseInt(f(0xac))/0x8+-parseInt(f(0xb5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xd709c));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xbc)]()[h(0xaa)](h(0xc6))[h(0xbc)]()[h(0xb4)](a10a)[h(0xaa)](h(0xc6));});a10a();import a10e from'./aws.command.js';function a10c(){const k=['6339084jwBNpS','toString','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','error','reboot-instance','ec2rebootInstance','36QVgxUn','chooseInstance','status','confirm','9288524vBkTKj','(((.+)+)+)+$','Reboot\x20an\x20EC2\x20instance','search','instanceId','10678688rIOYoo','377985zjPzaK','create','5696765NmUief','maka\x20aws:reboot-instance','\x20is\x20still\x20running.','163563jzPPQa','4pKYaMI','constructor','6476238fZjjvE','running','apply','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','exit'];a10c=function(){return k;};return a10c();}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-0xa9;let f=c[d];return f;},a10d(a,b);}Command[a10i(0xae)]({'name':a10i(0xbf),'aliases':['rbi'],'usage':a10i(0xb0),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xa9),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0xc2)]();if(b?.[j(0xc3)]===j(0xb6)){const c=await Actions[j(0xc4)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0xb8)]+'\x20Ready?');c&&b[j(0xab)]?a[j(0xc0)]({'instanceId':b['instanceId']}):Log[j(0xbe)](j(0xbd)+b[j(0xb8)]+j(0xb1));}else Log[j(0xbe)](j(0xb9));}catch(d){console['error'](d),process[j(0xba)](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(0x99))/0x1*(-parseInt(h(0x95))/0x2)+parseInt(h(0x8c))/0x3+parseInt(h(0xa1))/0x4*(-parseInt(h(0x84))/0x5)+parseInt(h(0x8e))/0x6+-parseInt(h(0x98))/0x7+parseInt(h(0x89))/0x8+parseInt(h(0x8f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xd521e));function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x84;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0x8b)]()[j(0x96)]('(((.+)+)+)+$')['toString']()[j(0x9d)](a11a)['search'](j(0x93));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const m=['ec2describeKeys','(((.+)+)+)+$','\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','166vMiOuY','search','Not\x20deleting\x20keypair','896987EUsTyS','12779nsjriU','create','apply','deleteKeyPair','constructor','Deleting\x20a\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','184ByyEtu','maka\x20aws:rkp','21945CTNQgS','Deleted\x20','rkp','maka\x20aws:remove-key-pair','error','3707768zHXpAm','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','toString','310893yRgEXV','ask','7019394ByLfZC','4740129JLnAZy','confirm','exit'];a11c=function(){return m;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0x9a)]({'name':'remove-key-pair','aliases':[a11k(0x86)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x8a),'description':a11k(0x94),'examples':[a11k(0x87),a11k(0xa2)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0x92)]();let c;const d=await Actions[l(0x8d)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x88)](l(0xa0));const f=await Actions[l(0x90)](l(0x9e)+c+l(0x9f),![]);f?(a[l(0x9c)](c),Log['success'](l(0x85)+c)):Log[l(0x88)](l(0x97)),process[l(0x91)](0x0);}catch(g){process[l(0x91)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x1fc))/0x1+-parseInt(l(0x1ef))/0x2+-parseInt(l(0x208))/0x3+parseInt(l(0x201))/0x4+-parseInt(l(0x1f5))/0x5+parseInt(l(0x204))/0x6*(parseInt(l(0x1f7))/0x7)+-parseInt(l(0x1e9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x5b119));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x1e7)]()[n(0x1ed)](n(0x1f1))['toString']()['constructor'](a12a)[n(0x1ed)](n(0x1f1));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'path';function a12c(){const q=['chooseInstance','\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','516612fQXmGs','apply','appName','\x20IP\x20to\x20','stringify','host','getConfigPath','join','set-host','success','toString','sth','791272lxMDxM','private','config/ssh.json','public','search','writeFileSync','947388toGsgK','error','(((.+)+)+)+$','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','utf8','parse','693205eZbaYB','create','21DriGQG','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','env','ask','inherit','655624RgiqYA','maka\x20aws\x20set-host','privateIp','maka\x20aws:set-host\x20--env\x20dev','fsi','1325152uAgnrP','ssh.json','getProjectConfig','539106GyQITf','readFileSync'];a12c=function(){return q;};return a12c();}import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12o(0x1f6)]({'name':a12o(0x1e5),'aliases':[a12o(0x1e8)],'usage':a12o(0x1fd),'mustBeInMakaProject':!![],'requiredOpts':[a12o(0x1f9)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x1f2),'description':a12o(0x207),'examples':[a12o(0x1ff),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x200)][p(0x1e3)](b[p(0x1f9)]),f=this[p(0x200)][p(0x203)](),g=await c[p(0x206)](),h=a12e[p(0x1e4)](d,p(0x202));!this[p(0x200)]['isFile'](h)&&await this['fsi']['template']({'srcPath':p(0x1eb),'destPath':h,'context':{'app':f[p(0x20a)]},'config':f});const i=JSON[p(0x1f4)](a12f[p(0x205)](h,p(0x1f3))),j=await Actions[p(0x1fa)](p(0x1f8))||p(0x1ec);if(j){if(j===p(0x1ec)||j===p(0x1ea)){if(j===p(0x1ec))i[p(0x1e2)]=g?.['publicIp'];else j===p(0x1ea)&&(i[p(0x1e2)]=g?.['privateIp']);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[p(0x1e2)]=g?.[p(0x1fe)];a12f[p(0x1ee)](a12e['join'](d,p(0x202)),JSON[p(0x1e1)](i,null,0x2)),execSync('cat\x20'+a12e['join'](d,p(0x202)),{'stdio':p(0x1fb)}),Log[p(0x1e6)]('\x0aSaved\x20host\x20'+j+p(0x20b)+d+a12e['sep']+p(0x202));}catch(k){console[p(0x1f0)](k),process['exit'](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0x6a))/0x1+parseInt(f(0x7d))/0x2+-parseInt(f(0x6b))/0x3+parseInt(f(0x82))/0x4*(-parseInt(f(0x77))/0x5)+parseInt(f(0x7c))/0x6*(-parseInt(f(0x72))/0x7)+-parseInt(f(0x7f))/0x8+-parseInt(f(0x7e))/0x9*(-parseInt(f(0x6e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x31257));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a['toString']()[h(0x68)](h(0x84))[h(0x70)]()[h(0x6d)](a13a)[h(0x68)](h(0x84));});a13a();import a13e from'./aws.command.js';function a13c(){const k=['search','maka\x20aws:ti','142176yVuYbo','184800rkfMpH','error','constructor','20nxdPWl','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','toString','\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','119pZPmqk','ec2terminateInstance','name','confirm','instanceId','372535SUYmAp','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','Terminate\x20an\x20EC2\x20instance','maka\x20aws:terminate-instance','120570dXEByR','521262ZnirPx','2767086EgYgTA','921352FgkiIP','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','create','16dWhGcP','apply','(((.+)+)+)+$','exit','terminate-instance'];a13c=function(){return k;};return a13c();}import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x68;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13i(0x81)]({'name':a13i(0x86),'aliases':['ti'],'usage':a13i(0x7b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13i(0x7a),'description':a13i(0x71),'examples':[a13i(0x7b),a13i(0x69)]},async function(){const j=a13i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x76)]&&b?.['status']==='running'){const c=await Actions[j(0x75)](j(0x80)+b[j(0x74)]+'\x20Ready?');c?a[j(0x73)]({'instanceId':b['instanceId']}):Log[j(0x6c)](j(0x79)+b[j(0x74)]+j(0x78));}else Log[j(0x6c)](j(0x6f));}catch(d){console[j(0x6c)](d),process[j(0x85)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x7e;var f=c[d];return f;},a14d(a,b);}(function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x8a))/0x1*(-parseInt(f(0x8b))/0x2)+parseInt(f(0x89))/0x3+parseInt(f(0x87))/0x4+parseInt(f(0x81))/0x5+parseInt(f(0x85))/0x6+-parseInt(f(0x83))/0x7*(-parseInt(f(0x7e))/0x8)+-parseInt(f(0x82))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x1d5dd));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x7f)]()[h(0x86)](h(0x88))['toString']()[h(0x84)](a14a)[h(0x86)](h(0x88));});a14a();function a14c(){var i=['8TuGLfI','toString','apply','941320upUeql','2560968EjbNPC','114590gYOLQf','constructor','491040upnTVT','search','117168suvYye','(((.+)+)+)+$','594444uAcGIX','36359yMXhyQ','6qubvnC'];a14c=function(){return i;};return a14c();}import'./build.js';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(0x1ba))/0x1*(-parseInt(p(0x1ca))/0x2)+-parseInt(p(0x1aa))/0x3*(parseInt(p(0x1c4))/0x4)+-parseInt(p(0x1cc))/0x5+-parseInt(p(0x1b3))/0x6*(-parseInt(p(0x1c9))/0x7)+parseInt(p(0x1bb))/0x8*(parseInt(p(0x1b2))/0x9)+parseInt(p(0x1c5))/0xa*(-parseInt(p(0x1b6))/0xb)+-parseInt(p(0x1ab))/0xc*(-parseInt(p(0x1b7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xa836a));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x1be)]()[r(0x1c0)]('(((.+)+)+)+$')['toString']()[r(0x1c2)](a15a)[r(0x1c0)](r(0x1c1));});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a15s(0x1cf)]({'name':'build','usage':a15s(0x1b5),'validOpts':[a15s(0x1b0),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a15s(0x1af),'examples':[a15s(0x1ad),a15s(0x1a9)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x1d0)](c);if(d)this[t(0x1c6)](c,a,b);else{const f=b['force'];if(!f){const i=this[t(0x1b9)]['getGlobalMeteorVersion'](),j=this[t(0x1b9)][t(0x1b1)](),k=a15g['gt'](i,j);if(k){const l=await Actions['confirm'](t(0x1bf)+j+t(0x1ac)+i+').\x20Update?');l&&this['fsi']['invokeMeteorCommand'](t(0x1bc),['--release',i]);}}const g=[this[t(0x1b9)][t(0x1b4)]({'pathParts':['build']})][t(0x1ae)](process['argv'][t(0x1ce)](0x3)),h=a15e['join'](this[t(0x1b9)]['pathFromProject']({}),t(0x1bd),t(0x1c8));if(a15f[t(0x1d1)](h)){const m=f??await Actions[t(0x1c7)](t(0x1a6));if(!m)throw Log['error'](t(0x1cd));}g[t(0x1b8)]((n,o)=>{const u=t;n==='--force'&&g[u(0x1a8)](o,0x2);}),this['fsi'][t(0x1c3)](t(0x1bd),g);}}catch(n){console[t(0x1a7)](n),process['exit'](0x0);}});export default BuildCommand;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a15d(a,b);}function a15c(){const v=['fsi','4tFRBhf','8739608uYtTVw','update','build','toString','This\x20project\x27s\x20meteor\x20version\x20(','search','(((.+)+)+)+$','constructor','invokeMeteorCommand','4rFriXO','9427690ejsvVc','runSubCommand','confirm','app.tar.gz','18977ADEfjS','467106BOYSXZ','apply','796370oRccZj','Aborted.','slice','create','findSubCommand','existsSync','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','error','splice','maka\x20build:docker','867309kfzByY','12924dCeBcZ',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','maka\x20build','concat','\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','force','getProjectMeteorVersion','9YVEhsV','1398bbUdrj','pathFromProject','maka\x20build\x20<opts>','11hvhRUj','15574QyJOeO','forEach'];a15c=function(){return v;};return a15c();}
|
|
@@ -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(0x104))/0x1+parseInt(F(0x111))/0x2+parseInt(F(0x113))/0x3+-parseInt(F(0x132))/0x4*(-parseInt(F(0x123))/0x5)+-parseInt(F(0x100))/0x6*(-parseInt(F(0x105))/0x7)+-parseInt(F(0x117))/0x8*(parseInt(F(0x133))/0x9)+-parseInt(F(0x140))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x63ef9));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x10f)]()[H(0xfa)]('(((.+)+)+)+$')[H(0x10f)]()[H(0x126)](a16a)[H(0xfa)](H(0x10c));});a16a();import a16e from'./build.js';import a16f from'path';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xf7;let f=c[d];return f;},a16d(a,b);}import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16c(){const K=['.meteor','serverName','push','app.tar.gz','meteor.bat','apply','meteor','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','existsSync','getConfigPath','4zYxLDX','9EJkEvG','isFile','config.json','findAppDirectory','config','length','config/pm2.config.js','inherit','http','debug','error','docker','notice','20691780XCJHlP','getProjectsMeteorNodeVersion','win32','Stored\x20server\x20config\x20to\x20','checkConfigExists','dockerfile','confirm','pathFromProject','Docker\x20Context\x20Path:\x20','maka\x20build:docker\x20--debug','N/A','cert.pem','mkdirSync','build','isDirectory','findProjectDirectory','search','serverPort','Tagging\x20Docker\x20Image:\x20','exit','docker\x20build\x20--build-arg\x20NODE_VERSION=','readFileLines','149478kjiAkD','force','template','appName','489907dGvkjf','189ITinnv','platforms','fsi','config/docker-compose.yaml','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','maka\x20build:docker\x20<opts>','_keys','(((.+)+)+)+$','--server=','os.linux.x86_64','toString','findGenerator','1410788iAfuMn','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).','1716507KOZqEb','://','maka\x20build:docker\x20--tag','\x20npm\x20install\x20--save','1782296zIEMee','Try\x20\x27maka\x20run:docker\x27','tag','app','getGlobalConfig','copyFileSync','443','https','.maka','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','Dockerfile','pm2.config.js','1305905loxIYz','Mobile\x20server\x20port:\x20','join','constructor','-t\x20'];a16c=function(){return K;};return a16c();}Command['create']({'name':a16I(0x13e),'aliases':['d'],'usage':a16I(0x10a),'validOpts':[a16I(0x101),'tag',a16I(0x13c)],'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(0x115),a16I(0x149)]},async function(a,b){const J=a16I;try{const c=await this[J(0x107)][J(0x11b)](),d=await this['fsi']['getProjectConfig'](),f=await this[J(0x107)][J(0x141)]();f===J(0x14a)&&(Log[J(0x13d)](J(0x112)),process[J(0xfd)](0x1));const g=process['platform']===J(0x142)?J(0x12c):J(0x12e),h=this[J(0x107)][J(0x147)]({}),i=a16f['join'](h,J(0x121));if(!this[J(0x107)][J(0x134)](i)){const s=a16h[J(0x110)](J(0x145));s&&await s['invoke'](['dockerfile'],{'cwd':h,'config':d});}const j=this[J(0x107)][J(0x144)](J(0x13e));if(!j){const t=a16h[J(0x110)](J(0x137));if(t){await t['invoke']([J(0x13e)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x107)][J(0x131)](J(0x13e)),v=a16f[J(0x125)](u,J(0x122));await this[J(0x107)][J(0x102)]({'srcPath':J(0x139),'destPath':v,'context':{'app':d[J(0x103)],'isDocker':![]},'config':d});const w=a16f['join'](u,'docker-compose.yaml');await this[J(0x107)][J(0x102)]({'srcPath':J(0x108),'destPath':w,'context':{'app':d[J(0x103)],'appFileCase':paramCase(d['appName'])},'config':d});}}if(this['fsi']['isFile'](c['cert'])){const x=this[J(0x107)][J(0xf8)](a16f[J(0x125)](J(0x137),'docker',J(0x10b)));!x&&a16g[J(0x14c)](a16f[J(0x125)](J(0x137),'docker',J(0x10b))),a16g[J(0x11c)](c['cert'],a16f[J(0x125)](h,J(0x137),J(0x13e),J(0x10b),J(0x14b)));}const k=[J(0xf7),a16f[J(0x125)](this[J(0x107)][J(0xf9)](),'build'),'--architecture',J(0x10e)],l=this[J(0x107)][J(0xff)](a16f[J(0x125)](this[J(0x107)][J(0x147)]({}),J(0x11a),J(0x128),J(0x106))),m=l[J(0x138)]>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0x129)]:await Actions['ask']('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[J(0xfb)]?d[J(0xfb)]:await Actions['ask'](J(0x124));if(y[J(0x138)]==0x0||z['length']==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z==J(0x11d)?J(0x11e):J(0x13b);k[J(0x12a)](J(0x10d)+A+J(0x114)+y+':'+z);if(!d['serverName']&&!d[J(0xfb)]){const B=await Actions[J(0x146)](J(0x120));B&&(this[J(0x107)]['setProjectConfig']('serverName',y),this[J(0x107)]['setProjectConfig'](J(0xfb),z),Log[J(0x13f)](J(0x143)+a16f[J(0x125)](J(0x11f),J(0x135))));}}const n=a16f[J(0x125)](this[J(0x107)][J(0x147)]({}),J(0xf7),J(0x12b));if(a16g[J(0x130)](n)){const C=await Actions[J(0x146)](J(0x12f)),D=C;D&&(execSync(g+J(0x116),{'cwd':this[J(0x107)]['findAppDirectory'](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[J(0x125)]('\x20'),{'cwd':this[J(0x107)][J(0x136)](),'stdio':J(0x13a)}));}else execSync(g+J(0x116),{'cwd':this[J(0x107)]['findAppDirectory'](),'stdio':'ignore'}),Log['notice']('[*]\x20maka\x20'+k[J(0x125)]('\x20')),execSync(g+'\x20'+k[J(0x125)]('\x20'),{'cwd':this['fsi']['findAppDirectory'](),'stdio':'inherit'});const o=this['fsi'][J(0x147)]({});let p=J(0x127)+paramCase(d['appName'])+':latest';b[J(0x119)]&&(p=J(0x127)+b['tag']);Log['notice'](J(0x109)+f),Log[J(0x13f)](J(0xfc)+p),Log[J(0x13f)](J(0x148)+o);const q=b[J(0x13c)]?'--progress=plain\x20--no-cache':'',r=J(0xfe)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x13a)}),Log[J(0x13f)](J(0x118));}catch(E){console[J(0x13d)](E),process[J(0xfd)](0x0);}},a16e);
|