@maka/maka-cli 4.3.30 → 4.3.31
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/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/actions/actions.test.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"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
|
|
1
|
+
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0xcf))/0x1*(-parseInt(p(0xc6))/0x2)+-parseInt(p(0xd7))/0x3+parseInt(p(0x101))/0x4*(parseInt(p(0xc2))/0x5)+-parseInt(p(0x10a))/0x6*(parseInt(p(0xfd))/0x7)+parseInt(p(0x108))/0x8*(parseInt(p(0x107))/0x9)+-parseInt(p(0xf2))/0xa+-parseInt(p(0xf4))/0xb*(-parseInt(p(0x106))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x57e5a));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x10f)]()['search'](r(0xc3))[r(0x10f)]()[r(0xee)](a0a)[r(0xfb)](r(0xc3));});a0a();import a0e from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xbf;let f=c[d];return f;},a0d(a,b);}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';function a0c(){const E=['roles','Name','4XSwSmW','create','_handler','deploy','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','generate','sort','filter','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','76562EFLcdD','validateParams','Command\x20not\x20found','Too\x20few\x20options','number','exit','maxArgLength','match','1772964TbKebP','proCommands','addCommand','notice','mustHaveMeteorInstalled','Command.create\x20requires\x20a\x20handler\x20function!','findCommand','bright','minArgLength','There\x20is\x20no\x20Meteor\x20application\x20here','call','fsi','bind','assign','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','function','help','header','includes','validateMakaSubscription','minOptsLength','split','disableAuthCheck','constructor','getPro','murder','tableList','418820DbnOKm','proFlags','11HODvVI','Command.create\x20requires\x20some\x20options!','invoke','play','splice','options','error','search','keys','2509479hoVIfn','length','validateMeteorInstall','Too\x20many\x20options','989948wdQtwl','push','mustBeInMakaProject','name','apply','17067720iaQoIa','9RSDjPT','1545736ZuVgkM','maxOptsLength','12aSdjYj','domainLicense','To\x20use\x20this\x20command,\x20\x22','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','_commands','toString','addCommand\x20requires\x20a\x20Command\x20instance','forEach','findSubCommand','usage','aliases','parent','join','run','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','5RiARYb','(((.+)+)+)+$'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{[a0s(0xf9)];[a0s(0x10e)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0xc1));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==t(0xe6))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[t(0xf9)]=Object['assign']({},a),this[t(0x104)]=this[t(0xf9)][t(0x104)],this[t(0x10e)]=[],this[t(0xc8)]=b[t(0xe3)](this);}static[a0s(0xc7)](a,b,c){const u=a0s;if(!a)throw new Error(u(0xf5));if(typeof b!=='function')throw new Error(u(0xdc));const d=new Command(a,b);return c=c||a0f,Object[u(0xe4)](d,{'parent':c?.[u(0xf9)]?.[u(0x104)]}),c[u(0xd9)](d),d;}[a0s(0xd9)](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x110));this['_commands'][v(0x102)](a);}async[a0s(0xea)](a,b){const w=a0s,c=this[w(0xdd)](a[0x0]);if(c){const d=c?.[w(0x104)]||a[0x0],e=c?.[w(0x115)]||'',f=c?.[w(0xf9)];if(f[w(0xed)])return;const g=a[0x0],h=Object[w(0xfc)](b),i=await this['fsi']['getPro']();!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[w(0xd4)](0x1));const j=i?.[w(0xd8)][w(0xe9)](d)||i?.['proCommands'][w(0xe9)](e),k=i?.[w(0xc4)][w(0xe9)]('singleLicense')||i?.['roles'][w(0xe9)](w(0x10b)),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(h[w(0xfe)]>0x0){const m=i?.[w(0xf3)][w(0xcd)](n=>h[w(0xe9)](n));if(m&&m[w(0xfe)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.[w(0xbf)](',\x20')+w(0xce);}if(g===w(0xc9)){const n=await this[w(0xe2)][w(0xef)](),o=n?.['proCommands']['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x10c)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a0s(0xc0)](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0xea)](a,b);}catch(c){Log[x(0xfa)](c),process[x(0xd4)](0x0);}await this[x(0xf6)](a,b);}catch(d){process[x(0xd4)](0x1);}}async[a0s(0xf6)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![]}=this[y(0xf9)];try{if(this[y(0xf9)][y(0x104)]!==y(0xcb)){if(!isRoot){const d=(a[0x0]===_prevCmd||a['length']===0x0)&&this[y(0x10e)]['length']>=0x0;if(d&&b[y(0xe7)]){if(this['_commands'][y(0xfe)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0xe7)]){if(this[y(0xf9)][y(0x103)]){const f=this['validateMakaProject']();if(!f)throw new MustBeInProjectError();}if(this[y(0xf9)][y(0xdb)]){const g=this[y(0xff)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[y(0xf9)][y(0xdf)]==='number'){if(a['length']<this[y(0xf9)][y(0xdf)]){Log[y(0xfa)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[y(0xf9)][y(0xd5)]===y(0xd3)){if(a[y(0xfe)]>=this[y(0xf9)]['maxArgLength']){Log[y(0xfa)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0xf9)][y(0xeb)]==='number'){if(Object[y(0xfc)](b)[y(0xfe)]<this[y(0xf9)][y(0xeb)]){Log[y(0xfa)](y(0xd2));throw new UsageError();}}if(typeof this[y(0xf9)][y(0x109)]==='number'){if(Object[y(0xfc)](b)['length']>=this[y(0xf9)]['maxOptsLength']){Log[y(0xfa)](y(0x100));throw new UsageError();}}}}this[y(0xd0)](a,b,this[y(0xf9)]),_prevCmd=a[0x0];}await this[y(0xc8)][y(0xe1)](this,a,b);}catch(h){Log[y(0x113)](description,examples,usage,c);if(h instanceof UsageErrorWithSubs)Log[y(0xda)]('Sub-Commands:'),this[y(0xf1)](this[y(0x10e)]),Log[y(0xe8)](y(0x10d));else{if(h instanceof MustBeInProjectError)Log[y(0xfa)](y(0xe5));else{if(h instanceof NoMeteorFoundError)Log[y(0xfa)](y(0xca)),Log[y(0xda)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(h instanceof NoMeteorAppFoundError)Log[y(0xfa)](y(0xe0));else throw h;}}}process['exit'](0x1);}}['tableList'](a){const z=a0s,b=new a0e({});b[z(0x102)]([z(0xc5),'Alias','Description']),a[z(0xcc)]()[z(0x111)](c=>{const A=z;c['name']!==A(0xf0)&&c[A(0x104)]!==A(0xf7)&&b[A(0x102)]([c[A(0x104)],c[A(0x114)](),c['shortDesc']()]);}),Log[z(0xde)](b[z(0x10f)]());}[a0s(0xdd)](a){const B=a0s;return this[B(0x10e)]['find'](b=>b[B(0xd6)](a));}[a0s(0x112)](a){const C=a0s,b=a?.[C(0xec)](':');if(b)return a=b[0x0],this[C(0xdd)](a);else return;}async['runSubCommand'](a,b,c){const D=a0s;try{const d=a[D(0xec)](':');a=d[0x0];const f=d[0x1];f&&b[D(0xf8)](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g[D(0xc0)](b,c);else throw D(0xd1);}catch(h){throw Log[D(0xfa)](h);}}}
|
|
@@ -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(0x181))/0x1+parseInt(f(0x183))/0x2*(-parseInt(f(0x177))/0x3)+-parseInt(f(0x17c))/0x4*(parseInt(f(0x176))/0x5)+parseInt(f(0x17d))/0x6+-parseInt(f(0x179))/0x7+-parseInt(f(0x180))/0x8+-parseInt(f(0x178))/0x9*(-parseInt(f(0x17a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x4e00b));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0x182)](h(0x184))[h(0x17e)]()[h(0x17b)](a1a)[h(0x182)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';function a1c(){var i=['2039754bZDttR','toString','apply','4942312qIQkno','80937VTyAfm','search','73532rLvTLU','(((.+)+)+)+$','1580dLndVD','9XeHHmy','16574823UCqSTP','4233327AbofjK','10GLDjud','constructor','7724qqGpNx'];a1c=function(){return i;};return a1c();}import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x176;var f=c[d];return f;},a1d(a,b);}import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.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(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x6c))/0x1+parseInt(f(0x6e))/0x2+parseInt(f(0x69))/0x3+-parseInt(f(0x6a))/0x4+-parseInt(f(0x68))/0x5+-parseInt(f(0x74))/0x6*(-parseInt(f(0x6b))/0x7)+parseInt(f(0x6d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xcc970));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0x73)]()[h(0x70)](h(0x72))[h(0x73)]()[h(0x71)](a2a)['search'](h(0x72));});function a2c(){var i=['toString','30vLGFtC','7772520IiwYYx','187212mewAZV','2273656SqhBGj','1157737qrENrn','1611176wGukrp','342272XCMywS','835198LLYDFb','apply','search','constructor','(((.+)+)+)+$'];a2c=function(){return i;};return a2c();}a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x68;var f=c[d];return f;},a2d(a,b);}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0xae))/0x1*(-parseInt(f(0xa4))/0x2)+parseInt(f(0xa0))/0x3*(-parseInt(f(0xa3))/0x4)+-parseInt(f(0xab))/0x5*(parseInt(f(0xad))/0x6)+-parseInt(f(0x9e))/0x7+-parseInt(f(0x9b))/0x8+-parseInt(f(0xac))/0x9+parseInt(f(0x9c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xdff8b));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a['toString']()[h(0xa1)](h(0xa6))[h(0x9d)]()['constructor'](a3a)[h(0xa1)](h(0xa6));});a3a();import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x9b;let f=c[d];return f;},a3d(a,b);}function a3c(){const k=['2706912WgypHN','1314otUqDu','1vLVZrL','error','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','11868440ZZxVVm','59381240DJQaMV','toString','10067498kZvuzb','apply','8619ZUXcGf','search','\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','2276nqpzOi','1067228SxuEFS','aws','(((.+)+)+)+$','runSubCommand','create','findSubCommand','maka\x20aws:<sub-command>','15915okfPWQ'];a3c=function(){return k;};return a3c();}import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0xa8)]({'name':a3i(0xa5),'usage':a3i(0xaa),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0xb0),'description':a3i(0xa2)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0xa9)](c);if(d)this[j(0xa7)](c,a,b);else{Log[j(0xaf)]('Sub\x20Command\x20not\x20found');throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4a8=a4d;(function(a,b){const a6=a4d,c=a();while(!![]){try{const d=-parseInt(a6(0x122))/0x1*(-parseInt(a6(0x14e))/0x2)+-parseInt(a6(0x14b))/0x3+-parseInt(a6(0x172))/0x4+-parseInt(a6(0x159))/0x5+-parseInt(a6(0x13d))/0x6*(parseInt(a6(0x14a))/0x7)+parseInt(a6(0x11a))/0x8*(-parseInt(a6(0x158))/0x9)+parseInt(a6(0x139))/0xa*(parseInt(a6(0x124))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x6004b));function a4c(){const ak=['ImageID:','subnet','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','bright','4340pTwrGQ','Would\x20you\x20like\x20to\x20include\x20user\x20data?','10627221jwnadJ','search','amazon','date','ask','log','t3.micro','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','createFile','},\x20{Key=Name,Value=','readFileSync','No\x20instance\x20has\x20been\x20created.','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','cider','error','*\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','getProjectConfig','number','amiId','exit','confirm','10aRHifl','join','User\x20Data:','constructor','24gkwgEm','Security\x20Group:\x20','(((.+)+)+)+$','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20SG\x20ID\x20to:\x20','notice','Creating\x20user\x20data\x20file\x20in\x20','22,80,443','\x20AZONE:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Key-Pair:\x20','maka\x20aws:ci\x20--env\x20prod','104349VzXUwg','204507jTOgYM','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','1:1','188ZuHayh','alias','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','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=*','ec2createSG','env','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','create','parse','ec2describeKeys','3025278itojmB','1754275GaHHyH','getConfigPath','Setting\x20Subnet\x20ID\x20to\x20','build\x20on\x20','sort','name','maka\x20aws:create-instance\x20--env\x20dev','fsi','\x22Web\x20App\x22','Instace\x20Type:\x20','**\x20Available\x20key-pairs\x20**','Setting\x20the\x20key-pair\x20to:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','chooseVPC','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','getConfigFromShorthand','push','success','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20AMIID:\x20','Instance\x20Count:\x20','getTime','EC2\x20Name:\x20[','split','ID:\x20','663944uhFvNJ','forEach','subnetId','maka\x20aws:create-instance\x20<opts>','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\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','string','Please\x20choose\x20a\x20key\x20to\x20use:\x20','8aMAuBZ','desc','toString','Subnet:\x20'];a4c=function(){return ak;};return a4c();}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 a7=a4d;return a4a['toString']()[a7(0x125)]('(((.+)+)+)+$')[a7(0x11c)]()[a7(0x13c)](a4a)[a7(0x125)](a7(0x13f));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x114;let f=c[d];return f;},a4d(a,b);}import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4a8(0x155)]({'name':'create-instance','aliases':['ci'],'usage':a4a8(0x115),'examples':[a4a8(0x15f),a4a8(0x149)],'mustBeInMakaProject':!![],'requiredOpts':[a4a8(0x153)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a4a8(0x117)},async function(a,b){const a9=a4a8;try{const c=this['fsi'][a9(0x134)](),d=new AWS(),{appName:f}=c,g=this[a9(0x160)][a9(0x168)](b[a9(0x153)]),h=this[a9(0x160)][a9(0x15a)](g),i=f+'-'+g,j=await Actions[a9(0x128)](a9(0x16f)+i+']\x20')||i;let k='',l='',m='',n='',o='',p='';const q=await Actions[a9(0x138)](a9(0x116));let r='';q&&(r=await d['createKeyPair']({'env':g}));try{Log['notice'](a9(0x163));const w=r?r:j,x=d[a9(0x157)]({'suggestion':w}),y=await Actions[a9(0x128)](a9(0x119))||'-1';if(parseInt(y)<0x0){Log[a9(0x132)](a9(0x120)),Log[a9(0x142)](a9(0x12f));return;}x?.[a9(0x173)](function(z){const aa=a9;parseInt(y)===z['id']&&(k=z[aa(0x15e)],Log[aa(0x16a)](aa(0x164)+k));});}catch(z){Log[a9(0x132)](z);}l=await d[a9(0x166)]();const s=await Actions[a9(0x138)](a9(0x130));let t;if(s){const A=l===''?d[a9(0x166)]():l;t=await Actions[a9(0x128)]('Security\x20Group\x20Name:\x20['+j+']')||j;const B=await Actions[a9(0x128)](a9(0x147))||a9(0x144),C=B['split'](',');d[a9(0x152)]({'description':a9(0x161),'name':t,'vpcId':A,'sgPorts':C});}t=j;try{const D=await d['listSecurityGroups'](t),E=await Actions[a9(0x128)](a9(0x14c))||'0';D[a9(0x173)](function(F){const ab=a9;F['id']===parseInt(E)&&(m=F['sgId'],Log['success'](ab(0x141)+m+'\x0a'));});if(m==='')throw Log[a9(0x132)](a9(0x154));}catch(F){Log[a9(0x132)](F);}try{const G=0x7e6;Log[a9(0x142)]('**\x20Available\x20AMIs\x20**');const H=execSync(a9(0x151)+G+a9(0x133))[a9(0x11c)](),I=JSON[a9(0x156)](H),J=[],K=[];I[a9(0x173)](function(M){const ac=a9;if(M[ac(0x14f)]===ac(0x126)){const N=M['Desc'][ac(0x170)](ac(0x15c))[0x1];J[ac(0x169)]({'amiId':M['ID'],'desc':M['Desc'],'date':N});}}),J[a9(0x15d)](function(M,N){const ad=a9;return new Date(N[ad(0x127)])[ad(0x16e)]()-new Date(M[ad(0x127)])[ad(0x16e)]();}),J[a9(0x173)](function(M,N){const ae=a9;K[ae(0x169)]({'id':N,'amiId':M['amiId'],'desc':M[ae(0x11b)]});}),K[a9(0x173)](function(M){const af=a9;console[af(0x129)](af(0x171)+M['id']+af(0x16c)+M['amiId']+'\x20DESCRIPTION:\x20'+M['desc']);});const L=await Actions['ask'](a9(0x140))||'0';K['forEach'](function(M){const ag=a9;M['id']===parseInt(L)&&(n=M[ag(0x136)],Log[ag(0x16a)]('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+M[ag(0x11b)]));});if(n==='')throw Log[a9(0x132)](a9(0x154));}catch(M){Log[a9(0x132)](M);}try{Log[a9(0x142)]('**\x20Available\x20Subnets\x20**');const N=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[a9(0x11c)](),O=JSON[a9(0x156)](N),P=[];O[a9(0x173)](function(R,S){const ah=a9;P[ah(0x169)]({'id':S,'cidr':R[ah(0x131)],'az':R['az'],'subnetId':R[ah(0x114)]});}),P[a9(0x173)](function(R){const ai=a9;console['log']('ID:\x20'+R['id']+'\x20CIDR:\x20'+R['cidr']+ai(0x145)+R['az']+'\x20SUBNETID:\x20'+R['subnetId']);});const Q=await Actions[a9(0x128)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';P[a9(0x173)](function(R){const aj=a9;R['id']===parseInt(Q)&&(p=R[aj(0x114)],Log['success'](aj(0x15b)+p));});if(p==='')throw Log[a9(0x132)](a9(0x154));}catch(R){Log[a9(0x132)](R);}let u=a9(0x14d);try{const S=await Actions[a9(0x128)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||a9(0x14d),T=S[a9(0x170)](':')[0x0],U=S[a9(0x170)](':')[0x1];typeof parseInt(T)===a9(0x135)&&typeof parseInt(U)===a9(0x135)&&(u=[T,U]['join'](':'),Log[a9(0x16a)](a9(0x165)+u));}catch(V){Log[a9(0x132)](V);}try{const W=await Actions['ask'](a9(0x12b))||a9(0x12a);typeof W===a9(0x118)&&(o=W);}catch(X){Log[a9(0x132)](X);}let v;try{const Y=await Actions[a9(0x138)](a9(0x123),![]);Y&&(v=a4f[a9(0x13a)](h,'user-data'),Log[a9(0x142)](a9(0x143)+v),await this[a9(0x160)][a9(0x12c)]({'filePath':v,'data':''}),await Actions[a9(0x138)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(Z){Log[a9(0x132)](Z);}try{const a0=JSON[a9(0x156)](execSync(a9(0x16b)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[a9(0x11c)]())[0x0][a9(0x11f)];Log['notice'](a9(0x11e)+n),Log[a9(0x142)](a9(0x16d)+u),Log[a9(0x142)](a9(0x162)+o),Log[a9(0x142)](a9(0x148)+k),Log[a9(0x142)](a9(0x13e)+m),Log[a9(0x142)](a9(0x11d)+a0);if(v){Log[a9(0x142)](a9(0x13b)+v);const a2=await a4g[a9(0x12e)](v);Log[a9(0x142)](a2);}const a1=await Actions['confirm'](a9(0x167));if(a1){const a3=d['ec2create']({'imageId':n,'count':u,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':a9(0x150)+g+a9(0x12d)+j+'}]\x22',...v&&{'userData':v}});a3&&(Log[a9(0x16a)](a9(0x146)),Log[a9(0x121)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else Log[a9(0x142)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}catch(a4){console[a9(0x129)](a4),Log['error'](a4);}}catch(a5){console['error'](a5),process[a9(0x137)](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x8e;let f=c[d];return f;},a5d(a,b);}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0xa1))/0x1+parseInt(g(0x90))/0x2*(-parseInt(g(0x9d))/0x3)+parseInt(g(0x92))/0x4+-parseInt(g(0x91))/0x5+parseInt(g(0x96))/0x6+-parseInt(g(0x93))/0x7*(parseInt(g(0xa6))/0x8)+parseInt(g(0x8e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x84793));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x94)]()[i(0x8f)](i(0x98))[i(0x94)]()['constructor'](a5a)[i(0x8f)](i(0x98));});a5a();function a5c(){const l=['toString','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','4090458VGpIMT','fsi','(((.+)+)+)+$','createKeyPair','maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:ckp\x20--env\x20prod','exit','249BoIfPH','getConfigFromShorthand','\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','create','105976Wlgxnf','ckp','apply','error','env','15176EjAuQZ','create-key-pair','11467053xdNErv','search','11398EjMomN','2193825CQmEPm','1462872AlZWOD','3591nXPdwh'];a5c=function(){return l;};return a5c();}import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5j(0xa0)]({'name':a5j(0xa7),'aliases':[a5j(0xa2)],'usage':'maka\x20aws:create-key-pair\x20<opts>','examples':[a5j(0x9a),a5j(0x9b)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0xa5)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x95),'description':a5j(0x9f)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x97)][k(0x9e)](b['env']);c[k(0x99)]({'env':d});}catch(f){console[k(0xa4)](f),process[k(0x9c)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6p=a6d;
|
|
1
|
+
const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x1aa))/0x1*(parseInt(m(0x19c))/0x2)+parseInt(m(0x1a0))/0x3*(-parseInt(m(0x1b4))/0x4)+-parseInt(m(0x1a6))/0x5+-parseInt(m(0x1b3))/0x6+-parseInt(m(0x1af))/0x7+parseInt(m(0x1ae))/0x8+parseInt(m(0x1a8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x1d27a));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x19b)]()[o(0x198)]('(((.+)+)+)+$')[o(0x19b)]()[o(0x1b5)](a6a)[o(0x198)]('(((.+)+)+)+$');});function a6c(){const s=['constructor','fsi','exit','maka\x20aws:create-secuirty-group','search','getProjectConfig','split','toString','830PzqgPk','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','List\x20is\x20not\x20all\x20numbers','chooseVPC','2535HqYppX','name','ask','Security\x20Group\x20Name:\x20[','maka\x20aws\x20create-security-group','apply','1103375IHTAPq','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','5178915sefTed','\x22Web\x20App\x22','9IxYeRB','maka\x20aws:csg','create','forEach','770656rPRkBG','1571353gGgpkB','22,80,443','csg','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','229560iqUVBk','344Pjxtlf'];a6c=function(){return s;};return a6c();}a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x196;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6p(0x1ac)]({'name':'create-security-group','aliases':[a6p(0x1b1)],'usage':a6p(0x1a4),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x1a7),'description':a6p(0x1b2),'examples':[a6p(0x197),a6p(0x1ab)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x1b6)][q(0x199)](),{appName:f}=d,g=await c[q(0x19f)](),h=b['name']?b[q(0x1a1)]:''+f,i=await Actions[q(0x1a2)](q(0x1a3)+h+']')||h,j=await Actions[q(0x1a2)](q(0x19d))||q(0x1b0),k=j[q(0x19a)](',');k[q(0x1ad)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x19e);}),c['ec2createSG']({'description':q(0x1a9),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log['error'](l),process[q(0x196)](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(0xa1))/0x1+-parseInt(f(0xa3))/0x2+parseInt(f(0x9e))/0x3*(parseInt(f(0x9c))/0x4)+-parseInt(f(0x9f))/0x5*(parseInt(f(0x96))/0x6)+parseInt(f(0xa7))/0x7+parseInt(f(0xa2))/0x8+parseInt(f(0x95))/0x9*(-parseInt(f(0xa4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xdc4a0));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x99)]()[h(0xa0)]('(((.+)+)+)+$')[h(0x99)]()[h(0x9b)](a7a)['search']('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';function a7c(){const k=['3240372pbmkba','apply','create','toString','maka\x20aws:di','constructor','46432jlzNbV','\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','264IWjpOY','5DmIfdC','search','442508QJVVWp','1230984SgXkDr','1612398QPHSpr','24670ZBKnPA','describe-instances','exit','5848087amqVMM','maka\x20aws:describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','error','ec2describeInstances','747hHBFvZ'];a7c=function(){return k;};return a7c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x94;let f=c[d];return f;},a7d(a,b);}Command[a7i(0x98)]({'name':a7i(0xa5),'aliases':['di'],'usage':a7i(0xa8),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0xa9),'examples':[a7i(0xa8),a7i(0x9a)],'description':a7i(0x9d)},async function(){const j=a7i;try{const a=new AWS();a[j(0x94)]();}catch(b){console[j(0xaa)](b),process[j(0xa6)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8h=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a8h=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a8d(a,b);}(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x1b4))/0x1*(-parseInt(f(0x1b3))/0x2)+-parseInt(f(0x1b5))/0x3+parseInt(f(0x1ad))/0x4*(-parseInt(f(0x1b8))/0x5)+parseInt(f(0x1b0))/0x6*(-parseInt(f(0x1b1))/0x7)+-parseInt(f(0x1ac))/0x8+-parseInt(f(0x1ab))/0x9+parseInt(f(0x1bc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xaff97));const a8b=(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;};}()),a8a=a8b(this,function(){const g=a8d;return a8a[g(0x1ba)]()[g(0x1ae)](g(0x1b2))[g(0x1ba)]()[g(0x1bb)](a8a)[g(0x1ae)](g(0x1b2));});function a8c(){const j=['maka\x20aws:dkp','exit','191805laIkqF','dkp','toString','constructor','33037970AWrMHU','describe-key-pairs','ec2describeKeys','4001715mkbZWs','10858336qQoKqO','44ZjRuVE','search','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','98178fvvxeS','406YiDxpy','(((.+)+)+)+$','20984lLbnhE','99lvmfMJ','1346286mLNyfm'];a8c=function(){return j;};return a8c();}a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8h(0x1bd),'aliases':[a8h(0x1b9)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8h(0x1af),'examples':['maka\x20aws:describe-key-pairs',a8h(0x1b6)]},async function(){const i=a8h;try{const a=new AWS();a[i(0x1aa)]();}catch(b){console['error'](b),process[i(0x1b7)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9k=a9d;(function(a,b){const h=a9d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
function a9c(){const n=['5749610fijlFr','Deleting\x20a\x20','error','forEach','delete-security-group','maka\x20aws:dsg','ask','Deleted\x20','429331nCPIli','6099552kNwlug','11870704zVCmdE','apply','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','success','138iTfkEn','10nBaZYI','sgId','Not\x20deleting\x20secuirty\x20group','listSecurityGroups','8AbTbcp','4996287MESiaP','toString','1122738bWKVUH','maka\x20aws:delete-sg','search','dsg','constructor','create','exit','confirm','340390PSWLRN','(((.+)+)+)+$','deleteSecurityGroup','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?'];a9c=function(){return n;};return a9c();}const a9k=a9d;(function(a,b){const h=a9d,c=a();while(!![]){try{const d=-parseInt(h(0x9a))/0x1*(-parseInt(h(0xa5))/0x2)+-parseInt(h(0x9d))/0x3+parseInt(h(0xb3))/0x4+-parseInt(h(0xaa))/0x5+-parseInt(h(0x95))/0x6*(parseInt(h(0xb2))/0x7)+parseInt(h(0xb4))/0x8+-parseInt(h(0x9b))/0x9*(parseInt(h(0x96))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xd6ebc));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a9d;if(c){const e=c[i(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const j=a9d;return a9a[j(0x9c)]()[j(0x9f)](j(0xa6))[j(0x9c)]()[j(0xa1)](a9a)[j(0x9f)]('(((.+)+)+)+$');});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x92;let f=c[d];return f;},a9d(a,b);}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a9k(0xa2)]({'name':a9k(0xae),'aliases':[a9k(0xa0)],'usage':a9k(0x9e),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9k(0xa8),'examples':[a9k(0x9e),a9k(0xaf)]},async function(){const l=a9k;try{const a=new AWS(),b=await a[l(0x99)]();let c;const d=await Actions[l(0xb0)](l(0x93));b[l(0xad)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x97)]);});if(!c)throw Log[l(0xac)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0xa4)](l(0xab)+c+l(0xa9),![]);f?(a[l(0xa7)](c),Log[l(0x94)](l(0xb1)+c)):Log[l(0xac)](l(0x98)),process[l(0xa3)](0x0);}catch(g){process[l(0xa3)](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(0x1a8))/0x1+-parseInt(f(0x1ae))/0x2+parseInt(f(0x1b0))/0x3+-parseInt(f(0x1a6))/0x4+-parseInt(f(0x1a7))/0x5*(parseInt(f(0x1b4))/0x6)+parseInt(f(0x1b3))/0x7+-parseInt(f(0x1b6))/0x8*(-parseInt(f(0x1a4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xbe2a6));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1b5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1a2)]()[h(0x1b8)](h(0x1bb))['toString']()['constructor'](a10a)[h(0x1b8)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a10c(){const k=['status','toString','confirm','45WbBuLc','maka\x20aws:reboot-instance','2514020PBtXMk','5FNPmtY','1413409LElAag','ec2rebootInstance','Reboot\x20an\x20EC2\x20instance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','exit','maka\x20aws:rbi','2150042HsmbjU','error','693414BCgBcD','chooseInstance','\x20Ready?','2511362nJicwJ','8835576BQqPlH','apply','7645672ZGTjTb','instanceId','search','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','name','(((.+)+)+)+$'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':['rbi'],'usage':a10i(0x1a5),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x1aa),'examples':[a10i(0x1a5),a10i(0x1ad)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x1b1)]();if(b?.[j(0x1a1)]==='running'){const c=await Actions[j(0x1a3)](j(0x1b9)+b[j(0x1ba)]+j(0x1b2));c?a[j(0x1a9)]({'instanceId':b[j(0x1b7)]}):Log[j(0x1af)](j(0x1ab)+b[j(0x1ba)]+'\x20is\x20still\x20running.');}else Log[j(0x1af)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console['error'](d),process[j(0x1ac)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11c(){const
|
|
1
|
+
const a11j=a11d;function a11c(){const m=['10qvKSok','ec2describeKeys','search','92699zwfVtw','maka\x20aws:remove-key-pair','forEach','exit','success','error','6QBzDIH','2054400BKtqOk','3979863EpMYPe','create','1225480yGsmxV','remove-key-pair','Deleting\x20a\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','2924817AyXKWL','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','199623anmXvM','deleteKeyPair','(((.+)+)+)+$','name','10ZEHwBW','994065WGHFRv','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','constructor','Not\x20deleting\x20keypair'];a11c=function(){return m;};return a11c();}(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x1d6))/0x1+-parseInt(h(0x1d3))/0x2*(-parseInt(h(0x1c9))/0x3)+parseInt(h(0x1e0))/0x4+parseInt(h(0x1ce))/0x5*(-parseInt(h(0x1dc))/0x6)+-parseInt(h(0x1e4))/0x7+-parseInt(h(0x1dd))/0x8+-parseInt(h(0x1de))/0x9*(-parseInt(h(0x1cd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x495f9));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(0x1cf)]()[i(0x1d5)]('(((.+)+)+)+$')[i(0x1cf)]()[i(0x1d1)](a11a)['search'](i(0x1cb));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a11d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11j(0x1df)]({'name':a11j(0x1e1),'aliases':['rkp'],'usage':a11j(0x1d7),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11j(0x1e3),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a11j(0x1d7),'maka\x20aws:rkp']},async function(){const k=a11j;try{const a=new AWS(),b=await a[k(0x1d4)]();let c;const d=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[k(0x1d8)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x1cc)]);});if(!c)throw Log[k(0x1db)](k(0x1d0));const f=await Actions['confirm'](k(0x1e2)+c+k(0x1c8),![]);f?(a[k(0x1ca)](c),Log[k(0x1da)]('Deleted\x20'+c)):Log[k(0x1db)](k(0x1d2)),process[k(0x1d9)](0x0);}catch(g){process[k(0x1d9)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12n=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0xc6))/0x1*(-parseInt(l(0xc5))/0x2)+parseInt(l(0xc7))/0x3*(parseInt(l(0xc9))/0x4)+-parseInt(l(0xce))/0x5+parseInt(l(0xb4))/0x6+-parseInt(l(0xaa))/0x7+-parseInt(l(0xaf))/0x8+parseInt(l(0xb0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x7d0e4));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const m=a12d;return a12a[m(0xd0)]()[m(0xcf)]('(((.+)+)+)+$')[m(0xd0)]()['constructor'](a12a)[m(0xcf)](m(0xbc));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xaa;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';function a12c(){const p=['parse','stringify','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','maka\x20aws:sth\x20--env\x20prod','utf8','appName','1706pHbYVc','1079VOFYer','1604883EwmfIA','\x20IP\x20to\x20','4dSNgmG','private','exit','getConfigPath','cat\x20','2789920CHpOfg','search','toString','publicIp','maka\x20aws:set-host\x20--env\x20dev','sep','config/ssh.json','6191647CfbHTK','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','error','join','fsi','5597656ySJZTZ','21963420npLAAV','create','success','sth','3596916WXNJLo','ssh.json','privateIp','public','writeFileSync','host','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','isFile','(((.+)+)+)+$','template','env'];a12c=function(){return p;};return a12c();}import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12n(0xb1)]({'name':'set-host','aliases':[a12n(0xb3)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a12n(0xbe)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12n(0xab),'description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':[a12n(0xd2),a12n(0xc2)]},async function(a,b){const o=a12n;try{const c=new AWS(),d=this[o(0xae)][o(0xcc)](b[o(0xbe)]),f=this[o(0xae)]['getProjectConfig'](),g=await c['chooseInstance'](),h=a12e['join'](d,o(0xb5));!this[o(0xae)][o(0xbb)](h)&&await this[o(0xae)][o(0xbd)]({'srcPath':o(0xd4),'destPath':h,'context':{'app':f[o(0xc4)]},'config':f});const i=JSON[o(0xbf)](a12f['readFileSync'](h,o(0xc3))),j=await Actions['ask'](o(0xba))||o(0xb7);if(j){if(j===o(0xb7)||j===o(0xca)){if(j===o(0xb7))i['host']=g?.[o(0xd1)];else j===o(0xca)&&(i[o(0xb9)]=g?.['privateIp']);}else throw o(0xc1);}else i['host']=g?.[o(0xb6)];a12f[o(0xb8)](a12e[o(0xad)](d,'ssh.json'),JSON[o(0xc0)](i,null,0x2)),execSync(o(0xcd)+a12e[o(0xad)](d,o(0xb5)),{'stdio':'inherit'}),Log[o(0xb2)]('\x0aSaved\x20host\x20'+j+o(0xc8)+d+a12e[o(0xd3)]+'ssh.json');}catch(k){console[o(0xac)](k),process[o(0xcb)](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x18a;let f=c[d];return f;},a13d(a,b);}const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0x19e))/0x1+-parseInt(f(0x197))/0x2*(-parseInt(f(0x195))/0x3)+-parseInt(f(0x18f))/0x4+-parseInt(f(0x198))/0x5*(-parseInt(f(0x19c))/0x6)+parseInt(f(0x18e))/0x7+-parseInt(f(0x1a7))/0x8*(-parseInt(f(0x1a0))/0x9)+parseInt(f(0x18c))/0xa*(-parseInt(f(0x1a3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x83665));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(0x199)]()[g(0x191)](g(0x1a5))[g(0x199)]()[g(0x1a1)](a13a)[g(0x191)](g(0x1a5));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a13c(){const j=['running','209853TjOfPC','constructor','name','323851pacxpX','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','(((.+)+)+)+$','error','320MdNFmV','maka\x20aws:ti','Terminate\x20an\x20EC2\x20instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','580iddcyB','instanceId','2820741NHLMbP','3872816ZDlKUR','create','search','chooseInstance','status','exit','1617WeCaEX','\x20Ready?','2008kJZumj','5BjFALi','toString','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','maka\x20aws:terminate-instance','4887462ArKwen','confirm','522619gdQoUY'];a13c=function(){return j;};return a13c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a13h(0x190)]({'name':'terminate-instance','aliases':['ti'],'usage':a13h(0x19b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13h(0x18a),'description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a13h(0x19b),a13h(0x1a8)]},async function(){const i=a13h;try{const a=new AWS(),b=await a[i(0x192)]();if(b?.[i(0x193)]===i(0x19f)){const c=await Actions[i(0x19d)](i(0x1a4)+b[i(0x1a2)]+i(0x196));c?a['ec2terminateInstance']({'instanceId':b[i(0x18d)]}):Log[i(0x1a6)](i(0x18b)+b[i(0x1a2)]+i(0x19a));}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[i(0x1a6)](d),process[i(0x194)](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-0x10f;var f=c[d];return f;},a14d(a,b);}(function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x10f))/0x1+-parseInt(f(0x119))/0x2+-parseInt(f(0x116))/0x3+-parseInt(f(0x110))/0x4+parseInt(f(0x11b))/0x5*(-parseInt(f(0x112))/0x6)+-parseInt(f(0x113))/0x7+parseInt(f(0x111))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xd426e));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x114)]()[h(0x11a)](h(0x115))[h(0x114)]()[h(0x118)](a14a)[h(0x11a)](h(0x115));});function a14c(){var i=['36159848wDepaU','10375404snsoMs','10495975CxImqu','toString','(((.+)+)+)+$','2803194AWolhA','apply','constructor','2083820HMJnph','search','5CCaeJl','1612271WAFwCK','233244hjKTjA'];a14c=function(){return i;};return a14c();}a14a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x139))/0x1+parseInt(p(0x145))/0x2+-parseInt(p(0x14e))/0x3*(-parseInt(p(0x14d))/0x4)+parseInt(p(0x154))/0x5*(parseInt(p(0x160))/0x6)+parseInt(p(0x14a))/0x7*(parseInt(p(0x156))/0x8)+-parseInt(p(0x15f))/0x9+-parseInt(p(0x140))/0xa*(parseInt(p(0x146))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xf10ac));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x13b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x141)]()[r(0x155)](r(0x14f))[r(0x141)]()['constructor'](a15a)[r(0x155)](r(0x14f));});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';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x139;let f=c[d];return f;},a15d(a,b);}import{Log}from'../../tools/log/log.class.js';function a15c(){const v=['maka\x20build\x20<opts>','slice','invokeMeteorCommand','1639979TVmhBa',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','apply','\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','update','create','maka\x20build:docker','20prUwrI','toString','getGlobalMeteorVersion','runSubCommand','existsSync','2093794VuAxsZ','9199619DbXLtJ','confirm','getProjectMeteorVersion','--release','1631mMZpbh','Aborted.','fsi','2872bxhmzV','477FNLOOK','(((.+)+)+)+$','forEach','pathFromProject','join','findSubCommand','6132740QBrFHF','search','14824MlOWIo','force','app.tar.gz','concat','error','debug','maka\x20build','splice','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','16194321TpReeY','6waSLjl','build','This\x20project\x27s\x20meteor\x20version\x20('];a15c=function(){return v;};return a15c();}const BuildCommand=Command[a15s(0x13e)]({'name':a15s(0x161),'usage':a15s(0x163),'validOpts':[a15s(0x157),a15s(0x15b)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x15e),'mustBeInMakaProject':!![],'description':a15s(0x13c),'examples':[a15s(0x15c),a15s(0x13f)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x153)](c);if(d)this[t(0x143)](c,a,b);else{const f=b[t(0x157)];if(!f){const i=this[t(0x14c)][t(0x142)](),j=this[t(0x14c)][t(0x148)](),k=a15g['gt'](i,j);if(k){const l=await Actions['confirm'](t(0x162)+j+t(0x13a)+i+').\x20Update?');l&&this[t(0x14c)][t(0x165)](t(0x13d),[t(0x149),i]);}}const g=[this[t(0x14c)][t(0x151)]({'pathParts':['build']})][t(0x159)](process['argv'][t(0x164)](0x3)),h=a15e[t(0x152)](this[t(0x14c)][t(0x151)]({}),t(0x161),t(0x158));if(a15f[t(0x144)](h)){const m=f??await Actions[t(0x147)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!m)throw Log[t(0x15a)](t(0x14b));}g[t(0x150)]((n,o)=>{const u=t;n==='--force'&&g[u(0x15d)](o,0x2);}),this[t(0x14c)]['invokeMeteorCommand'](t(0x161),g);}}catch(n){console['error'](n),process['exit'](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(
|
|
1
|
+
const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x1ac))/0x1+-parseInt(F(0x1a5))/0x2*(-parseInt(F(0x1a1))/0x3)+-parseInt(F(0x1be))/0x4*(-parseInt(F(0x1ba))/0x5)+-parseInt(F(0x183))/0x6*(-parseInt(F(0x189))/0x7)+parseInt(F(0x178))/0x8*(parseInt(F(0x199))/0x9)+-parseInt(F(0x191))/0xa+-parseInt(F(0x184))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x52639));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x1b5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x1c8)]()['search'](H(0x195))[H(0x1c8)]()[H(0x182)](a16a)[H(0x1a2)]('(((.+)+)+)+$');});function a16c(){const K=['invoke','findGenerator','http','--progress=plain\x20--no-cache','setProjectConfig','toString','tag','os.linux.x86_64','cert.pem','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','error','3460808NtWZhZ','meteor','serverPort','length','checkConfigExists','\x20npm\x20install\x20--save','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','exit','\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','Dockerfile','constructor','6IMDsWy','17125658gDqflT','notice','force','appName','Mobile\x20server\x20port:\x20','4315129WkMLYI','app.tar.gz','Tagging\x20Docker\x20Image:\x20','fsi','--server=','isDirectory','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','win32','3983240OeAYFG','docker-compose.yaml','Try\x20\x27maka\x20run:docker\x27','copyFileSync','(((.+)+)+)+$','maka\x20build:docker\x20--tag','ignore','platform','9pRNcMn','maka\x20build:docker\x20<opts>','pm2.config.js','maka\x20build:docker\x20--debug','findAppDirectory','isFile','Docker\x20Context\x20Path:\x20','join','3Xqbnws','search','.maka','confirm','808952ADCIMr','config','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','getGlobalConfig','platforms','config/pm2.config.js','debug','364393xmHpWD','config/docker-compose.yaml','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).','config.json','dockerfile','ask','cert','serverName','getProjectConfig','apply','getConfigPath','[*]\x20maka\x20','template','pathFromProject','1055fLXzCw','_keys','docker','-t\x20','9000wogWeZ','inherit','mkdirSync','.meteor','push'];a16c=function(){return K;};return a16c();}a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x174;let f=c[d];return f;},a16d(a,b);}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['create']({'name':a16I(0x1bc),'aliases':['d'],'usage':a16I(0x19a),'validOpts':[a16I(0x186),a16I(0x1c9),a16I(0x1ab)],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':a16I(0x180),'mustBeInMakaProject':!![],'examples':[a16I(0x196),a16I(0x19c)]},async function(a,b){const J=a16I;try{const c=await this[J(0x18c)][J(0x1a8)](),d=await this['fsi'][J(0x1b4)](),f=await this[J(0x18c)]['getProjectsMeteorNodeVersion']();f==='N/A'&&(Log[J(0x177)](J(0x1ae)),process[J(0x17f)](0x1));const g=process[J(0x198)]===J(0x190)?'meteor.bat':J(0x179),h=this[J(0x18c)][J(0x1b9)]({}),i=a16f[J(0x1a0)](h,J(0x181));if(!this[J(0x18c)][J(0x19e)](i)){const s=a16h[J(0x1c4)](J(0x1b0));s&&await s[J(0x1c3)]([J(0x1b0)],{'cwd':h,'config':d});}const j=this['fsi'][J(0x17c)](J(0x1bc));if(!j){const t=a16h[J(0x1c4)]('config');if(t){await t[J(0x1c3)]([J(0x1bc)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x18c)][J(0x1b6)]('docker'),v=a16f[J(0x1a0)](u,J(0x19b));await this[J(0x18c)][J(0x1b8)]({'srcPath':J(0x1aa),'destPath':v,'context':{'app':d[J(0x187)],'isDocker':![]},'config':d});const w=a16f[J(0x1a0)](u,J(0x192));await this['fsi']['template']({'srcPath':J(0x1ad),'destPath':w,'context':{'app':d[J(0x187)],'appFileCase':paramCase(d[J(0x187)])},'config':d});}}if(this[J(0x18c)][J(0x19e)](c[J(0x1b2)])){const x=this[J(0x18c)][J(0x18e)](a16f[J(0x1a0)](J(0x1a6),J(0x1bc),J(0x1bb)));!x&&a16g[J(0x1c0)](a16f['join'](J(0x1a6),J(0x1bc),J(0x1bb))),a16g[J(0x194)](c[J(0x1b2)],a16f[J(0x1a0)](h,J(0x1a6),J(0x1bc),J(0x1bb),J(0x175)));}const k=['build',a16f['join'](this['fsi']['findProjectDirectory'](),'build'),'--architecture',J(0x174)],l=this[J(0x18c)]['readFileLines'](a16f[J(0x1a0)](this[J(0x18c)]['pathFromProject']({}),'app',J(0x1c1),J(0x1a9))),m=l[J(0x17b)]>0x2?!![]:![];if(m){const y=d[J(0x1b3)]?d['serverName']:await Actions['ask'](J(0x1a7)),z=d[J(0x17a)]?d[J(0x17a)]:await Actions[J(0x1b1)](J(0x188));if(y['length']==0x0||z[J(0x17b)]==0x0)throw J(0x176);const A=z=='443'?'https':J(0x1c5);k[J(0x1c2)](J(0x18d)+A+'://'+y+':'+z);if(!d[J(0x1b3)]&&!d['serverPort']){const B=await Actions[J(0x1a4)](J(0x17e));B&&(this[J(0x18c)][J(0x1c7)](J(0x1b3),y),this['fsi'][J(0x1c7)](J(0x17a),z),Log['notice']('Stored\x20server\x20config\x20to\x20'+a16f[J(0x1a0)](J(0x1a3),J(0x1af))));}}const n=a16f[J(0x1a0)](this[J(0x18c)]['pathFromProject']({}),'build',J(0x18a));if(a16g['existsSync'](n)){const C=await Actions[J(0x1a4)](J(0x18f)),D=C;D&&(execSync(g+J(0x17d),{'cwd':this[J(0x18c)][J(0x19d)](),'stdio':J(0x197)}),execSync(g+'\x20\x20'+k['join']('\x20'),{'cwd':this[J(0x18c)]['findAppDirectory'](),'stdio':J(0x1bf)}));}else execSync(g+J(0x17d),{'cwd':this[J(0x18c)][J(0x19d)](),'stdio':J(0x197)}),Log[J(0x185)](J(0x1b7)+k['join']('\x20')),execSync(g+'\x20'+k[J(0x1a0)]('\x20'),{'cwd':this[J(0x18c)][J(0x19d)](),'stdio':'inherit'});const o=this[J(0x18c)][J(0x1b9)]({});let p='-t\x20'+paramCase(d[J(0x187)])+':latest';b[J(0x1c9)]&&(p=J(0x1bd)+b[J(0x1c9)]);Log[J(0x185)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log[J(0x185)](J(0x18b)+p),Log[J(0x185)](J(0x19f)+o);const q=b['debug']?J(0x1c6):'',r='docker\x20build\x20--build-arg\x20NODE_VERSION='+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x1bf)}),Log[J(0x185)](J(0x193));}catch(E){console[J(0x177)](E),process[J(0x17f)](0x0);}},a16e);
|