@maka/maka-cli 4.4.2 → 4.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +2 -2
- 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 +2 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"
|
|
3
|
+
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
+
"version": "4.4.4",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
7
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -90,7 +91,6 @@
|
|
|
90
91
|
"mkdirp": "^3.0.1",
|
|
91
92
|
"mocha": "^10.2.0",
|
|
92
93
|
"pkg": "^5.8.1",
|
|
93
|
-
"typescript": "^5.0.4",
|
|
94
94
|
"wait-on": "^7.0.1"
|
|
95
95
|
},
|
|
96
96
|
"keywords": [
|
|
@@ -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(0x23e))/0x1+parseInt(p(0x20f))/0x2+parseInt(p(0x23f))/0x3+-parseInt(p(0x230))/0x4*(parseInt(p(0x212))/0x5)+parseInt(p(0x1f4))/0x6+-parseInt(p(0x1f6))/0x7*(-parseInt(p(0x237))/0x8)+-parseInt(p(0x204))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x90b78));function a0c(){const E=['singleLicense','assign','maxOptsLength','validateMeteorInstall','includes','tableList','find','maxArgLength','shortDesc','810794QmyYWw','Description','findCommand','849095pCKZVG','generate','Name','push','proFlags','apply','error','number','play','To\x20use\x20this\x20command,\x20\x22','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Command\x20requires\x20a\x20handler\x20function','invoke','help','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Too\x20many\x20arguments','split','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','toString','name','options','minOptsLength','length','bind','Command.create\x20requires\x20some\x20options!','runSubCommand','Command\x20requires\x20a\x20name','forEach','Too\x20many\x20options','domainLicense','16uKUazb','usage','join','mustHaveMeteorInstalled','exit','Command\x20not\x20found','Sub-Commands:','2473344CSaPYS','minArgLength','run','findSubCommand','function','validateMakaSubscription','keys','583572rkgFXm','1145460QgknaC','parent','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','addCommand','proCommands','search','filter','2208030VpbeSV','notice','14iyYwqG','mustBeInMakaProject','_handler','To\x20use\x20these\x20pro\x20flags,\x20\x22','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_commands','Command.create\x20requires\x20a\x20handler\x20function!','roles','header','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','create','getPro','(((.+)+)+)+$','9765846uPPFQv','disableAuthCheck'];a0c=function(){return E;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x217)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x224)]()[r(0x244)](r(0x203))['toString']()['constructor'](a0a)[r(0x244)](r(0x203));});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a0d(a,b);}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'];[a0s(0x1fc)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1fa));if(!a[t(0x225)])throw new Error(t(0x22c));if(typeof b!==t(0x23b))throw new Error(t(0x21d));this[t(0x226)]=Object['assign']({},a),this[t(0x225)]=this[t(0x226)][t(0x225)],this[t(0x1fc)]=[],this[t(0x1f8)]=b[t(0x229)](this);}static[a0s(0x201)](a,b,c){const u=a0s;if(!a)throw new Error(u(0x22a));if(typeof b!==u(0x23b))throw new Error(u(0x1fd));const d=new Command(a,b);return c=c||a0f,Object[u(0x207)](d,{'parent':c?.['options']?.[u(0x225)]}),c[u(0x242)](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[v(0x1fc)][v(0x215)](a);}async[a0s(0x23c)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x225)]||a[0x0],e=c?.[w(0x240)]||'',f=c?.[w(0x226)];if(f[w(0x205)])return;const g=a[0x0],h=Object['keys'](b),i=await this['fsi']['getPro']();!i&&(Log['error'](w(0x21c)),process[w(0x234)](0x1));const j=i?.['proCommands']['includes'](d)||i?.[w(0x243)][w(0x20a)](e),k=i?.[w(0x1fe)]['includes'](w(0x206))||i?.[w(0x1fe)][w(0x20a)](w(0x22f)),l=!k;if(j&&l)throw w(0x21b)+a[0x0]+w(0x220);if(h[w(0x228)]>0x0){const m=i?.[w(0x216)][w(0x245)](n=>h[w(0x20a)](n));if(m&&m[w(0x228)]>0x0&&l)throw w(0x1f9)+m?.[w(0x232)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g==='deploy'){const n=await this['fsi'][w(0x202)](),o=n?.['proCommands'][w(0x20a)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x23c)](a,b);}catch(c){Log[x(0x218)](c),process[x(0x234)](0x0);}await this[x(0x21e)](a,b);}catch(d){process[x(0x234)](0x1);}}async[a0s(0x21e)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![]}=this[y(0x226)];try{if(this['options'][y(0x225)]!==y(0x213)){if(!isRoot){const d=(a[0x0]===_prevCmd||a['length']===0x0)&&this[y(0x1fc)]['length']>=0x0;if(d&&b['help']){if(this[y(0x1fc)][y(0x228)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x21f)]){if(this[y(0x226)][y(0x1f7)]){const f=this['validateMakaProject']();if(!f)throw new MustBeInProjectError();}if(this[y(0x226)][y(0x233)]){const g=this[y(0x209)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[y(0x226)][y(0x238)]==='number'){if(a[y(0x228)]<this['options'][y(0x238)]){Log[y(0x218)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[y(0x226)]['maxArgLength']===y(0x219)){if(a[y(0x228)]>=this['options'][y(0x20d)]){Log[y(0x218)](y(0x221));throw new UsageError();}}if(typeof this[y(0x226)][y(0x227)]===y(0x219)){if(Object[y(0x23d)](b)[y(0x228)]<this[y(0x226)]['minOptsLength']){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[y(0x226)][y(0x208)]===y(0x219)){if(Object[y(0x23d)](b)[y(0x228)]>=this['options'][y(0x208)]){Log[y(0x218)](y(0x22e));throw new UsageError();}}}}this['validateParams'](a,b,this['options']),_prevCmd=a[0x0];}await this[y(0x1f8)]['call'](this,a,b);}catch(h){Log[y(0x231)](description,examples,usage,c);if(h instanceof UsageErrorWithSubs)Log[y(0x1f5)](y(0x236)),this[y(0x20b)](this[y(0x1fc)]),Log[y(0x1ff)](y(0x200));else{if(h instanceof MustBeInProjectError)Log[y(0x218)](y(0x241));else{if(h instanceof NoMeteorFoundError)Log['error'](y(0x223)),Log[y(0x1f5)](y(0x1fb));else{if(h instanceof NoMeteorAppFoundError)Log[y(0x218)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw h;}}}process[y(0x234)](0x1);}}['tableList'](a){const z=a0s,b=new a0e({});b[z(0x215)]([z(0x214),'Alias',z(0x210)]),a['sort']()[z(0x22d)](c=>{const A=z;c['name']!=='murder'&&c['name']!==A(0x21a)&&b[A(0x215)]([c[A(0x225)],c['aliases'](),c[A(0x20e)]()]);}),Log['bright'](b[z(0x224)]());}['findCommand'](a){const B=a0s;return this['_commands'][B(0x20c)](b=>b['match'](a));}[a0s(0x23a)](a){const C=a0s,b=a?.[C(0x222)](':');if(b)return a=b[0x0],this[C(0x211)](a);else return;}async[a0s(0x22b)](a,b,c){const D=a0s;try{const d=a[D(0x222)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this[D(0x211)](a);if(g)await g[D(0x239)](b,c);else throw D(0x235);}catch(h){throw Log['error'](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(0x14e))/0x1*(parseInt(f(0x157))/0x2)+parseInt(f(0x152))/0x3+-parseInt(f(0x14c))/0x4*(-parseInt(f(0x150))/0x5)+-parseInt(f(0x14f))/0x6*(-parseInt(f(0x153))/0x7)+parseInt(f(0x149))/0x8+parseInt(f(0x154))/0x9+-parseInt(f(0x151))/0xa*(parseInt(f(0x156))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xcaaae));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0x14a)](h(0x14d))[h(0x158)]()[h(0x155)](a1a)['search']('(((.+)+)+)+$');});function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x149;var f=c[d];return f;},a1d(a,b);}a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';function a1c(){var i=['6530vGWLkk','220210KQtINz','2562000GtNGFS','7sijLYA','7590708JqSJMf','constructor','1441jfLZga','4272gyQkzi','toString','892896njMnJA','search','apply','2004BfHGEU','(((.+)+)+)+$','309vNZCYi','3549138pEDBpD'];a1c=function(){return i;};return a1c();}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
|
|
1
|
+
function a2c(){var i=['5033090dmvGYE','2068500Vgsllk','114egtcBU','search','2280519cdvVsE','toString','1490587HOdKlb','(((.+)+)+)+$','4204BjnPWR','48063xvuMDB','1187094ZkDPbz','apply','8UzxPAm','76hdvGJd'];a2c=function(){return i;};return a2c();}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=-parseInt(f(0x104))/0x1*(parseInt(f(0x10c))/0x2)+parseInt(f(0x105))/0x3*(-parseInt(f(0x109))/0x4)+-parseInt(f(0x10b))/0x5+parseInt(f(0x106))/0x6+parseInt(f(0x110))/0x7*(parseInt(f(0x108))/0x8)+parseInt(f(0x10e))/0x9+parseInt(f(0x10a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x33363));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0x10f)]()[h(0x10d)](h(0x111))['toString']()['constructor'](a2a)[h(0x10d)]('(((.+)+)+)+$');});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x104;var f=c[d];return f;},a2d(a,b);}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';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
|
-
|
|
1
|
+
function a3c(){const k=['maka\x20aws:<sub-command>','\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','4656tUlYRm','(((.+)+)+)+$','findSubCommand','1700404GXPYbH','toString','constructor','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','16830LnTTry','15032xPqbxv','3497094UPquxN','112932XuNLcM','Sub\x20Command\x20not\x20found','32iSUwmo','aws','7UndXDu','1695090CAfBdT','31128CkVeOW','5bFixMR','apply','search','711nCgjYZ','error','runSubCommand'];a3c=function(){return k;};return a3c();}const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0x191))/0x1*(parseInt(f(0x195))/0x2)+parseInt(f(0x18f))/0x3+-parseInt(f(0x1a1))/0x4*(-parseInt(f(0x196))/0x5)+-parseInt(f(0x18e))/0x6*(parseInt(f(0x193))/0x7)+parseInt(f(0x18d))/0x8*(parseInt(f(0x199))/0x9)+parseInt(f(0x194))/0xa+parseInt(f(0x1a5))/0xb*(parseInt(f(0x19e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x47a3e));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x1a2)]()[h(0x198)](h(0x19f))[h(0x1a2)]()[h(0x1a3)](a3a)[h(0x198)]('(((.+)+)+)+$');});function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x18d;let f=c[d];return f;},a3d(a,b);}a3a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command['create']({'name':a3i(0x192),'usage':a3i(0x19c),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0x1a4),'description':a3i(0x19d)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x1a0)](c);if(d)this[j(0x19b)](c,a,b);else{Log[j(0x19a)](j(0x190));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4a9=a4d;
|
|
1
|
+
const a4a9=a4d;(function(a,b){const a6=a4d,c=a();while(!![]){try{const d=parseInt(a6(0xd4))/0x1*(parseInt(a6(0xce))/0x2)+parseInt(a6(0x10c))/0x3*(parseInt(a6(0xbe))/0x4)+parseInt(a6(0xdc))/0x5+-parseInt(a6(0xaa))/0x6+parseInt(a6(0xb6))/0x7+-parseInt(a6(0xc9))/0x8+parseInt(a6(0xf1))/0x9*(-parseInt(a6(0xd5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x380fd));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const a7=a4d;if(c){const e=c[a7(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const a8=a4d;return a4a[a8(0xa9)]()[a8(0xd1)](a8(0xe8))[a8(0xa9)]()[a8(0xd3)](a4a)[a8(0xd1)](a8(0xe8));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a4c(){const ak=['Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\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','push','Subnet:\x20','name','\x20DESCRIPTION:\x20','forEach','apply','},\x20{Key=Name,Value=','Desc','log','chooseVPC','cidr','create','\x20AZONE:\x20','exit','Security\x20Group\x20Name:\x20[','subnet','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=*','**\x20Available\x20key-pairs\x20**','}]\x22','17199clJHuw','join','notice','Security\x20Group:\x20','user-data','toString','1294824TuZxsQ','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','Setting\x20the\x20key-pair\x20to:\x20','Setting\x20SG\x20ID\x20to:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','success','readFileSync','ec2create','Setting\x20Subnet\x20ID\x20to\x20','string','Instance\x20Count:\x20','env','2448803GvKzKU','subnetId','cider','error','fsi','Setting\x20AMI\x20ID\x20to\x20','amiId','sgId','260QezhJb','sort','getConfigPath','ImageID:','maka\x20aws:create-instance\x20--env\x20dev','Instace\x20Type:\x20','No\x20instance\x20has\x20been\x20created.','desc','Please\x20choose\x20a\x20key\x20to\x20use:\x20','ID:\x20','parse','755896eqLExW','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','ec2createSG','build\x20on\x20','amazon','2BHVjZF','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','\x22Web\x20App\x22','search','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','constructor','151163yKaEyr','4930AjKREd','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','ec2describeKeys','number','getConfigFromShorthand','split','listSecurityGroups','1484150KHIvQF','\x20:\x20','User\x20Data:','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','**\x20Available\x20Subnets\x20**','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','bright','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getTime','Creating\x20user\x20data\x20file\x20in\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','(((.+)+)+)+$','date','\x20SUBNETID:\x20','alias','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','getProjectConfig','1:1','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','11511LxYNMO','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','ask','confirm','createKeyPair'];a4c=function(){return ak;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xa5;let f=c[d];return f;},a4d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a4a9(0x104)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance\x20<opts>','examples':[a4a9(0xc2),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a4a9(0xf8)},async function(a,b){const aa=a4a9;try{const c=this['fsi'][aa(0xee)](),d=new AWS(),{appName:f}=c,g=this['fsi'][aa(0xd9)](b[aa(0xb5)]),h=this[aa(0xba)][aa(0xc0)](g),i=f+'-'+g,j=await Actions[aa(0xf4)]('EC2\x20Name:\x20['+i+']\x20')||i;let k='',l='',m='',n='',o='',p='';const q=await Actions[aa(0xf5)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let r='';q&&(r=await d[aa(0xf6)]({'env':g}));try{Log['notice'](aa(0x10a));const w=r?r:j,x=d[aa(0xd7)]({'suggestion':w}),y=await Actions[aa(0xf4)](aa(0xc6))||'-1';if(parseInt(y)<0x0){Log[aa(0xb9)](aa(0xab)),Log[aa(0xa6)](aa(0xc4));return;}x?.[aa(0xfd)](function(z){const ab=aa;parseInt(y)===z['id']&&(k=z[ab(0xfb)],Log[ab(0xaf)](ab(0xac)+k));});}catch(z){Log[aa(0xb9)](z);}l=await d[aa(0x102)]();const s=await Actions[aa(0xf5)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?');let t;if(s){const A=l===''?d[aa(0x102)]():l;t=await Actions[aa(0xf4)](aa(0x107)+j+']')||j;const B=await Actions[aa(0xf4)](aa(0xed))||'22,80,443',C=B[aa(0xda)](',');d[aa(0xcb)]({'description':aa(0xd0),'name':t,'vpcId':A,'sgPorts':C});}t=j;try{const D=await d[aa(0xdb)](t),E=await Actions[aa(0xf4)](aa(0xdf))||'0';D[aa(0xfd)](function(F){const ac=aa;F['id']===parseInt(E)&&(m=F[ac(0xbd)],Log[ac(0xaf)](ac(0xad)+m+'\x0a'));});if(m==='')throw Log[aa(0xb9)](aa(0xe2));}catch(F){Log[aa(0xb9)](F);}try{const G=0x7e6;Log[aa(0xa6)]('**\x20Available\x20AMIs\x20**');const H=execSync(aa(0x109)+G+'*\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')['toString'](),I=JSON[aa(0xc8)](H),J=[],K=[];I[aa(0xfd)](function(M){const ad=aa;if(M[ad(0xeb)]===ad(0xcd)){const N=M[ad(0x100)][ad(0xda)](ad(0xcc))[0x1];J[ad(0xf9)]({'amiId':M['ID'],'desc':M[ad(0x100)],'date':N});}}),J[aa(0xbf)](function(M,N){const ae=aa;return new Date(N[ae(0xe9)])[ae(0xe5)]()-new Date(M['date'])[ae(0xe5)]();}),J[aa(0xfd)](function(M,N){K['push']({'id':N,'amiId':M['amiId'],'desc':M['desc']});}),K[aa(0xfd)](function(M){const af=aa;console['log'](af(0xc7)+M['id']+'\x20AMIID:\x20'+M[af(0xbc)]+af(0xfc)+M[af(0xc5)]);});const L=await Actions[aa(0xf4)](aa(0xe4))||'0';K['forEach'](function(M){const ag=aa;M['id']===parseInt(L)&&(n=M[ag(0xbc)],Log[ag(0xaf)](ag(0xbb)+n+ag(0xdd)+M[ag(0xc5)]));});if(n==='')throw Log[aa(0xb9)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(M){Log[aa(0xb9)](M);}try{Log[aa(0xa6)](aa(0xe0));const N=execSync(aa(0xcf))[aa(0xa9)](),O=JSON['parse'](N),P=[];O['forEach'](function(R,S){const ah=aa;P['push']({'id':S,'cidr':R[ah(0xb8)],'az':R['az'],'subnetId':R[ah(0xb7)]});}),P[aa(0xfd)](function(R){const ai=aa;console[ai(0x101)](ai(0xc7)+R['id']+'\x20CIDR:\x20'+R[ai(0x103)]+ai(0x105)+R['az']+ai(0xea)+R['subnetId']);});const Q=await Actions[aa(0xf4)](aa(0xf7))||'0';P['forEach'](function(R){const aj=aa;R['id']===parseInt(Q)&&(p=R['subnetId'],Log[aj(0xaf)](aj(0xb2)+p));});if(p==='')throw Log[aa(0xb9)](aa(0xe2));}catch(R){Log[aa(0xb9)](R);}let u=aa(0xef);try{const S=await Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||aa(0xef),T=S[aa(0xda)](':')[0x0],U=S[aa(0xda)](':')[0x1];typeof parseInt(T)===aa(0xd8)&&typeof parseInt(U)===aa(0xd8)&&(u=[T,U]['join'](':'),Log[aa(0xaf)](aa(0xae)+u));}catch(V){Log[aa(0xb9)](V);}try{const W=await Actions['ask'](aa(0xf0))||'t3.micro';typeof W===aa(0xb3)&&(o=W);}catch(X){Log['error'](X);}let v;try{const Y=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);Y&&(v=a4f[aa(0xa5)](h,aa(0xa8)),Log[aa(0xa6)](aa(0xe6)+v),await this['fsi']['createFile']({'filePath':v,'data':''}),await Actions[aa(0xf5)](aa(0xe7)));}catch(Z){Log[aa(0xb9)](Z);}try{const a0=JSON[aa(0xc8)](execSync(aa(0xf2)+p+aa(0xd6))[aa(0xa9)]())[0x0][aa(0x108)];Log[aa(0xa6)](aa(0xc1)+n),Log[aa(0xa6)](aa(0xb4)+u),Log['notice'](aa(0xc3)+o),Log[aa(0xa6)]('Key-Pair:\x20'+k),Log[aa(0xa6)](aa(0xa7)+m),Log[aa(0xa6)](aa(0xfa)+a0);if(v){Log[aa(0xa6)](aa(0xde)+v);const a2=await a4g[aa(0xb0)](v);Log[aa(0xa6)](a2);}const a1=await Actions[aa(0xf5)](aa(0xf3));if(a1){const a3=d[aa(0xb1)]({'imageId':n,'count':u,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':aa(0xec)+g+aa(0xff)+j+aa(0x10b),...v&&{'userData':v}});a3&&(Log[aa(0xaf)](aa(0xe1)),Log[aa(0xe3)](aa(0xd2)));}else Log[aa(0xa6)](aa(0xca));}catch(a4){console[aa(0x101)](a4),Log[aa(0xb9)](a4);}}catch(a5){console[aa(0xb9)](a5),process[aa(0x106)](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x19c))/0x1*(parseInt(g(0x1aa))/0x2)+-parseInt(g(0x1a9))/0x3*(parseInt(g(0x1a3))/0x4)+-parseInt(g(0x1ae))/0x5+-parseInt(g(0x1ad))/0x6+parseInt(g(0x19f))/0x7*(-parseInt(g(0x196))/0x8)+-parseInt(g(0x19e))/0x9*(-parseInt(g(0x1b1))/0xa)+-parseInt(g(0x1a2))/0xb*(-parseInt(g(0x1a4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xad8fe));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1a0)]()[i(0x19d)](i(0x1ac))[i(0x1a0)]()['constructor'](a5a)[i(0x19d)](i(0x1ac));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x196;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5j(0x1a7)]({'name':a5j(0x199),'aliases':[a5j(0x1a1)],'usage':a5j(0x19b),'examples':[a5j(0x197),a5j(0x1a5)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x1a6)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x19a),'description':'\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'},async function(a,b){const k=a5j;try{const c=new AWS(),d=this['fsi'][k(0x198)](b['env']);c[k(0x1a8)]({'env':d});}catch(f){console[k(0x1ab)](f),process[k(0x1b0)](0x0);}},a5e);function a5c(){const l=['240wFdmsz','maka\x20aws:ckp\x20--env\x20prod','env','create','createKeyPair','2376057pKaPLA','58946yyIRbg','error','(((.+)+)+)+$','8239446sSFtAW','4598105oRWMHp','apply','exit','188350lbFvti','8TPKhpr','maka\x20aws:create-key-pair\x20--env\x20prod','getConfigFromShorthand','create-key-pair','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','maka\x20aws:create-key-pair\x20<opts>','9Zcvmeq','search','459WQEDwo','8939777VaWWAr','toString','ckp','2115883vDPJpJ','4SHDIfs'];a5c=function(){return l;};return a5c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6p=a6d;
|
|
1
|
+
const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x19d))/0x1+-parseInt(m(0x1ad))/0x2*(-parseInt(m(0x198))/0x3)+parseInt(m(0x1b4))/0x4+-parseInt(m(0x1a5))/0x5+parseInt(m(0x19a))/0x6*(-parseInt(m(0x19f))/0x7)+-parseInt(m(0x1ab))/0x8+-parseInt(m(0x1a2))/0x9*(-parseInt(m(0x1a6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe9096));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x1ae)]()[o(0x1b0)](o(0x1b5))['toString']()['constructor'](a6a)[o(0x1b0)]('(((.+)+)+)+$');});a6a();function a6c(){const s=['List\x20is\x20not\x20all\x20numbers','Security\x20Group\x20Name:\x20[','7233812CvUpKN','(((.+)+)+)+$','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','error','\x22Web\x20App\x22','fsi','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','3msQcbf','create-security-group','689850zcSGez','maka\x20aws\x20create-security-group','apply','681301MHZARk','maka\x20aws:csg','84TrSBeR','ec2createSG','exit','14795505mQPtPt','chooseVPC','getProjectConfig','6347330qhEMFc','10gZrWFU','split','name','\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','forEach','7846208shfslC','match','901522UgxsAD','toString','maka\x20aws:create-secuirty-group','search','ask'];a6c=function(){return s;};return a6c();}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['create']({'name':a6p(0x199),'aliases':['csg'],'usage':a6p(0x19b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x1b6),'description':a6p(0x1a9),'examples':[a6p(0x1af),a6p(0x19e)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x196)][q(0x1a4)](),{appName:f}=d,g=await c[q(0x1a3)](),h=b[q(0x1a8)]?b[q(0x1a8)]:''+f,i=await Actions['ask'](q(0x1b3)+h+']')||h,j=await Actions[q(0x1b1)](q(0x197))||'22,80,443',k=j[q(0x1a7)](',');k[q(0x1aa)](l=>{const r=q;if(!l[r(0x1ac)](/^\d+$/))throw r(0x1b2);}),c[q(0x1a0)]({'description':q(0x1b8),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x1b7)](l),process[q(0x1a1)](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a7i=a7d;function a7c(){const k=['exit','search','maka\x20aws:describe-instances','7752hjADOG','constructor','558221LpMHeB','5227100ARsSrB','9289mCJxQs','describe-instances','45RBhhQG','2681046raIaLR','\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','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','(((.+)+)+)+$','apply','maka\x20aws:di','31841424CVAXRQ','583194zUedVY','974578roFemW','ec2describeInstances','toString'];a7c=function(){return k;};return a7c();}(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0x1c9))/0x1+-parseInt(f(0x1d6))/0x2+-parseInt(f(0x1ce))/0x3+parseInt(f(0x1ca))/0x4+parseInt(f(0x1cd))/0x5*(-parseInt(f(0x1d5))/0x6)+-parseInt(f(0x1cb))/0x7*(parseInt(f(0x1c7))/0x8)+parseInt(f(0x1d4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xb5da1));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x1c3)]()[h(0x1c5)](h(0x1d1))[h(0x1c3)]()[h(0x1c8)](a7a)[h(0x1c5)](h(0x1d1));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7i(0x1cc),'aliases':['di'],'usage':a7i(0x1c6),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x1d0),'examples':[a7i(0x1c6),a7i(0x1d3)],'description':a7i(0x1cf)},async function(){const j=a7i;try{const a=new AWS();a[j(0x1d7)]();}catch(b){console['error'](b),process[j(0x1c4)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0xaa))/0x1*(parseInt(f(0xae))/0x2)+parseInt(f(0xad))/0x3*(parseInt(f(0xb8))/0x4)+-parseInt(f(0xbe))/0x5+-parseInt(f(0xbd))/0x6*(parseInt(f(0xba))/0x7)+parseInt(f(0xb9))/0x8*(parseInt(f(0xb3))/0x9)+-parseInt(f(0xb6))/0xa+parseInt(f(0xb4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x92df2));function a8c(){const k=['exit','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','19416StGJZM','4929450sMLMoi','describe-key-pairs','apply','ec2describeKeys','56SbeSNp','dkp','constructor','207jOEPKG','40256fLlhbs','error','maka\x20aws:describe-key-pairs','(((.+)+)+)+$','toString','522WdJsCa','29168678JLqHWp','create','5408700IZnVNV','search','42056iJzcID','72936cPtDFA','1407ZHQXZH'];a8c=function(){return k;};return a8c();}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0xb2)]()[h(0xb7)](h(0xb1))[h(0xb2)]()[h(0xac)](a8a)[h(0xb7)](h(0xb1));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xa9;let f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0xb5)]({'name':a8i(0xbf),'aliases':[a8i(0xab)],'usage':a8i(0xb0),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0xbc),'examples':['maka\x20aws:describe-key-pairs','maka\x20aws:dkp']},async function(){const j=a8i;try{const a=new AWS();a[j(0xa9)]();}catch(b){console[j(0xaf)](b),process[j(0xbb)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9k=a9d;
|
|
1
|
+
const a9k=a9d;(function(a,b){const h=a9d,c=a();while(!![]){try{const d=parseInt(h(0xbc))/0x1*(parseInt(h(0xbf))/0x2)+parseInt(h(0xb6))/0x3+-parseInt(h(0xb7))/0x4+parseInt(h(0xc0))/0x5+parseInt(h(0xaf))/0x6+parseInt(h(0xb1))/0x7+parseInt(h(0xb2))/0x8*(-parseInt(h(0xb3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xa0fdf));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a9d;if(c){const e=c[i(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const j=a9d;return a9a[j(0xba)]()['search']('(((.+)+)+)+$')[j(0xba)]()['constructor'](a9a)[j(0xbb)](j(0xbd));});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(0xbe)]({'name':'delete-security-group','aliases':[a9k(0xb8)],'usage':a9k(0xad),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9k(0xb9),'examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const l=a9k;try{const a=new AWS(),b=await a[l(0xb4)]();let c;const d=await Actions['ask'](l(0xac));b['forEach'](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xb0)]);});if(!c)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions['confirm'](l(0xae)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a['deleteSecurityGroup'](c),Log[l(0xc1)](l(0xaa)+c)):Log[l(0xab)](l(0xb5)),process['exit'](0x0);}catch(g){process[l(0xc2)](0x1);}},a9e);function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xa9;let f=c[d];return f;},a9d(a,b);}function a9c(){const n=['Deleted\x20','error','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','maka\x20aws:delete-sg','Deleting\x20a\x20','6875916hgLDXP','sgId','4500664JomXxP','44752ocrYTl','4104LJrAEc','listSecurityGroups','Not\x20deleting\x20secuirty\x20group','3677346fToNRj','2863368cKfxHp','dsg','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','toString','search','3979hHUhtQ','(((.+)+)+)+$','create','70ESJGpj','3860720fAXzhw','success','exit','apply'];a9c=function(){return n;};return a9c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x148))/0x1+-parseInt(f(0x157))/0x2+-parseInt(f(0x140))/0x3*(-parseInt(f(0x142))/0x4)+-parseInt(f(0x14e))/0x5+parseInt(f(0x159))/0x6+parseInt(f(0x13f))/0x7*(-parseInt(f(0x153))/0x8)+parseInt(f(0x145))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x7ce6d));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x155)](h(0x15a))[h(0x150)]()[h(0x156)](a10a)[h(0x155)](h(0x15a));});a10a();import a10e from'./aws.command.js';function a10c(){const k=['ec2rebootInstance','confirm','name','1617133jiGhXl','120597gBCURA','\x20Ready?','52cYPcls','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','instanceId','18545517cQMdHc','exit','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','884673nFZrar','chooseInstance','reboot-instance','rbi','running','create','3222560KbqJnt','apply','toString','maka\x20aws:reboot-instance','\x20is\x20still\x20running.','16bmnDIQ','error','search','constructor','580412lisDSj','maka\x20aws:rbi','1258956jJsWSV','(((.+)+)+)+$','status'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x13e;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x14d)]({'name':a10i(0x14a),'aliases':[a10i(0x14b)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a10i(0x151),a10i(0x158)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x149)]();if(b?.[j(0x15b)]===j(0x14c)){const c=await Actions[j(0x15d)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+j(0x141));c?a[j(0x15c)]({'instanceId':b[j(0x144)]}):Log[j(0x154)](j(0x147)+b[j(0x13e)]+j(0x152));}else Log[j(0x154)](j(0x143));}catch(d){console[j(0x154)](d),process[j(0x146)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11c(){const m=['337403COYgar','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','deleteKeyPair','1fwNBLq','maka\x20aws:rkp','toString','Please\x20choose\x20a\x20key\x20to\x20delete:','maka\x20aws:remove-key-pair','ask','8105Alyxvv','search','\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','ec2describeKeys','(((.+)+)+)+$','1004adghEy','10793892WhdXPv','84RcjAyF','117SRevqr','create','111018oHUrbm','712794POsKEk','name','Deleting\x20a\x20','2707791QpxWOL','Deleted\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','success','forEach','rkp','remove-key-pair','13yrpDhf','148112ylWJIq','error','exit','230pKdECI'];a11c=function(){return m;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x15e;let f=c[d];return f;},a11d(a,b);}const a11j=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=-parseInt(h(0x171))/0x1*(-parseInt(h(0x15f))/0x2)+parseInt(h(0x162))/0x3+parseInt(h(0x17c))/0x4*(-parseInt(h(0x177))/0x5)+parseInt(h(0x15e))/0x6*(parseInt(h(0x17e))/0x7)+-parseInt(h(0x16a))/0x8*(parseInt(h(0x17f))/0x9)+-parseInt(h(0x16d))/0xa*(-parseInt(h(0x16e))/0xb)+parseInt(h(0x17d))/0xc*(-parseInt(h(0x169))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x9c1e9));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(0x173)]()[i(0x178)](i(0x17b))[i(0x173)]()['constructor'](a11a)[i(0x178)](i(0x17b));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11j(0x180)]({'name':a11j(0x168),'aliases':[a11j(0x167)],'usage':a11j(0x175),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11j(0x16f),'description':a11j(0x179),'examples':[a11j(0x175),a11j(0x172)]},async function(){const k=a11j;try{const a=new AWS(),b=await a[k(0x17a)]();let c;const d=await Actions[k(0x176)](k(0x174));b?.[k(0x166)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x160)]);});if(!c)throw Log['error'](k(0x164));const f=await Actions['confirm'](k(0x161)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a[k(0x170)](c),Log[k(0x165)](k(0x163)+c)):Log[k(0x16b)]('Not\x20deleting\x20keypair'),process[k(0x16c)](0x0);}catch(g){process[k(0x16c)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d
|
|
1
|
+
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x107))/0x1*(parseInt(l(0x111))/0x2)+parseInt(l(0x10b))/0x3*(-parseInt(l(0x126))/0x4)+-parseInt(l(0x108))/0x5*(-parseInt(l(0x125))/0x6)+-parseInt(l(0x116))/0x7+-parseInt(l(0x121))/0x8*(-parseInt(l(0xfd))/0x9)+parseInt(l(0xf9))/0xa+-parseInt(l(0x11c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xb4c8a));function a12c(){const q=['toString','utf8','2VCNVdR','config/ssh.json','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','constructor','success','4866092KAJQHt','env','join','error','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','ask','12833755GTWycS','maka\x20aws\x20set-host','cat\x20','getConfigPath','template','2232qNLOEM','private','ssh.json','maka\x20aws:sth\x20--env\x20prod','7742718OrZmFj','80084kFNepD','writeFileSync','public','5473620WhUfKi','create','inherit','isFile','43749XLyKBS','fsi','privateIp','\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','set-host','stringify','chooseInstance','appName','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','readFileSync','629598Nvwtcd','5BhcpjP','apply','getProjectConfig','183UQzXPa','host','(((.+)+)+)+$','search'];a12c=function(){return q;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x10f)]()[n(0x10e)](n(0x10d))['toString']()[n(0x114)](a12a)[n(0x10e)](n(0x10d));});a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xf7;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a12o(0xfa)]({'name':a12o(0x101),'aliases':['sth'],'usage':a12o(0x11d),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x113),'description':a12o(0x100),'examples':['maka\x20aws:set-host\x20--env\x20dev',a12o(0x124)]},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0xfe)][p(0x11f)](b[p(0x117)]),f=this[p(0xfe)][p(0x10a)](),g=await c[p(0x103)](),h=a12e[p(0x118)](d,p(0x123));!this['fsi'][p(0xfc)](h)&&await this[p(0xfe)][p(0x120)]({'srcPath':p(0x112),'destPath':h,'context':{'app':f[p(0x104)]},'config':f});const i=JSON['parse'](a12f[p(0x106)](h,p(0x110))),j=await Actions[p(0x11b)](p(0x105))||p(0xf8);if(j){if(j===p(0xf8)||j===p(0x122)){if(j===p(0xf8))i[p(0x10c)]=g?.['publicIp'];else j==='private'&&(i['host']=g?.['privateIp']);}else throw p(0x11a);}else i[p(0x10c)]=g?.[p(0xff)];a12f[p(0xf7)](a12e['join'](d,p(0x123)),JSON[p(0x102)](i,null,0x2)),execSync(p(0x11e)+a12e[p(0x118)](d,p(0x123)),{'stdio':p(0xfb)}),Log[p(0x115)]('\x0aSaved\x20host\x20'+j+'\x20IP\x20to\x20'+d+a12e['sep']+'ssh.json');}catch(k){console[p(0x119)](k),process['exit'](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0xe5))/0x1*(parseInt(f(0xd0))/0x2)+-parseInt(f(0xcc))/0x3*(-parseInt(f(0xd7))/0x4)+parseInt(f(0xd8))/0x5*(-parseInt(f(0xde))/0x6)+-parseInt(f(0xd3))/0x7+parseInt(f(0xdd))/0x8*(-parseInt(f(0xdf))/0x9)+parseInt(f(0xe8))/0xa*(parseInt(f(0xca))/0xb)+parseInt(f(0xcf))/0xc*(parseInt(f(0xe0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x85e2f));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a[h(0xd6)]()[h(0xd1)](h(0xd9))['toString']()[h(0xe1)](a13a)[h(0xd1)]('(((.+)+)+)+$');});function a13c(){const k=['2874315aqRkiI','(((.+)+)+)+$','maka\x20aws:terminate-instance','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','559752auLFRV','6ZYxHrw','135jKswMu','16975153EPKqxR','constructor','chooseInstance','error','ec2terminateInstance','1FktOoD','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','130OLJgxa','122221VZlmil','confirm','3xStCwg','terminate-instance','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','12ZcSVZX','1244262Dyjgzr','search','name','6542249guCYSB','create','maka\x20aws:ti','toString','4140196StYKMe'];a13c=function(){return k;};return a13c();}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';import{Actions}from'../../tools/actions/actions.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xca;let f=c[d];return f;},a13d(a,b);}Command[a13i(0xd4)]({'name':a13i(0xcd),'aliases':['ti'],'usage':a13i(0xda),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a13i(0xe6),'examples':[a13i(0xda),a13i(0xd5)]},async function(){const j=a13i;try{const a=new AWS(),b=await a[j(0xe2)]();if(b?.['status']==='running'){const c=await Actions[j(0xcb)](j(0xdc)+b['name']+'\x20Ready?');c?a[j(0xe4)]({'instanceId':b['instanceId']}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0xd2)]+j(0xce));}else Log[j(0xe3)](j(0xe7));}catch(d){console[j(0xe3)](d),process['exit'](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a14d,c=a();while(!![]){try{var d=-parseInt(f(0x1b6))/0x1*(parseInt(f(0x1b1))/0x2)+parseInt(f(0x1ba))/0x3*(parseInt(f(0x1b7))/0x4)+-parseInt(f(0x1b4))/0x5*(-parseInt(f(0x1b5))/0x6)+-parseInt(f(0x1b3))/0x7+parseInt(f(0x1be))/0x8+-parseInt(f(0x1b9))/0x9*(parseInt(f(0x1b8))/0xa)+parseInt(f(0x1bc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xcd5ac));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var g=a14d;return a14a[g(0x1bb)]()[g(0x1bd)](g(0x1b2))['toString']()['constructor'](a14a)[g(0x1bd)](g(0x1b2));});function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x1b1;var f=c[d];return f;},a14d(a,b);}function a14c(){var h=['5232tevlQF','423197hgZUfu','440848BnVQJP','10iVrRot','13479363juBncO','33KOmBko','toString','17478791hLXpxS','search','4026248grcjcb','4bIJubF','(((.+)+)+)+$','6030031vkbjxL','4255ByXUQs'];a14c=function(){return h;};return a14c();}a14a();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(0x8e))/0x1+-parseInt(p(0x85))/0x2*(parseInt(p(0x81))/0x3)+parseInt(p(0x79))/0x4+-parseInt(p(0x83))/0x5+-parseInt(p(0x8c))/0x6+parseInt(p(0x6c))/0x7*(parseInt(p(0x8d))/0x8)+parseInt(p(0x86))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x52876));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x87)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x8f)]()['search'](r(0x68))[r(0x8f)]()[r(0x7a)](a15a)['search'](r(0x68));});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';function a15c(){const u=['toString','(((.+)+)+)+$','Build\x20your\x20application\x20into\x20the\x20build\x20folder.',').\x20Update?','error','413acyqXz','confirm','concat','getGlobalMeteorVersion','maka\x20build\x20<opts>','maka\x20build:docker','forEach','join','--release','force','fsi','maka\x20build','\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','1879920WdOObt','constructor','create','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','findSubCommand','build',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','This\x20project\x27s\x20meteor\x20version\x20(','426QPIQje','invokeMeteorCommand','2756285UBgcxa','app.tar.gz','1786wmZTEX','5671404Oioiol','apply','Aborted.','existsSync','exit','pathFromProject','3113862uhVrmI','79432MBdvGu','150869AElrKm'];a15c=function(){return u;};return a15c();}import{Actions}from'../../tools/actions/actions.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x68;let f=c[d];return f;},a15d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a15s(0x7b)]({'name':'build','usage':a15s(0x70),'validOpts':[a15s(0x75),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x69),'mustBeInMakaProject':!![],'description':a15s(0x78),'examples':[a15s(0x77),a15s(0x71)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x7d)](c);if(d)this['runSubCommand'](c,a,b);else{const f=b['force'];if(!f){const i=this[t(0x76)][t(0x6f)](),j=this[t(0x76)]['getProjectMeteorVersion'](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x6d)](t(0x80)+j+t(0x7f)+i+t(0x6a));l&&this[t(0x76)]['invokeMeteorCommand']('update',[t(0x74),i]);}}const g=[this[t(0x76)][t(0x8b)]({'pathParts':[t(0x7e)]})][t(0x6e)](process['argv']['slice'](0x3)),h=a15e[t(0x73)](this[t(0x76)][t(0x8b)]({}),t(0x7e),t(0x84));if(a15f[t(0x89)](h)){const m=f??await Actions[t(0x6d)](t(0x7c));if(!m)throw Log[t(0x6b)](t(0x88));}g[t(0x72)]((n,o)=>{n==='--force'&&g['splice'](o,0x2);}),this[t(0x76)][t(0x82)](t(0x7e),g);}}catch(n){console[t(0x6b)](n),process[t(0x8a)](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16H=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x106))/0x1+parseInt(F(0x12a))/0x2*(parseInt(F(0x11e))/0x3)+parseInt(F(0x134))/0x4*(-parseInt(F(0xfa))/0x5)+parseInt(F(0xf4))/0x6*(parseInt(F(0xed))/0x7)+parseInt(F(0x114))/0x8*(parseInt(F(0xe6))/0x9)+parseInt(F(0x12d))/0xa+-parseInt(F(0x123))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xcab9c));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a['toString']()[G(0xf0)](G(0x10a))['toString']()[G(0xf9)](a16a)[G(0xf0)](G(0x10a));});a16a();import a16e from'./build.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xe4;let f=c[d];return f;},a16d(a,b);}import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16c(){const J=['error','join','Try\x20\x27maka\x20run:docker\x27','--progress=plain\x20--no-cache','cert.pem','checkConfigExists','280593gaDMji','pathFromProject','app.tar.gz','findProjectDirectory','debug','maka\x20build:docker\x20<opts>','platform','126EbvrSM','invoke','dockerfile','search','build','config/docker-compose.yaml','create','427674tPcGKf','\x20npm\x20install\x20--save','.meteor','appName','length','constructor','485OAUlyX','ignore','inherit','://','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).','os.linux.x86_64','serverName','readFileLines','findAppDirectory','getConfigPath','cert','pm2.config.js','557580NUmHRJ','template','getProjectConfig','config.json','(((.+)+)+)+$','docker\x20build\x20--build-arg\x20NODE_VERSION=','Tagging\x20Docker\x20Image:\x20','serverPort','config/pm2.config.js','mkdirSync','meteor','isFile','docker-compose.yaml','fsi','248DktFZp','_keys','confirm','getProjectsMeteorNodeVersion','ask','notice','docker','Stored\x20server\x20config\x20to\x20','meteor.bat','isDirectory','6609YpEXei','\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','force','setProjectConfig','-t\x20','46869966GXidGX','tag','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','getGlobalConfig','win32','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','1282vnAMQm','--server=','Mobile\x20server\x20port:\x20','15594970mrZaCc','findGenerator','copyFileSync','platforms','--architecture','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','443','28348eLqzuH','config'];a16c=function(){return J;};return a16c();}Command[a16H(0xf3)]({'name':a16H(0x11a),'aliases':['d'],'usage':a16H(0xeb),'validOpts':[a16H(0x120),a16H(0x124),a16H(0xea)],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':a16H(0x11f),'mustBeInMakaProject':!![],'examples':['maka\x20build:docker\x20--tag','maka\x20build:docker\x20--debug']},async function(a,b){const I=a16H;try{const c=await this[I(0x113)][I(0x126)](),d=await this['fsi'][I(0x108)](),f=await this['fsi'][I(0x117)]();f==='N/A'&&(Log['error'](I(0xfe)),process['exit'](0x1));const g=process[I(0xec)]===I(0x127)?I(0x11c):I(0x110),h=this[I(0x113)][I(0xe7)]({}),i=a16f[I(0x137)](h,'Dockerfile');if(!this[I(0x113)]['isFile'](i)){const s=a16h['findGenerator'](I(0xef));s&&await s[I(0xee)]([I(0xef)],{'cwd':h,'config':d});}const j=this[I(0x113)][I(0xe5)]('docker');if(!j){const t=a16h[I(0x12e)]('config');if(t){await t[I(0xee)](['docker'],{'cwd':h,'config':d,'isDocker':!![]});const u=this['fsi'][I(0x103)](I(0x11a)),v=a16f[I(0x137)](u,I(0x105));await this[I(0x113)]['template']({'srcPath':I(0x10e),'destPath':v,'context':{'app':d['appName'],'isDocker':![]},'config':d});const w=a16f[I(0x137)](u,I(0x112));await this[I(0x113)][I(0x107)]({'srcPath':I(0xf2),'destPath':w,'context':{'app':d[I(0xf7)],'appFileCase':paramCase(d[I(0xf7)])},'config':d});}}if(this[I(0x113)][I(0x111)](c['cert'])){const x=this['fsi'][I(0x11d)](a16f['join'](I(0x135),I(0x11a),I(0x115)));!x&&a16g[I(0x10f)](a16f[I(0x137)](I(0x135),I(0x11a),'_keys')),a16g[I(0x12f)](c[I(0x104)],a16f[I(0x137)](h,I(0x135),I(0x11a),'_keys',I(0xe4)));}const k=[I(0xf1),a16f[I(0x137)](this[I(0x113)][I(0xe9)](),I(0xf1)),I(0x131),I(0xff)],l=this[I(0x113)][I(0x101)](a16f[I(0x137)](this['fsi']['pathFromProject']({}),'app',I(0xf6),I(0x130))),m=l[I(0xf8)]>0x2?!![]:![];if(m){const y=d[I(0x100)]?d[I(0x100)]:await Actions[I(0x118)](I(0x129)),z=d['serverPort']?d[I(0x10d)]:await Actions[I(0x118)](I(0x12c));if(y['length']==0x0||z['length']==0x0)throw I(0x132);const A=z==I(0x133)?'https':'http';k['push'](I(0x12b)+A+I(0xfd)+y+':'+z);if(!d[I(0x100)]&&!d[I(0x10d)]){const B=await Actions[I(0x116)](I(0x125));B&&(this[I(0x113)][I(0x121)](I(0x100),y),this[I(0x113)]['setProjectConfig']('serverPort',z),Log['notice'](I(0x11b)+a16f[I(0x137)]('.maka',I(0x109))));}}const n=a16f[I(0x137)](this[I(0x113)][I(0xe7)]({}),'build',I(0xe8));if(a16g['existsSync'](n)){const C=await Actions[I(0x116)](I(0x128)),D=C;D&&(execSync(g+I(0xf5),{'cwd':this['fsi'][I(0x102)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[I(0x137)]('\x20'),{'cwd':this['fsi'][I(0x102)](),'stdio':'inherit'}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this['fsi'][I(0x102)](),'stdio':I(0xfb)}),Log[I(0x119)]('[*]\x20maka\x20'+k[I(0x137)]('\x20')),execSync(g+'\x20'+k[I(0x137)]('\x20'),{'cwd':this['fsi'][I(0x102)](),'stdio':I(0xfc)});const o=this[I(0x113)][I(0xe7)]({});let p=I(0x122)+paramCase(d['appName'])+':latest';b['tag']&&(p=I(0x122)+b['tag']);Log[I(0x119)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log[I(0x119)](I(0x10c)+p),Log[I(0x119)]('Docker\x20Context\x20Path:\x20'+o);const q=b[I(0xea)]?I(0x139):'',r=I(0x10b)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':I(0xfc)}),Log[I(0x119)](I(0x138));}catch(E){console[I(0x136)](E),process['exit'](0x0);}},a16e);
|