@maka/maka-cli 4.5.8 → 4.5.9

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.
Files changed (96) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/install.js +1 -1
  36. package/bundle/obf/src/commands/jsdoc.js +1 -1
  37. package/bundle/obf/src/commands/lint.js +1 -1
  38. package/bundle/obf/src/commands/login.js +1 -1
  39. package/bundle/obf/src/commands/logout.js +1 -1
  40. package/bundle/obf/src/commands/logs.js +1 -1
  41. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  42. package/bundle/obf/src/commands/murder.js +1 -1
  43. package/bundle/obf/src/commands/proxy.js +1 -1
  44. package/bundle/obf/src/commands/reconfig.js +1 -1
  45. package/bundle/obf/src/commands/run/_index.js +1 -1
  46. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  47. package/bundle/obf/src/commands/run/run.command.js +1 -1
  48. package/bundle/obf/src/commands/set/_index.js +1 -1
  49. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/set.command.js +1 -1
  52. package/bundle/obf/src/commands/ssh.js +1 -1
  53. package/bundle/obf/src/commands/ssl.js +1 -1
  54. package/bundle/obf/src/commands/test.js +1 -1
  55. package/bundle/obf/src/commands/version.js +1 -1
  56. package/bundle/obf/src/error.js +1 -1
  57. package/bundle/obf/src/generator.js +1 -1
  58. package/bundle/obf/src/generators/_index.js +1 -1
  59. package/bundle/obf/src/generators/api.js +1 -1
  60. package/bundle/obf/src/generators/collection.js +1 -1
  61. package/bundle/obf/src/generators/component.js +1 -1
  62. package/bundle/obf/src/generators/config.js +1 -1
  63. package/bundle/obf/src/generators/dbc.js +1 -1
  64. package/bundle/obf/src/generators/dockerfile.js +1 -1
  65. package/bundle/obf/src/generators/hook.js +1 -1
  66. package/bundle/obf/src/generators/kit.js +1 -1
  67. package/bundle/obf/src/generators/layout.js +1 -1
  68. package/bundle/obf/src/generators/maka.gen.js +1 -1
  69. package/bundle/obf/src/generators/methods.js +1 -1
  70. package/bundle/obf/src/generators/package.js +1 -1
  71. package/bundle/obf/src/generators/page.js +1 -1
  72. package/bundle/obf/src/generators/publish.js +1 -1
  73. package/bundle/obf/src/generators/route.js +1 -1
  74. package/bundle/obf/src/generators/service.js +1 -1
  75. package/bundle/obf/src/generators/services/_index.js +1 -1
  76. package/bundle/obf/src/generators/services/openssl.js +1 -1
  77. package/bundle/obf/src/generators/services/translation.js +1 -1
  78. package/bundle/obf/src/maka.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  83. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  85. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  87. package/bundle/obf/src/tools/https/https.class.js +1 -1
  88. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  89. package/bundle/obf/src/tools/log/log.class.js +1 -1
  90. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  91. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  93. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  95. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  96. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
3
  "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
- "version": "4.5.8",
4
+ "version": "4.5.9",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x1f3))/0x1+-parseInt(p(0x21f))/0x2+parseInt(p(0x205))/0x3+-parseInt(p(0x1e4))/0x4*(parseInt(p(0x224))/0x5)+parseInt(p(0x1e2))/0x6+parseInt(p(0x203))/0x7*(-parseInt(p(0x22c))/0x8)+parseInt(p(0x233))/0x9*(parseInt(p(0x214))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xd3935));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x21d)]()[r(0x20f)](r(0x22a))[r(0x21d)]()[r(0x22b)](a0a)[r(0x20f)](r(0x22a));});a0a();import a0e from'cli-table';function a0c(){const D=['Name','length','help','search','_handler','Alias','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','findCommand','377990XPTKgB','singleLicense','mustBeInMakaProject','validateMakaProject','Description','generate','usage','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','proFlags','toString','error','358090LXcIZp','validateParams','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','fsi','proCommands','15rKpZQi','number','join','Command\x20requires\x20a\x20handler\x20function','assign','getPro','(((.+)+)+)+$','constructor','8lXvODf','Too\x20many\x20arguments','Sub-Commands:','function','Command\x20not\x20found','push','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','432ejnrFL','Too\x20many\x20options','5694042TOWTWi','domainLicense','1005028fhRSbq','run','disableAuthCheck','maxOptsLength','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','apply','validateMakaSubscription','validateMeteorInstall','includes','split','minArgLength','minOptsLength','aliases','invoke','keys','998348fvuLMJ','options','Too\x20few\x20options','_commands','notice','mustHaveMeteorInstalled','header','name','play','deploy','murder','filter','runSubCommand','shortDesc','exit','tableList','9978374oOQdvx','addCommand\x20requires\x20a\x20Command\x20instance','4379700qkHBcx','addCommand','Command.create\x20requires\x20some\x20options!','findSubCommand','There\x20is\x20no\x20Meteor\x20application\x20here','Too\x20few\x20arguments','To\x20use\x20this\x20command,\x20\x22'];a0c=function(){return D;};return a0c();}import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0s(0x1f4)];[a0s(0x1f6)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x21b));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(t(0x227));this[t(0x1f4)]=Object[t(0x228)]({},a),this[t(0x1fa)]=this['options'][t(0x1fa)],this[t(0x1f6)]=[],this[t(0x210)]=b['bind'](this);}static['create'](a,b,c){const u=a0s;if(!a)throw new Error(u(0x207));if(typeof b!==u(0x22f))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[u(0x228)](d,{'parent':c?.['options']?.['name']}),c['addCommand'](d),d;}[a0s(0x206)](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x204));this['_commands'][v(0x231)](a);}async['validateMakaSubscription'](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x1fa)]||a[0x0],e=c?.['parent']||'',f=c?.['options'];if(f[w(0x1e6)])return;const g=a[0x0],h=Object[w(0x1f2)](b),i=await this[w(0x222)][w(0x229)]();!i&&(Log[w(0x21e)](w(0x221)),process['exit'](0x1));const j=i?.[w(0x223)][w(0x1ec)](d)||i?.[w(0x223)][w(0x1ec)](e),k=i?.['roles'][w(0x1ec)](w(0x215))||i?.['roles'][w(0x1ec)](w(0x1e3)),l=!k;if(j&&l)throw w(0x20b)+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(0x20d)]>0x0){const m=i?.[w(0x21c)][w(0x1fe)](n=>h[w(0x1ec)](n));if(m&&m['length']>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.[w(0x226)](',\x20')+w(0x1e8);}if(g===w(0x1fc)){const n=await this[w(0x222)]['getPro'](),o=n?.[w(0x223)][w(0x1ec)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x1e8);}}}async[a0s(0x1e5)](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x1ea)](a,b);}catch(c){Log['error'](c),process['exit'](0x0);}await this[x(0x1f1)](a,b);}catch(d){process[x(0x201)](0x1);}}async[a0s(0x1f1)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x1f4)];try{if(this[y(0x1f4)][y(0x1fa)]!==y(0x219)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x20d)]===0x0)&&this[y(0x1f6)][y(0x20d)]>=0x0;if(f&&b[y(0x20e)]){if(this[y(0x1f6)][y(0x20d)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x20e)]){if(this[y(0x1f4)][y(0x216)]){const g=this[y(0x217)]();if(!g)throw new MustBeInProjectError();}if(this[y(0x1f4)][y(0x1f8)]){const h=this[y(0x1eb)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x1f4)][y(0x1ee)]===y(0x225)){if(a[y(0x20d)]<this[y(0x1f4)]['minArgLength']){Log[y(0x21e)](y(0x20a));throw new UsageError();}}if(typeof this['options']['maxArgLength']==='number'){if(a[y(0x20d)]>=this[y(0x1f4)]['maxArgLength']){Log[y(0x21e)](y(0x22d));throw new UsageError();}}if(typeof this[y(0x1f4)][y(0x1ef)]===y(0x225)){if(Object[y(0x1f2)](b)[y(0x20d)]<this[y(0x1f4)]['minOptsLength']){Log['error'](y(0x1f5));throw new UsageError();}}if(typeof this[y(0x1f4)][y(0x1e7)]==='number'){if(Object[y(0x1f2)](b)[y(0x20d)]>=this['options'][y(0x1e7)]){Log['error'](y(0x1e1));throw new UsageError();}}}}this[y(0x220)](a,b,this[y(0x1f4)]),_prevCmd=a[0x0];}await this[y(0x210)]['call'](this,a,b);}catch(i){Log[y(0x21a)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log['notice'](y(0x22e)),this[y(0x202)](this[y(0x1f6)]),Log[y(0x1f9)](y(0x212));else{if(i instanceof MustBeInProjectError)Log[y(0x21e)](y(0x232));else{if(i instanceof NoMeteorFoundError)Log[y(0x21e)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[y(0x1f7)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(i instanceof NoMeteorAppFoundError)Log[y(0x21e)](y(0x209));else throw i;}}}process['exit'](0x1);}}[a0s(0x202)](a){const z=a0s,b=new a0e({});b[z(0x231)]([z(0x20c),z(0x211),z(0x218)]),a['sort']()['forEach'](c=>{const A=z;c[A(0x1fa)]!==A(0x1fd)&&c[A(0x1fa)]!==A(0x1fb)&&b['push']([c['name'],c[A(0x1f0)](),c[A(0x200)]()]);}),Log['bright'](b[z(0x21d)]());}[a0s(0x213)](a){return this['_commands']['find'](b=>b['match'](a));}[a0s(0x208)](a){const B=a0s,b=a?.[B(0x1ed)](':');if(b)return a=b[0x0],this[B(0x213)](a);else return;}async[a0s(0x1ff)](a,b,c){const C=a0s;try{const d=a[C(0x1ed)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this[C(0x213)](a);if(g)await g[C(0x1e5)](b,c);else throw C(0x230);}catch(h){throw Log['error'](h);}}}
1
+ function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x188;let f=c[d];return f;},a0d(a,b);}function a0c(){const D=['Command\x20requires\x20a\x20name','constructor','findSubCommand','header','To\x20use\x20these\x20pro\x20flags,\x20\x22','13872680gekFwY','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20requires\x20a\x20handler\x20function','mustBeInMakaProject','(((.+)+)+)+$','bind','findCommand','_commands','mustHaveMeteorInstalled','options','fsi','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','number','name','sort','addCommand\x20requires\x20a\x20Command\x20instance','toString','56ytCbpV','help','disableAuthCheck','singleLicense','function','validateParams','validateMeteorInstall','22522tMVUFR','bright','validateMakaProject','Please\x20run\x20\x22maka\x20install\x20meteor\x22','To\x20use\x20this\x20command,\x20\x22','maxOptsLength','run','assign','Name','includes','error','_handler','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','length','maxArgLength','keys','search','play','push','848334vGpdea','generate','roles','tableList','Sub-Commands:','Command.create\x20requires\x20some\x20options!','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20many\x20options','call','addCommand','exit','Too\x20few\x20options','invoke','parent','notice','split','deploy','getPro','murder','3448232clnkDy','find','1016pvYggA','61TccumN','shortDesc','Alias','minArgLength','11675088hqJKMo','279hmUnXj','minOptsLength','proFlags','splice','create','Too\x20many\x20arguments','proCommands','6560375MuKBqy'];a0c=function(){return D;};return a0c();}const a0r=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x194))/0x1*(-parseInt(p(0x1bf))/0x2)+-parseInt(p(0x199))/0x3*(parseInt(p(0x193))/0x4)+-parseInt(p(0x1a0))/0x5+parseInt(p(0x1d2))/0x6*(parseInt(p(0x1b8))/0x7)+parseInt(p(0x191))/0x8+parseInt(p(0x198))/0x9+-parseInt(p(0x1a6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xc9021));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const q=a0d;return a0a[q(0x1b7)]()[q(0x1cf)](q(0x1ab))[q(0x1b7)]()[q(0x1a2)](a0a)[q(0x1cf)](q(0x1ab));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0r(0x1b0)];[a0r(0x1ae)];constructor(a,b){const s=a0r;super();if(!a)throw new Error(s(0x1d8));if(!a[s(0x1b4)])throw new Error(s(0x1a1));if(typeof b!=='function')throw new Error(s(0x1a9));this['options']=Object[s(0x1c6)]({},a),this[s(0x1b4)]=this[s(0x1b0)][s(0x1b4)],this[s(0x1ae)]=[],this['_handler']=b[s(0x1ac)](this);}static[a0r(0x19d)](a,b,c){const t=a0r;if(!a)throw new Error(t(0x1d7));if(typeof b!==t(0x1bc))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[t(0x1c6)](d,{'parent':c?.[t(0x1b0)]?.[t(0x1b4)]}),c[t(0x1db)](d),d;}['addCommand'](a){const u=a0r;if(!(a instanceof Command))throw new Error(u(0x1b6));this[u(0x1ae)][u(0x1d1)](a);}async['validateMakaSubscription'](a,b){const v=a0r,c=this[v(0x1ad)](a[0x0]);if(c){const d=c?.[v(0x1b4)]||a[0x0],e=c?.[v(0x18b)]||'',f=c?.[v(0x1b0)];if(f[v(0x1ba)])return;const g=a[0x0],h=Object[v(0x1ce)](b),i=await this[v(0x1b1)]['getPro']();!i&&(Log[v(0x1c9)](v(0x1a7)),process[v(0x188)](0x1));const j=i?.[v(0x19f)]['includes'](d)||i?.[v(0x19f)][v(0x1c8)](e),k=i?.[v(0x1d4)][v(0x1c8)](v(0x1bb))||i?.[v(0x1d4)]['includes']('domainLicense'),l=!k;if(j&&l)throw v(0x1c3)+a[0x0]+v(0x1cb);if(h[v(0x1cc)]>0x0){const m=i?.[v(0x19b)]['filter'](n=>h['includes'](n));if(m&&m['length']>0x0&&l)throw v(0x1a5)+m?.['join'](',\x20')+v(0x1cb);}if(g===v(0x18e)){const n=await this['fsi'][v(0x18f)](),o=n?.['proCommands'][v(0x1c8)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+v(0x1cb);}}}async[a0r(0x1c5)](a,b){const w=a0r;try{a=a||[],b=b||{};try{await this['validateMakaSubscription'](a,b);}catch(c){Log[w(0x1c9)](c),process[w(0x188)](0x0);}await this['invoke'](a,b);}catch(d){process[w(0x188)](0x1);}}async[a0r(0x18a)](a,b){const x=a0r,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[x(0x1b0)];try{if(this[x(0x1b0)][x(0x1b4)]!==x(0x1d3)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this['_commands'][x(0x1cc)]>=0x0;if(f&&b['help']){if(this['_commands'][x(0x1cc)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[x(0x1b9)]){if(this[x(0x1b0)][x(0x1aa)]){const g=this[x(0x1c1)]();if(!g)throw new MustBeInProjectError();}if(this[x(0x1b0)][x(0x1af)]){const h=this[x(0x1be)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[x(0x1b0)][x(0x197)]===x(0x1b3)){if(a[x(0x1cc)]<this[x(0x1b0)][x(0x197)]){Log[x(0x1c9)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[x(0x1b0)]['maxArgLength']===x(0x1b3)){if(a[x(0x1cc)]>=this[x(0x1b0)][x(0x1cd)]){Log['error'](x(0x19e));throw new UsageError();}}if(typeof this[x(0x1b0)][x(0x19a)]===x(0x1b3)){if(Object[x(0x1ce)](b)[x(0x1cc)]<this[x(0x1b0)][x(0x19a)]){Log['error'](x(0x189));throw new UsageError();}}if(typeof this[x(0x1b0)][x(0x1c4)]===x(0x1b3)){if(Object['keys'](b)[x(0x1cc)]>=this[x(0x1b0)]['maxOptsLength']){Log[x(0x1c9)](x(0x1d9));throw new UsageError();}}}}this[x(0x1bd)](a,b,this[x(0x1b0)]),_prevCmd=a[0x0];}await this[x(0x1ca)][x(0x1da)](this,a,b);}catch(i){Log['usage'](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log['notice'](x(0x1d6)),this[x(0x1d5)](this[x(0x1ae)]),Log[x(0x1a4)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(i instanceof MustBeInProjectError)Log[x(0x1c9)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log['error'](x(0x1b2)),Log[x(0x18c)](x(0x1c2));else{if(i instanceof NoMeteorAppFoundError)Log[x(0x1c9)](x(0x1a8));else throw i;}}}process[x(0x188)](0x1);}}['tableList'](a){const y=a0r,b=new a0e({});b['push']([y(0x1c7),y(0x196),'Description']),a[y(0x1b5)]()['forEach'](c=>{const z=y;c[z(0x1b4)]!==z(0x190)&&c[z(0x1b4)]!==z(0x1d0)&&b[z(0x1d1)]([c[z(0x1b4)],c['aliases'](),c[z(0x195)]()]);}),Log[y(0x1c0)](b[y(0x1b7)]());}[a0r(0x1ad)](a){const A=a0r;return this[A(0x1ae)][A(0x192)](b=>b['match'](a));}[a0r(0x1a3)](a){const B=a0r,b=a?.[B(0x18d)](':');if(b)return a=b[0x0],this[B(0x1ad)](a);else return;}async['runSubCommand'](a,b,c){const C=a0r;try{const d=a[C(0x18d)](':');a=d[0x0];const f=d[0x1];f&&b[C(0x19c)](0x0,0x0,f);const g=this[C(0x1ad)](a);if(g)await g[C(0x1c5)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log[C(0x1c9)](h);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x1b2))/0x1+parseInt(f(0x1b0))/0x2*(-parseInt(f(0x1b5))/0x3)+-parseInt(f(0x1b4))/0x4+parseInt(f(0x1ac))/0x5*(parseInt(f(0x1a9))/0x6)+parseInt(f(0x1b1))/0x7+-parseInt(f(0x1ad))/0x8+parseInt(f(0x1b3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xf2551));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0x1aa)]()[g(0x1af)](g(0x1ab))[g(0x1aa)]()[g(0x1ae)](a1a)['search'](g(0x1ab));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1a9;var f=c[d];return f;},a1d(a,b);}import'./build/_index.js';import'./run/_index.js';import'./create.js';function a1c(){var h=['1048482SUhXof','toString','(((.+)+)+)+$','15bnIVjo','2828320OTNbqf','constructor','search','2qIqKkW','11982544WYmnhn','1929740ahXlfv','29521296aLmzPC','4027228DZDzXw','3700491aWycZk'];a1c=function(){return h;};return a1c();}import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x128))/0x1*(parseInt(f(0x135))/0x2)+-parseInt(f(0x12b))/0x3+-parseInt(f(0x12f))/0x4*(parseInt(f(0x12a))/0x5)+parseInt(f(0x132))/0x6*(-parseInt(f(0x124))/0x7)+-parseInt(f(0x12e))/0x8*(parseInt(f(0x127))/0x9)+-parseInt(f(0x130))/0xa*(-parseInt(f(0x12c))/0xb)+-parseInt(f(0x131))/0xc*(-parseInt(f(0x133))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x706e9));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x126)]()[h(0x12d)](h(0x125))['toString']()[h(0x129)](a1a)[h(0x12d)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x124;var f=c[d];return f;},a1d(a,b);}import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';function a1c(){var i=['1aRoPVR','constructor','70pHXwtG','2375757ecrjyS','435941nLkWco','search','464rKqjEw','173252papQOT','50WfKrED','3747108UBdAHj','120336ilHKaJ','104JeZkhG','apply','236642NDNOeG','168aUMNPI','(((.+)+)+)+$','toString','73611XplEDC'];a1c=function(){return i;};return a1c();}import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
@@ -1 +1 @@
1
- (function(a,b){var f=a2d,c=a();while(!![]){try{var d=-parseInt(f(0x1e6))/0x1*(-parseInt(f(0x1f3))/0x2)+parseInt(f(0x1e5))/0x3*(-parseInt(f(0x1e4))/0x4)+-parseInt(f(0x1e8))/0x5*(-parseInt(f(0x1f2))/0x6)+-parseInt(f(0x1f1))/0x7*(parseInt(f(0x1ec))/0x8)+parseInt(f(0x1f4))/0x9*(parseInt(f(0x1ee))/0xa)+-parseInt(f(0x1f0))/0xb*(-parseInt(f(0x1ea))/0xc)+parseInt(f(0x1e2))/0xd*(-parseInt(f(0x1eb))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x50a8e));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0x1e9)]()[h(0x1ed)](h(0x1e7))[h(0x1e9)]()[h(0x1e3)](a2a)['search']('(((.+)+)+)+$');});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x1e2;var f=c[d];return f;},a2d(a,b);}import'./dkp.sub.cmd.js';function a2c(){var i=['435582pCBNkR','512316OsylnD','10SmOqnb','4204071XSjEVV','91NpvPUp','constructor','388jIqRUF','10161wsMOFu','45793UHZNSk','(((.+)+)+)+$','5xfFqxz','toString','93516EzRchr','1133972IhIjKP','16FNKayD','search','10bGHFdB','apply','803wZqvKi'];a2c=function(){return i;};return a2c();}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
1
+ (function(a,b){var f=a2d,c=a();while(!![]){try{var d=-parseInt(f(0xde))/0x1*(parseInt(f(0xe1))/0x2)+-parseInt(f(0xe7))/0x3+parseInt(f(0xe6))/0x4+parseInt(f(0xe9))/0x5+-parseInt(f(0xe4))/0x6*(parseInt(f(0xeb))/0x7)+parseInt(f(0xe2))/0x8*(-parseInt(f(0xea))/0x9)+parseInt(f(0xdd))/0xa*(parseInt(f(0xe5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x6f832));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0xe3)]()['search'](h(0xe0))['toString']()[h(0xe8)](a2a)['search'](h(0xe0));});function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xdd;var f=c[d];return f;},a2d(a,b);}a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a2c(){var i=['20684433QVpxPt','1812424HDKBFh','1534278KNYiEN','constructor','4244640HzpDUt','5078403EdICtB','2723jKpCiB','10sPlPgE','30559ZqezcY','apply','(((.+)+)+)+$','56mGoSOa','8RuvSQZ','toString','12252rjuuyB'];a2c=function(){return i;};return a2c();}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(0xc5))/0x1*(parseInt(f(0xd1))/0x2)+-parseInt(f(0xc6))/0x3*(parseInt(f(0xc1))/0x4)+parseInt(f(0xbe))/0x5*(-parseInt(f(0xcc))/0x6)+-parseInt(f(0xd3))/0x7*(-parseInt(f(0xce))/0x8)+parseInt(f(0xcb))/0x9+parseInt(f(0xc8))/0xa*(parseInt(f(0xc4))/0xb)+parseInt(f(0xcd))/0xc*(parseInt(f(0xbd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x37ea9));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0xc0)]()['search'](h(0xd0))['toString']()['constructor'](a3a)[h(0xd2)](h(0xd0));});a3a();import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xbd;let f=c[d];return f;},a3d(a,b);}import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0xca)]({'name':a3i(0xcf),'usage':a3i(0xc3),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0xc2),'description':a3i(0xd4)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0xc9)](c);if(d)this[j(0xd5)](c,a,b);else{Log['error'](j(0xc7));throw new UsageErrorWithSubs();}});export default AWSCommand;function a3c(){const k=['705055ltusDd','58505dTUyFR','apply','toString','22940nIrNcM','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','maka\x20aws:<sub-command>','653147ivwClF','353428aGNTKV','141VaTAwL','Sub\x20Command\x20not\x20found','40dwHIek','findSubCommand','create','2722986jqxzzk','174afyTTg','84zVLIjS','24416ElTxOs','aws','(((.+)+)+)+$','2ACvyPb','search','623sMaFOy','\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','runSubCommand'];a3c=function(){return k;};return a3c();}
1
+ const a3h=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0x191))/0x1+parseInt(f(0x17f))/0x2+-parseInt(f(0x188))/0x3+-parseInt(f(0x183))/0x4*(-parseInt(f(0x187))/0x5)+-parseInt(f(0x180))/0x6+-parseInt(f(0x18d))/0x7+parseInt(f(0x189))/0x8*(parseInt(f(0x181))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x4a4d1));const a3b=(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;};}()),a3a=a3b(this,function(){const g=a3d;return a3a['toString']()['search'](g(0x18c))[g(0x184)]()[g(0x190)](a3a)[g(0x193)](g(0x18c));});function a3c(){const j=['search','486634wdUOcK','588372TjYpSl','9uQgBQg','findSubCommand','368ZuDlUl','toString','maka\x20aws:<sub-command>','runSubCommand','14005FLUSNx','826479dMcTqL','3987976JYsAvI','Sub\x20Command\x20not\x20found','error','(((.+)+)+)+$','2049208cYdVoh','create','\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','constructor','28870nECNNh','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs'];a3c=function(){return j;};return a3c();}a3a();import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x17f;let f=c[d];return f;},a3d(a,b);}import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3h(0x18e)]({'name':'aws','usage':a3h(0x185),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3h(0x192),'description':a3h(0x18f)},async function(a,b){const i=a3h,c=a[0x0],d=this[i(0x182)](c);if(d)this[i(0x186)](c,a,b);else{Log[i(0x18b)](i(0x18a));throw new UsageErrorWithSubs();}});export default AWSCommand;
@@ -1 +1 @@
1
- const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=parseInt(ae(0x1b1))/0x1*(-parseInt(ae(0x186))/0x2)+-parseInt(ae(0x161))/0x3+parseInt(ae(0x154))/0x4+-parseInt(ae(0x16d))/0x5*(-parseInt(ae(0x15c))/0x6)+parseInt(ae(0x178))/0x7+-parseInt(ae(0x14c))/0x8*(-parseInt(ae(0x1ab))/0x9)+-parseInt(ae(0x1b2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x36578));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x16e)]()[ag(0x168)](ag(0x19b))[ag(0x16e)]()[ag(0x156)](a4a)[ag(0x168)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x14c;let f=c[d];return f;},a4d(a,b);}function a4c(){const au=['join','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','getConfigFromShorthand','maka\x20aws:ci\x20--env\x20prod','Remove\x20the\x20security\x20group\x20','amazon','Desc','success','getSecurityGroups','ec2create','push','notice','split','date','isFile','number','ec2describeKeys','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=*','(((.+)+)+)+$','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Setting\x20AMI\x20ID\x20to\x20','user-data','getConfigPath','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','t3.micro','created-by','sgId','\x20SGID:\x20','Creating\x20user\x20data\x20file\x20in\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka-cli','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','cider','desc','330435HoFziT','exit','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getProjectConfig','error','57srdeNF','2827660gZtuVa','sort','subnetId','Setting\x20SG\x20ID\x20to:\x20','48AJlyzd','environment','cidr','deleteSecurityGroup','alias','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','fsi','createFile','914212OTswRc','ImageID:','constructor','chooseVPC','forEach','createKeyPair','getTime','No\x20instance\x20has\x20been\x20created.','28068xYCMBi','EC2\x20Name:\x20[','Please\x20choose\x20a\x20key\x20to\x20use:\x20','22,80,443','Instace\x20Type:\x20','44574mVCotO','\x20:\x20','parse','ask','\x20AZONE:\x20','name','create-instance','search','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','confirm','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','**\x20Available\x20Subnets\x20**','180kRAzyW','toString','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ID:\x20','maka\x20aws:create-instance\x20<opts>','\x20AMIID:\x20','bright','\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','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','**\x20Available\x20AMIs\x20**','env','1187620EUJOGI','amiId','Subnet:\x20','deleteKeyPair','subnet','\x20SG\x20NAME:\x20','apply','Security\x20Group\x20Name:\x20[','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Setting\x20the\x20key-pair\x20to:\x20','Key-Pair:\x20','\x20SUBNETID:\x20','log','9358KoSNuE','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'];a4c=function(){return au;};return a4c();}import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a4ah(0x167),'aliases':['ci'],'usage':a4ah(0x171),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a4ah(0x18c)],'mustBeInMakaProject':!![],'requiredOpts':[a4ah(0x177)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a4ah(0x174)},async function(a,b){const ai=a4ah;try{const c=this[ai(0x152)][ai(0x1af)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x152)][ai(0x18b)](b[ai(0x177)]),i=this[ai(0x152)][ai(0x19f)](h),j=g+'-'+h,k=await Actions[ai(0x164)](ai(0x15d)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x1a8),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x159)]({'env':h});r=y,s=z,Log[ai(0x190)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0x194)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x199)]({'suggestion':A}),C=await Actions[ai(0x164)](ai(0x15e))||'-1';if(parseInt(C)<0x0){Log[ai(0x1b0)](ai(0x175)),Log[ai(0x194)](ai(0x15b));return;}B?.[ai(0x158)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x190)](aj(0x182)+r));});}catch(D){Log[ai(0x1b0)](D);}l=await d[ai(0x157)]();const t=await Actions[ai(0x16a)](ai(0x19c),!![]);let u;if(t){const E=l===''?await d[ai(0x157)]():l;u=await Actions[ai(0x164)](ai(0x17f)+k+']')||k;const F=await Actions['ask'](ai(0x1a0))||ai(0x15f),G=F[ai(0x195)](',');await d['ec2createSG']({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x191)](u);if(I===''){Log['notice']('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x158)](function(L){const ak=ai;L['name']===u?Log[ak(0x194)](ak(0x170)+L['id']+ak(0x17d)+L[ak(0x166)]+ak(0x1a4)+L['sgId']):Log[ak(0x173)]('ID:\x20'+L['id']+ak(0x17d)+L[ak(0x166)]+ak(0x1a4)+L[ak(0x1a3)]);});const K=await Actions[ai(0x164)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H['toString']();J[ai(0x158)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1a3)],Log['success'](al(0x1b5)+m+'\x0a'));});}else m=I,Log[ai(0x190)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1b0)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0x1b0)](L);}try{const M=0x7e6;Log[ai(0x194)](ai(0x176));const N=execSync(ai(0x19a)+M+'*\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')[ai(0x16e)](),O=JSON[ai(0x163)](N),P=[],Q=[];O[ai(0x158)](function(S){const am=ai;if(S[am(0x150)]===am(0x18e)){const T=S[am(0x18f)]['split']('build\x20on\x20')[0x1];P[am(0x193)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x1b3)](function(S,T){const an=ai;return new Date(T['date'])[an(0x15a)]()-new Date(S[an(0x196)])[an(0x15a)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x193)]({'id':T,'amiId':S[ao(0x179)],'desc':S[ao(0x1aa)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x185)]('ID:\x20'+S['id']+ap(0x172)+S['amiId']+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions['ask'](ai(0x189))||'0';Q[ai(0x158)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x179)],Log[aq(0x190)](aq(0x19d)+n+aq(0x162)+S[aq(0x1aa)]));});if(n==='')throw Log[ai(0x1b0)](ai(0x1a6));}catch(S){Log[ai(0x1b0)](S);}try{Log[ai(0x194)](ai(0x16c));const T=execSync(ai(0x16b))['toString'](),U=JSON[ai(0x163)](T),V=[];U[ai(0x158)](function(X,Y){const ar=ai;V[ar(0x193)]({'id':Y,'cidr':X[ar(0x1a9)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x158)](function(X){const as=ai;console[as(0x185)]('ID:\x20'+X['id']+'\x20CIDR:\x20'+X[as(0x14e)]+as(0x165)+X['az']+as(0x184)+X['subnetId']);});const W=await Actions[ai(0x164)](ai(0x1ae))||'0';V[ai(0x158)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1b4)],Log[at(0x190)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x1b0)](ai(0x1a6));}catch(X){Log[ai(0x1b0)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x164)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||'1:1',Z=Y[ai(0x195)](':')[0x0],a0=Y[ai(0x195)](':')[0x1];typeof parseInt(Z)===ai(0x198)&&typeof parseInt(a0)===ai(0x198)&&Log[ai(0x190)](ai(0x1ad)+Z+':'+a0);}catch(a1){Log[ai(0x1b0)](a1);}try{const a2=await Actions[ai(0x164)](ai(0x187))||ai(0x1a1);typeof a2==='string'&&(o=a2);}catch(a3){Log['error'](a3);}let x;try{const a4=await Actions[ai(0x16a)](ai(0x18a),![]);a4&&(x=a4f[ai(0x188)](i,ai(0x19e)),Log[ai(0x194)](ai(0x1a5)+x),await this[ai(0x152)][ai(0x153)]({'filePath':x,'data':''}),await Actions[ai(0x16a)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0x1b0)](a5);}try{const a6=JSON['parse'](execSync(ai(0x16f)+p+ai(0x151))[ai(0x16e)]())[0x0][ai(0x17c)];Log[ai(0x194)](ai(0x155)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x194)](ai(0x160)+o),Log[ai(0x194)](ai(0x183)+r),Log['notice']('Security\x20Group:\x20'+m),Log[ai(0x194)](ai(0x17a)+a6);if(x){Log[ai(0x194)]('User\x20Data:'+x);const a8=a4g['readFileSync'](x);Log[ai(0x194)](a8);}const a7=await Actions[ai(0x16a)](ai(0x169));if(a7){const a9=await d[ai(0x192)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1a2),'Value':ai(0x1a7)},{'Key':ai(0x14d),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x190)](ai(0x180)),Log['bright']('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x194)](ai(0x181));const aa=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x17b)](r),f[ai(0x197)](s)&&a4g['unlinkSync'](s));const ab=await Actions['confirm'](ai(0x18d)+m+'\x20?',!![]);ab&&d[ai(0x14f)](m);}}catch(ac){console[ai(0x185)](ac),Log[ai(0x1b0)](ac);}}catch(ad){console['error'](ad),process[ai(0x1ac)](0x0);}},a4e);
1
+ function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a4d(a,b);}const a4ag=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=parseInt(ae(0x236))/0x1+parseInt(ae(0x218))/0x2+-parseInt(ae(0x230))/0x3+-parseInt(ae(0x22a))/0x4+parseInt(ae(0x1f7))/0x5*(-parseInt(ae(0x1f8))/0x6)+parseInt(ae(0x1fa))/0x7+parseInt(ae(0x24d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x59bf0));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const af=a4d;return a4a[af(0x215)]()['search'](af(0x21f))[af(0x215)]()[af(0x249)](a4a)[af(0x239)](af(0x21f));});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';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ag(0x23b)]({'name':a4ag(0x232),'aliases':['ci'],'usage':a4ag(0x24b),'examples':[a4ag(0x20a),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a4ag(0x1f6)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ag(0x238),'description':a4ag(0x1fe)},async function(a,b){const ah=a4ag;try{const c=this['fsi'][ah(0x1fd)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x246)]['getConfigFromShorthand'](b['env']),i=this[ah(0x246)][ah(0x245)](h),j=g+'-'+h,k=await Actions['ask'](ah(0x24c)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ah(0x22c),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x22d)]({'env':h});r=y,s=z,Log[ah(0x212)](ah(0x247)+r);}else try{Log[ah(0x211)](ah(0x201));const A=r?r:k,B=await d[ah(0x1f2)]({'suggestion':A}),C=await Actions[ah(0x244)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ah(0x23c)](ah(0x1e8)),Log[ah(0x211)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D['name'],Log[ai(0x212)](ai(0x247)+r));});}catch(D){Log[ah(0x23c)](D);}l=await d['chooseVPC']();const t=await Actions[ah(0x231)](ah(0x248),!![]);let u;if(t){const E=l===''?await d[ah(0x223)]():l;u=await Actions[ah(0x244)](ah(0x22e)+k+']')||k;const F=await Actions[ah(0x244)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x23a),G=F[ah(0x24a)](',');await d['ec2createSG']({'description':ah(0x225),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0x23d)](u);if(I===''){Log[ah(0x211)](ah(0x207)),J[ah(0x243)](function(L){const aj=ah;L[aj(0x203)]===u?Log[aj(0x211)](aj(0x1f5)+L['id']+aj(0x209)+L[aj(0x203)]+aj(0x1ed)+L[aj(0x219)]):Log[aj(0x1fc)]('ID:\x20'+L['id']+aj(0x209)+L[aj(0x203)]+'\x20SGID:\x20'+L[aj(0x219)]);});const K=await Actions['ask'](ah(0x20b)+H+']\x20')||H[ah(0x215)]();J[ah(0x243)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L['sgId'],Log[ak(0x212)](ak(0x22f)+m+'\x0a'));});}else m=I,Log[ah(0x212)](ah(0x22f)+m+'\x0a');if(m==='')throw Log[ah(0x23c)](ah(0x1eb));}catch(L){Log[ah(0x23c)](L);}try{const M=0x7e6;Log[ah(0x211)](ah(0x23f));const N=execSync(ah(0x213)+M+'*\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')[ah(0x215)](),O=JSON[ah(0x21d)](N),P=[],Q=[];O[ah(0x243)](function(S){const al=ah;if(S['alias']===al(0x217)){const T=S[al(0x210)][al(0x24a)](al(0x235))[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0x210)],'date':T});}}),P[ah(0x20f)](function(S,T){const am=ah;return new Date(T[am(0x1ef)])[am(0x20e)]()-new Date(S['date'])[am(0x20e)]();}),P['forEach'](function(S,T){const an=ah;Q[an(0x205)]({'id':T,'amiId':S[an(0x229)],'desc':S['desc']});}),Q[ah(0x243)](function(S){const ao=ah;console[ao(0x1e9)](ao(0x1f5)+S['id']+'\x20AMIID:\x20'+S[ao(0x229)]+ao(0x220)+S[ao(0x222)]);});const R=await Actions[ah(0x244)](ah(0x204))||'0';Q['forEach'](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S['amiId'],Log[ap(0x212)](ap(0x1f9)+n+ap(0x21c)+S[ap(0x222)]));});if(n==='')throw Log[ah(0x23c)](ah(0x1eb));}catch(S){Log[ah(0x23c)](S);}try{Log[ah(0x211)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x1f4))[ah(0x215)](),U=JSON[ah(0x21d)](T),V=[];U[ah(0x243)](function(X,Y){const aq=ah;V[aq(0x205)]({'id':Y,'cidr':X[aq(0x202)],'az':X['az'],'subnetId':X[aq(0x21a)]});}),V['forEach'](function(X){const ar=ah;console['log'](ar(0x1f5)+X['id']+ar(0x20d)+X['cidr']+ar(0x1ea)+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ah(0x244)](ah(0x228))||'0';V['forEach'](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x21a)],Log[as(0x212)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error'](ah(0x1eb));}catch(X){Log[ah(0x23c)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x244)](ah(0x241))||ah(0x1ec),Z=Y[ah(0x24a)](':')[0x0],a0=Y[ah(0x24a)](':')[0x1];typeof parseInt(Z)===ah(0x20c)&&typeof parseInt(a0)===ah(0x20c)&&Log['success']('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x23c)](a1);}try{const a2=await Actions[ah(0x244)](ah(0x1f1))||'t3.micro';typeof a2===ah(0x206)&&(o=a2);}catch(a3){Log['error'](a3);}let x;try{const a4=await Actions[ah(0x231)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a4f['join'](i,ah(0x227)),Log[ah(0x211)](ah(0x226)+x),await this[ah(0x246)]['createFile']({'filePath':x,'data':''}),await Actions['confirm'](ah(0x1f0)));}catch(a5){Log[ah(0x23c)](a5);}try{const a6=JSON[ah(0x21d)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ah(0x1fb))[ah(0x215)]())[0x0][ah(0x224)];Log[ah(0x211)](ah(0x21b)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log['notice'](ah(0x21e)+o),Log[ah(0x211)](ah(0x242)+r),Log['notice'](ah(0x237)+m),Log[ah(0x211)](ah(0x1f3)+a6);if(x){Log[ah(0x211)](ah(0x22b)+x);const a8=a4g[ah(0x234)](x);Log[ah(0x211)](a8);}const a7=await Actions['confirm'](ah(0x1ee));if(a7){const a9=await d[ah(0x23e)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':'maka-cli'},{'Key':ah(0x1e7),'Value':h},{'Key':ah(0x240),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x212)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ah(0x200)));}else{Log[ah(0x211)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ah(0x231)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ah(0x216)](r),f[ah(0x214)](s)&&a4g[ah(0x221)](s));const ab=await Actions['confirm'](ah(0x233)+m+'\x20?',!![]);ab&&d[ah(0x208)](m);}}catch(ac){console[ah(0x1e9)](ac),Log[ah(0x23c)](ac);}}catch(ad){console[ah(0x23c)](ad),process[ah(0x1ff)](0x0);}},a4e);function a4c(){const at=['desc','chooseVPC','subnet','Web\x20App','Creating\x20user\x20data\x20file\x20in\x20','user-data','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','amiId','2323300mLPpRD','User\x20Data:','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','createKeyPair','Security\x20Group\x20Name:\x20[','Setting\x20SG\x20ID\x20to:\x20','2138382ZPWZpm','confirm','create-instance','Remove\x20the\x20security\x20group\x20','readFileSync','build\x20on\x20','452197mtWRcY','Security\x20Group:\x20','Create\x20new\x20AWS\x20instance','search','22,80,443','create','error','getSecurityGroups','ec2create','**\x20Available\x20AMIs\x20**','Name','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Key-Pair:\x20','forEach','ask','getConfigPath','fsi','Setting\x20the\x20key-pair\x20to:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','constructor','split','maka\x20aws:create-instance\x20<opts>','EC2\x20Name:\x20[','8467040hTdthH','environment','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','log','\x20AZONE:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1:1','\x20SGID:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','date','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ec2describeKeys','Subnet:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','ID:\x20','env','654135EvHuxQ','30gqRXWd','Setting\x20AMI\x20ID\x20to\x20','4448801RhpVbe','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','bright','getProjectConfig','\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','exit','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','**\x20Available\x20key-pairs\x20**','cider','name','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','push','string','**\x20Available\x20Security\x20Groups\x20**','deleteSecurityGroup','\x20SG\x20NAME:\x20','maka\x20aws:create-instance\x20--env\x20dev','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','number','\x20CIDR:\x20','getTime','sort','Desc','notice','success','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','isFile','toString','deleteKeyPair','amazon','338468eaYUdm','sgId','subnetId','ImageID:','\x20:\x20','parse','Instace\x20Type:\x20','(((.+)+)+)+$','\x20DESCRIPTION:\x20','unlinkSync'];a4c=function(){return at;};return a4c();}
@@ -1 +1 @@
1
- const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x8e))/0x1+parseInt(g(0x90))/0x2*(parseInt(g(0x93))/0x3)+parseInt(g(0x7e))/0x4*(parseInt(g(0x85))/0x5)+-parseInt(g(0x80))/0x6*(-parseInt(g(0x7f))/0x7)+parseInt(g(0x82))/0x8+-parseInt(g(0x84))/0x9*(parseInt(g(0x8d))/0xa)+-parseInt(g(0x8c))/0xb*(parseInt(g(0x8f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xb0165));function a5c(){const l=['17880599qarGWs','16640bedGyu','306711zRXNJo','12aatUbn','3070rRCTRb','maka\x20aws:create-key-pair\x20<opts>','toString','1365gwKcYv','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','env','4WeHaUL','7ltlFbs','1148934WdYxXK','create','9566304kbtoYv','\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','4464CqdAfS','6965575iAiDqW','apply','(((.+)+)+)+$','ckp','fsi','search','maka\x20aws:ckp\x20--env\x20prod'];a5c=function(){return l;};return a5c();}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x92)]()[i(0x8a)](i(0x87))[i(0x92)]()['constructor'](a5a)[i(0x8a)](i(0x87));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x7e;let f=c[d];return f;},a5d(a,b);}Command[a5j(0x81)]({'name':'create-key-pair','aliases':[a5j(0x88)],'usage':a5j(0x91),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a5j(0x8b)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x95)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x94),'description':a5j(0x83)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x89)]['getConfigFromShorthand'](b[k(0x95)]);c['createKeyPair']({'env':d});}catch(f){console['error'](f),process['exit'](0x0);}},a5e);
1
+ const a5i=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x119;let f=c[d];return f;},a5d(a,b);}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x11e))/0x1*(-parseInt(g(0x12e))/0x2)+parseInt(g(0x127))/0x3*(-parseInt(g(0x126))/0x4)+-parseInt(g(0x125))/0x5*(-parseInt(g(0x12c))/0x6)+parseInt(g(0x121))/0x7+-parseInt(g(0x11d))/0x8+-parseInt(g(0x11a))/0x9+-parseInt(g(0x131))/0xa*(-parseInt(g(0x12f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x46803));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a['toString']()[h(0x122)]('(((.+)+)+)+$')[h(0x129)]()[h(0x12a)](a5a)['search'](h(0x11c));});function a5c(){const k=['5JyjvQl','1348sUhIjO','2259bHpAhY','env','toString','constructor','fsi','2602128UFnHvZ','createKeyPair','1118xHdFFi','23221QarHvd','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','2150ZOOPdZ','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','4846977ochLsR','error','(((.+)+)+)+$','1024800gDEknO','373CHzPkZ','maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:create-key-pair\x20<opts>','791875zxxNDr','search','create','exit'];a5c=function(){return k;};return a5c();}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5i(0x123)]({'name':'create-key-pair','aliases':['ckp'],'usage':a5i(0x120),'examples':[a5i(0x11f),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a5i(0x128)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5i(0x130),'description':a5i(0x119)},async function(a,b){const j=a5i;try{const c=new AWS(),d=this[j(0x12b)][j(0x132)](b['env']);c[j(0x12d)]({'env':d});}catch(f){console[j(0x11b)](f),process[j(0x124)](0x0);}},a5e);
@@ -1 +1 @@
1
- const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0x1e5))/0x1*(-parseInt(m(0x1e7))/0x2)+parseInt(m(0x1e1))/0x3*(parseInt(m(0x1de))/0x4)+-parseInt(m(0x1e9))/0x5*(-parseInt(m(0x1e2))/0x6)+-parseInt(m(0x1db))/0x7*(parseInt(m(0x1d2))/0x8)+parseInt(m(0x1dc))/0x9+parseInt(m(0x1e8))/0xa*(parseInt(m(0x1f1))/0xb)+-parseInt(m(0x1f0))/0xc*(parseInt(m(0x1d7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xcf2a0));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x1d3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x1d9)]()[o(0x1e0)]('(((.+)+)+)+$')[o(0x1d9)]()['constructor'](a6a)[o(0x1e0)](o(0x1ec));});function a6c(){const r=['Security\x20Group\x20Name:\x20[','24QLABMN','979pJvdAa','28040jzLCKc','apply','split','exit','name','7707661BfdPUb','ec2createSG','toString','error','2345YFBTyx','11576295NpJJoC','22,80,443','103060JjLZxf','create','search','75gZWdlB','24PkZHhu','create-security-group','chooseVPC','3msduyj','maka\x20aws\x20create-security-group','47948ZQIcHA','70430FKpkTG','724230CUNddd','csg','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','(((.+)+)+)+$','Web\x20App','maka\x20aws:create-secuirty-group'];a6c=function(){return r;};return a6c();}a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6p(0x1df)]({'name':a6p(0x1e3),'aliases':[a6p(0x1ea)],'usage':a6p(0x1e6),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':'\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','examples':[a6p(0x1ee),'maka\x20aws:csg']},async function(a,b){const q=a6p;try{const c=new AWS(),d=this['fsi']['getProjectConfig'](),{appName:f}=d,g=await c[q(0x1e4)](),h=b[q(0x1d6)]?b['name']:''+f,i=await Actions['ask'](q(0x1ef)+h+']')||h,j=await Actions['ask'](q(0x1eb))||q(0x1dd),k=j[q(0x1d4)](',');k['forEach'](l=>{if(!l['match'](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[q(0x1d8)]({'description':q(0x1ed),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x1da)](l),process[q(0x1d5)](0x1);}},a6e);
1
+ function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x102;let f=c[d];return f;},a6d(a,b);}const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0x102))/0x1+-parseInt(m(0x103))/0x2*(-parseInt(m(0x107))/0x3)+-parseInt(m(0x11a))/0x4+-parseInt(m(0x106))/0x5+parseInt(m(0x116))/0x6*(-parseInt(m(0x104))/0x7)+-parseInt(m(0x108))/0x8+-parseInt(m(0x11c))/0x9*(-parseInt(m(0x10e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xc1ffc));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x119)]()[o(0x10a)]('(((.+)+)+)+$')['toString']()[o(0x10b)](a6a)[o(0x10a)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a6c(){const s=['split','maka\x20aws:csg','207520fetmNm','create-security-group','create','match','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','error','List\x20is\x20not\x20all\x20numbers','fsi','12HUjtHt','maka\x20aws:create-secuirty-group','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','toString','1518484EzXXkg','chooseVPC','1719hPdqKe','ask','apply','398830wOpNfI','2HYSTEK','3534895qWPaTb','name','1670760DuGcNQ','1079091uYgKyJ','11249088lhzlpk','\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','search','constructor'];a6c=function(){return s;};return a6c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6p(0x110)]({'name':a6p(0x10f),'aliases':['csg'],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x112),'description':a6p(0x109),'examples':[a6p(0x117),a6p(0x10d)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x115)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x11b)](),h=b[q(0x105)]?b[q(0x105)]:''+f,i=await Actions[q(0x11d)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x11d)](q(0x118))||'22,80,443',k=j[q(0x10c)](',');k['forEach'](l=>{const r=q;if(!l[r(0x111)](/^\d+$/))throw r(0x114);}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x113)](l),process['exit'](0x1);}},a6e);
@@ -1 +1 @@
1
- const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0xc9))/0x1+-parseInt(f(0xcb))/0x2+-parseInt(f(0xd5))/0x3+parseInt(f(0xdc))/0x4*(-parseInt(f(0xd4))/0x5)+-parseInt(f(0xd3))/0x6+parseInt(f(0xd8))/0x7*(-parseInt(f(0xd6))/0x8)+parseInt(f(0xda))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x3d142));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0xce)]()[h(0xd1)]('(((.+)+)+)+$')[h(0xce)]()[h(0xd9)](a7a)[h(0xd1)](h(0xcc));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7i(0xdb),'aliases':['di'],'usage':a7i(0xca),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0xcf),'examples':['maka\x20aws:describe-instances',a7i(0xd7)],'description':a7i(0xd0)},async function(){const j=a7i;try{const a=new AWS();a[j(0xcd)]();}catch(b){console['error'](b),process['exit'](0x0);}},a7e);function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xc9;let f=c[d];return f;},a7d(a,b);}function a7c(){const k=['search','apply','468540PWpvdk','37085ZYVASx','509733uPDYMu','221192vBDcKg','maka\x20aws:di','105rRiDBn','constructor','12394440vPUBpT','describe-instances','188xHgEVB','67512SlIIPW','maka\x20aws:describe-instances','96270XFYNfq','(((.+)+)+)+$','ec2describeInstances','toString','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','\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'];a7c=function(){return k;};return a7c();}
1
+ const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0x87))/0x1+parseInt(f(0x7d))/0x2*(parseInt(f(0x7b))/0x3)+-parseInt(f(0x78))/0x4+-parseInt(f(0x79))/0x5+-parseInt(f(0x74))/0x6*(parseInt(f(0x84))/0x7)+parseInt(f(0x7e))/0x8+-parseInt(f(0x83))/0x9*(-parseInt(f(0x76))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x84586));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x7c)]()[h(0x86)](h(0x77))[h(0x7c)]()['constructor'](a7a)[h(0x86)](h(0x77));});a7a();function a7c(){const k=['Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','578913XjStyf','toString','6VotZca','3819608Rzwagw','ec2describeInstances','maka\x20aws:di','maka\x20aws:describe-instances','describe-instances','1098459SExoMN','55293pIpQev','\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','search','417027FmqMLq','apply','create','12LdjkSh','exit','60zFxYMc','(((.+)+)+)+$','574484CkOnwJ','3350690ewzAyW'];a7c=function(){return k;};return a7c();}import a7e from'./aws.command.js';import{Command}from'../../command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x73;let f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x73)]({'name':a7i(0x82),'aliases':['di'],'usage':a7i(0x81),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x7a),'examples':[a7i(0x81),a7i(0x80)],'description':a7i(0x85)},async function(){const j=a7i;try{const a=new AWS();a[j(0x7f)]();}catch(b){console['error'](b),process[j(0x75)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=parseInt(f(0xf1))/0x1*(-parseInt(f(0xf0))/0x2)+parseInt(f(0xfc))/0x3*(-parseInt(f(0xf4))/0x4)+-parseInt(f(0xe7))/0x5+parseInt(f(0xf7))/0x6+parseInt(f(0xf5))/0x7*(-parseInt(f(0xe9))/0x8)+-parseInt(f(0xea))/0x9*(parseInt(f(0xfb))/0xa)+parseInt(f(0xf8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xcafe5));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0xeb)]()[h(0xe8)](h(0xed))['toString']()[h(0xf6)](a8a)[h(0xe8)]('(((.+)+)+)+$');});a8a();function a8c(){const k=['create','(((.+)+)+)+$','apply','describe-key-pairs','334umnyTZ','8938KgHppG','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','maka\x20aws:describe-key-pairs','1760656qRkgHR','6557453jlaJNu','constructor','3886974LNpUGE','45993673NUtqAB','maka\x20aws:dkp','ec2describeKeys','86810MPyhBG','3NbOhHw','error','2037495KaZGmG','search','8ftrBQZ','747nhIVzj','toString'];a8c=function(){return k;};return a8c();}import a8e from'./aws.command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xe6;let f=c[d];return f;},a8d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0xec)]({'name':a8i(0xef),'aliases':['dkp'],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0xf2),'examples':[a8i(0xf3),a8i(0xf9)]},async function(){const j=a8i;try{const a=new AWS();a[j(0xfa)]();}catch(b){console[j(0xe6)](b),process['exit'](0x0);}},a8e);
1
+ const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0xc3))/0x1*(parseInt(f(0xc2))/0x2)+-parseInt(f(0xc7))/0x3+parseInt(f(0xbb))/0x4*(-parseInt(f(0xc5))/0x5)+parseInt(f(0xbc))/0x6+-parseInt(f(0xbe))/0x7*(-parseInt(f(0xb3))/0x8)+-parseInt(f(0xb4))/0x9+parseInt(f(0xbf))/0xa*(parseInt(f(0xb5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x4547c));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a['toString']()[h(0xc6)](h(0xb6))['toString']()[h(0xba)](a8a)[h(0xc6)](h(0xb6));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xb3;let f=c[d];return f;},a8d(a,b);}function a8c(){const k=['12940430qUSWta','maka\x20aws:describe-key-pairs','apply','724BdiajU','1330AyuODQ','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','20TPRZNb','search','1615752gEvDue','describe-key-pairs','16IhvfrA','2063484wDsWmm','11hfJILu','(((.+)+)+)+$','create','maka\x20aws:dkp','ec2describeKeys','constructor','133600adMKSi','732162yVCqMD','exit','877177iRNSVp'];a8c=function(){return k;};return a8c();}Command[a8i(0xb7)]({'name':a8i(0xc8),'aliases':['dkp'],'usage':a8i(0xc0),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0xc4),'examples':[a8i(0xc0),a8i(0xb8)]},async function(){const j=a8i;try{const a=new AWS();a[j(0xb9)]();}catch(b){console['error'](b),process[j(0xbd)](0x0);}},a8e);
@@ -1 +1 @@
1
- const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=parseInt(l(0x204))/0x1+-parseInt(l(0x206))/0x2*(-parseInt(l(0x201))/0x3)+-parseInt(l(0x200))/0x4*(parseInt(l(0x1f7))/0x5)+-parseInt(l(0x1fd))/0x6+-parseInt(l(0x209))/0x7+-parseInt(l(0x1ee))/0x8*(-parseInt(l(0x1fb))/0x9)+parseInt(l(0x1ea))/0xa*(parseInt(l(0x1f2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x1b6af));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0x212)]()[n(0x1ef)]('(((.+)+)+)+$')[n(0x212)]()[n(0x210)](a9a)[n(0x1ef)](n(0x1f5));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a9d(a,b);}a9a();import a9e from'./aws.command.js';function a9c(){const s=['toString','Not\x20deleting\x20secuirty\x20group','270GPkVPR','\x20SGID:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','create','349360dbwHZJ','search','exit','ID:\x20','10131Krsqor','apply','\x20SG\x20NAME:\x20','(((.+)+)+)+$','maka\x20aws:dsg','5kdsxot','error','confirm','success','27RdAVrR','deleteSecurityGroup','1180026ieMYeb','delete-security-group','isMakaProject','361876rNepIB','510060hxkWro','maka\x20aws:delete-sg','name','109137WddUHp','includes','2InSWbL','notice','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','249137WnCymS','sgId','ask','forEach','getSecurityGroups','bright','Deleting\x20a\x20','constructor','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC'];a9c=function(){return s;};return a9c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a9o(0x1ed)]({'name':a9o(0x1fe),'aliases':['dsg'],'usage':a9o(0x202),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x211),'examples':[a9o(0x202),a9o(0x1f6)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1ff)]();let d='';if(c){const j=b['getProjectConfig']();d=j['appName'];}const {sgList:f}=await a[p(0x20d)]();f[p(0x20c)](function(k){const q=p;c&&k[q(0x203)][q(0x205)](d)?Log[q(0x207)](q(0x1f1)+k['id']+q(0x1f4)+k[q(0x203)]+q(0x1eb)+k['sgId']):Log[q(0x20e)]('ID:\x20'+k['id']+q(0x1f4)+k['name']+'\x20SGID:\x20'+k[q(0x20a)]);});let g='';const h=await Actions[p(0x20b)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x20c)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x20a)]);});if(!g)throw Log['error'](p(0x1ec));const i=await Actions[p(0x1f9)](p(0x20f)+g+p(0x208),![]);i?(await a[p(0x1fc)](g),Log[p(0x1fa)]('Deleted\x20'+g)):Log[p(0x1f8)](p(0x213)),process[p(0x1f0)](0x0);}catch(k){process[p(0x1f0)](0x1);}},a9e);
1
+ const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(0x139))/0x1+-parseInt(l(0x14a))/0x2+parseInt(l(0x156))/0x3+-parseInt(l(0x155))/0x4+-parseInt(l(0x151))/0x5+-parseInt(l(0x140))/0x6*(parseInt(l(0x148))/0x7)+parseInt(l(0x149))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x88c4b));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0x144)]()['search'](n(0x136))[n(0x144)]()['constructor'](a9a)['search'](n(0x136));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x135;let f=c[d];return f;},a9d(a,b);}function a9c(){const s=['226239pKOOlf','ask','(((.+)+)+)+$','create','confirm','226863TkOGUY','maka\x20aws:delete-sg','forEach','maka\x20aws:dsg','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','apply','\x20SGID:\x20','12xTpriy','appName','dsg','error','toString','notice','sgId','ID:\x20','3044797zhsNGF','31068656BOljeY','2182198gMzAIL','Deleting\x20a\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','bright','includes','\x20SG\x20NAME:\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','1073170BikjqJ','name','isMakaProject','Deleted\x20','3985016wNzLxu'];a9c=function(){return s;};return a9c();}Command[a9o(0x137)]({'name':'delete-security-group','aliases':[a9o(0x142)],'usage':a9o(0x13a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a9o(0x13a),a9o(0x13c)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b[p(0x153)]();let d='';if(c){const j=b['getProjectConfig']();d=j[p(0x141)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0x13b)](function(k){const q=p;c&&k[q(0x152)][q(0x14e)](d)?Log[q(0x145)]('ID:\x20'+k['id']+q(0x14f)+k[q(0x152)]+q(0x13f)+k['sgId']):Log[q(0x14d)](q(0x147)+k['id']+q(0x14f)+k[q(0x152)]+q(0x13f)+k[q(0x146)]);});let g='';const h=await Actions[p(0x135)](p(0x13d));f[p(0x13b)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x146)]);});if(!g)throw Log[p(0x143)](p(0x14c));const i=await Actions[p(0x138)](p(0x14b)+g+p(0x150),![]);i?(await a['deleteSecurityGroup'](g),Log['success'](p(0x154)+g)):Log[p(0x143)]('Not\x20deleting\x20secuirty\x20group'),process['exit'](0x0);}catch(k){process['exit'](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xbf))/0x1+parseInt(f(0xaf))/0x2+-parseInt(f(0xc1))/0x3+parseInt(f(0xa9))/0x4+-parseInt(f(0xb3))/0x5+-parseInt(f(0xc3))/0x6*(-parseInt(f(0xc4))/0x7)+parseInt(f(0xb2))/0x8*(-parseInt(f(0xb9))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9b35d));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xb8)]()['search'](h(0xbb))[h(0xb8)]()['constructor'](a10a)[h(0xb0)](h(0xbb));});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 a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xa9;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';function a10c(){const k=['name','exit','running','Reboot\x20an\x20EC2\x20instance','toString','15970707xpzrmL','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','(((.+)+)+)+$','instanceId','error','ec2rebootInstance','829036WagMlg','reboot-instance','696582DLzsan','maka\x20aws:rbi','2800212YtQwgC','7PIseaU','3201540FYdKVE','rbi','\x20is\x20still\x20running.','apply','maka\x20aws:reboot-instance','status','1362366stbAPJ','search','create','8OyXrwN','674240BCpDKU'];a10c=function(){return k;};return a10c();}Command[a10i(0xb1)]({'name':a10i(0xc0),'aliases':[a10i(0xaa)],'usage':a10i(0xad),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xb7),'examples':[a10i(0xad),a10i(0xc2)]},async function(){const j=a10i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0xae)]===j(0xb6)){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+'\x20Ready?');c&&b['instanceId']?a[j(0xbe)]({'instanceId':b[j(0xbc)]}):Log[j(0xbd)](j(0xba)+b[j(0xb4)]+j(0xab));}else Log[j(0xbd)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[j(0xbd)](d),process[j(0xb5)](0x0);}},a10e);
1
+ function a10c(){const j=['maka\x20aws:rbi','toString','ec2rebootInstance','176632KCuByV','maka\x20aws:reboot-instance','6539HUsDAG','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','1441ErXGgN','20120raYoDx','10ToiagU','confirm','162281zcAQdn','2066319iHaSfL','error','reboot-instance','238764qpjrQC','\x20Ready?','create','(((.+)+)+)+$','\x20is\x20still\x20running.','running','name','15wFPqZY','3zFoDbL','Reboot\x20an\x20EC2\x20instance','rbi','search','constructor','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','instanceId','29662wLjVNz','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','chooseInstance','15720QlscQP','64EhFwZB'];a10c=function(){return j;};return a10c();}const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x176))/0x1*(-parseInt(f(0x161))/0x2)+parseInt(f(0x16f))/0x3*(-parseInt(f(0x17e))/0x4)+parseInt(f(0x16e))/0x5*(-parseInt(f(0x167))/0x6)+-parseInt(f(0x163))/0x7*(parseInt(f(0x17a))/0x8)+-parseInt(f(0x164))/0x9+parseInt(f(0x160))/0xa*(parseInt(f(0x15f))/0xb)+parseInt(f(0x179))/0xc*(parseInt(f(0x15d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x2fc0d));function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x15d;let f=c[d];return f;},a10d(a,b);}const a10b=(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;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0x17c)]()[g(0x172)](g(0x16a))[g(0x17c)]()[g(0x173)](a10a)[g(0x172)](g(0x16a));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10h(0x169)]({'name':a10h(0x166),'aliases':[a10h(0x171)],'usage':a10h(0x17f),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10h(0x170),'examples':['maka\x20aws:reboot-instance',a10h(0x17b)]},async function(){const i=a10h;try{const a=new AWS(),b=await a[i(0x178)]();if(b?.['status']===i(0x16c)){const c=await Actions[i(0x162)](i(0x174)+b[i(0x16d)]+i(0x168));c&&b[i(0x175)]?a[i(0x17d)]({'instanceId':b[i(0x175)]}):Log[i(0x165)](i(0x15e)+b['name']+i(0x16b));}else Log[i(0x165)](i(0x177));}catch(d){console['error'](d),process['exit'](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x18b))/0x1*(parseInt(h(0x194))/0x2)+parseInt(h(0x186))/0x3*(parseInt(h(0x196))/0x4)+-parseInt(h(0x19a))/0x5+-parseInt(h(0x183))/0x6*(parseInt(h(0x193))/0x7)+-parseInt(h(0x18a))/0x8*(parseInt(h(0x19b))/0x9)+parseInt(h(0x187))/0xa*(-parseInt(h(0x19c))/0xb)+parseInt(h(0x18c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xe1d00));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0x18d)]()['search'](j(0x191))[j(0x18d)]()['constructor'](a11a)['search'](j(0x191));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11c(){const n=['Deleting\x20a\x20','(((.+)+)+)+$','Not\x20deleting\x20keypair','833XUceEk','3390OVZSlh','maka\x20aws:rkp','2993564cISTeL','remove-key-pair','\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','confirm','6366310CaiiMh','27YoKRol','99pEAUdg','rkp','ask','success','create','name','35838mRaFHr','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','exit','6INyYHn','1498110mkiTuk','apply','maka\x20aws:remove-key-pair','4043672ACtheR','775tZuZEq','35558952gKFkGX','toString','Deleted\x20','error'];a11c=function(){return n;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x182;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a11k(0x1a0)]({'name':a11k(0x197),'aliases':[a11k(0x19d)],'usage':a11k(0x189),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a11k(0x198),'examples':[a11k(0x189),a11k(0x195)]},async function(){const l=a11k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c;const d=await Actions[l(0x19e)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.['forEach'](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x182)]);});if(!c)throw Log[l(0x18f)](l(0x184));const f=await Actions[l(0x199)](l(0x190)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a['deleteKeyPair'](c),Log[l(0x19f)](l(0x18e)+c)):Log['error'](l(0x192)),process['exit'](0x0);}catch(g){process[l(0x185)](0x1);}},a11e);
1
+ const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=-parseInt(h(0xa0))/0x1+-parseInt(h(0xa1))/0x2+parseInt(h(0x96))/0x3*(-parseInt(h(0x9f))/0x4)+parseInt(h(0x94))/0x5*(-parseInt(h(0x93))/0x6)+parseInt(h(0xa4))/0x7*(parseInt(h(0xa7))/0x8)+-parseInt(h(0xa6))/0x9*(parseInt(h(0x97))/0xa)+parseInt(h(0x9d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xb4b11));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0xa2)]()[j(0x8c)]('(((.+)+)+)+$')[j(0xa2)]()[j(0x9a)](a11a)['search'](j(0x8b));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const n=['76WjblaS','463716CeHyoJ','2444204TZSgiZ','toString','forEach','7HbULBp','name','896355wqGREC','561832DrfJIH','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ask','maka\x20aws:remove-key-pair','(((.+)+)+)+$','search','Deleting\x20a\x20','deleteKeyPair','error','apply','Not\x20deleting\x20keypair','exit','138GFGnVe','219690yVfcZH','remove-key-pair','228399DZMjrN','20ORDUXu','ec2describeKeys','create','constructor','Deleted\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','55131923PIiyjN','maka\x20aws:rkp'];a11c=function(){return n;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x8a;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a11k(0x99)]({'name':a11k(0x95),'aliases':['rkp'],'usage':a11k(0x8a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','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':[a11k(0x8a),a11k(0x9e)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0x98)]();let c;const d=await Actions[l(0xa9)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0xa3)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xa5)]);});if(!c)throw Log[l(0x8f)](l(0x9c));const f=await Actions['confirm'](l(0x8d)+c+l(0xa8),![]);f?(a[l(0x8e)](c),Log['success'](l(0x9b)+c)):Log[l(0x8f)](l(0x91)),process['exit'](0x0);}catch(g){process[l(0x92)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x10b))/0x1+parseInt(l(0x10f))/0x2+-parseInt(l(0x110))/0x3*(-parseInt(l(0x11d))/0x4)+-parseInt(l(0x103))/0x5*(-parseInt(l(0x12f))/0x6)+-parseInt(l(0x10e))/0x7*(-parseInt(l(0x114))/0x8)+parseInt(l(0x130))/0x9*(parseInt(l(0x120))/0xa)+-parseInt(l(0x10a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x6cade));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a['toString']()[n(0x105)](n(0x131))[n(0x119)]()[n(0x108)](a12a)['search'](n(0x131));});function a12c(){const q=['1948554NpEjyh','(((.+)+)+)+$','utf8','\x0aSaved\x20host\x20','ask','cat\x20','20FjXMDK','sep','search','maka\x20aws:sth\x20--env\x20prod','sth','constructor','public','33843645lQdmOW','642149NafGqj','env','apply','7MNbeag','970220cSIRfQ','3uoXMDu','getConfigPath','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','isFile','5096008kwegqp','readFileSync','stringify','publicIp','parse','toString','ssh.json','getProjectConfig','privateIp','3325492Pfzvwj','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','chooseInstance','40SJMPYx','success','template','\x20IP\x20to\x20','fsi','create','set-host','host','appName','error','inherit','join','private','exit','config/ssh.json','90282vnwHWw'];a12c=function(){return q;};return a12c();}a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x100;let f=c[d];return f;},a12d(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[a12o(0x125)]({'name':a12o(0x126),'aliases':[a12o(0x107)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a12o(0x10c)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x112),'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':['maka\x20aws:set-host\x20--env\x20dev',a12o(0x106)]},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x124)][p(0x111)](b['env']),f=this[p(0x124)][p(0x11b)](),g=await c[p(0x11f)](),h=a12e[p(0x12b)](d,'ssh.json');!this[p(0x124)][p(0x113)](h)&&await this['fsi'][p(0x122)]({'srcPath':p(0x12e),'destPath':h,'context':{'app':f[p(0x128)]},'config':f});const i=JSON[p(0x118)](a12f[p(0x115)](h,p(0x132))),j=await Actions[p(0x101)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||p(0x109);if(j){if(j==='public'||j===p(0x12c)){if(j===p(0x109))i[p(0x127)]=g?.[p(0x117)];else j==='private'&&(i[p(0x127)]=g?.[p(0x11c)]);}else throw p(0x11e);}else i[p(0x127)]=g?.[p(0x11c)];a12f['writeFileSync'](a12e[p(0x12b)](d,p(0x11a)),JSON[p(0x116)](i,null,0x2)),execSync(p(0x102)+a12e[p(0x12b)](d,p(0x11a)),{'stdio':p(0x12a)}),Log[p(0x121)](p(0x100)+j+p(0x123)+d+a12e[p(0x104)]+p(0x11a));}catch(k){console[p(0x129)](k),process[p(0x12d)](0x0);}},a12g);
1
+ const a12n=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x1e6))/0x1+parseInt(l(0x1ef))/0x2+-parseInt(l(0x1e3))/0x3*(parseInt(l(0x1df))/0x4)+parseInt(l(0x1e1))/0x5+parseInt(l(0x1f6))/0x6*(-parseInt(l(0x1ec))/0x7)+parseInt(l(0x1d5))/0x8+parseInt(l(0x1f7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x82488));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(0x1d7)]()['search'](m(0x1eb))[m(0x1d7)]()[m(0x1ee)](a12a)[m(0x1e5)](m(0x1eb));});a12a();function a12c(){const p=['constructor','629242jzweIB','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','inherit','stringify','sth','sep','getProjectConfig','144ZWOYUs','1756161xvjdPM','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','join','private','maka\x20aws:sth\x20--env\x20prod','host','exit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','config/ssh.json','3849656olARjg','ask','toString','set-host','publicIp','getConfigPath','public','privateIp','appName','cat\x20','36764cCzddC','ssh.json','3271165AtSynh','\x0aSaved\x20host\x20','327qgbfZK','parse','search','232365pulawP','chooseInstance','env','\x20IP\x20to\x20','fsi','(((.+)+)+)+$','99778LVWJbt','writeFileSync'];a12c=function(){return p;};return a12c();}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-0x1d3;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12n(0x1d8),'aliases':[a12n(0x1f3)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12n(0x1f0),'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':['maka\x20aws:set-host\x20--env\x20dev',a12n(0x1fb)]},async function(a,b){const o=a12n;try{const c=new AWS(),d=this[o(0x1ea)][o(0x1da)](b[o(0x1e8)]),f=this['fsi'][o(0x1f5)](),g=await c[o(0x1e7)](),h=a12e[o(0x1f9)](d,'ssh.json');!this[o(0x1ea)]['isFile'](h)&&await this[o(0x1ea)]['template']({'srcPath':o(0x1d4),'destPath':h,'context':{'app':f[o(0x1dd)]},'config':f});const i=JSON[o(0x1e4)](a12f['readFileSync'](h,'utf8')),j=await Actions[o(0x1d6)](o(0x1d3))||o(0x1db);if(j){if(j===o(0x1db)||j===o(0x1fa)){if(j===o(0x1db))i['host']=g?.[o(0x1d9)];else j===o(0x1fa)&&(i['host']=g?.['privateIp']);}else throw o(0x1f8);}else i[o(0x1fc)]=g?.[o(0x1dc)];a12f[o(0x1ed)](a12e[o(0x1f9)](d,o(0x1e0)),JSON[o(0x1f2)](i,null,0x2)),execSync(o(0x1de)+a12e[o(0x1f9)](d,o(0x1e0)),{'stdio':o(0x1f1)}),Log['success'](o(0x1e2)+j+o(0x1e9)+d+a12e[o(0x1f4)]+o(0x1e0));}catch(k){console['error'](k),process[o(0x1fd)](0x0);}},a12g);
@@ -1 +1 @@
1
- const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x15d))/0x1+-parseInt(f(0x168))/0x2+parseInt(f(0x15b))/0x3*(parseInt(f(0x15f))/0x4)+parseInt(f(0x169))/0x5*(parseInt(f(0x15a))/0x6)+-parseInt(f(0x167))/0x7+parseInt(f(0x15e))/0x8*(-parseInt(f(0x161))/0x9)+-parseInt(f(0x166))/0xa*(-parseInt(f(0x173))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xbd50c));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(0x162)]()[g(0x164)](g(0x16f))['toString']()[g(0x163)](a13a)[g(0x164)](g(0x16f));});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x158;let f=c[d];return f;},a13d(a,b);}function a13c(){const j=['3926839USQjAk','1896004ATutAQ','4975axpCiz','instanceId','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','create','maka\x20aws:terminate-instance','(((.+)+)+)+$','error','running','\x20Ready?','33vFbPjh','maka\x20aws:ti','Terminate\x20an\x20EC2\x20instance','\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','1614yPpNff','3bSRRNx','terminate-instance','1343688GQbXdP','1233016JUzlpg','269184zdyeYb','ec2terminateInstance','9emImuB','toString','constructor','search','name','11490930YtcSub'];a13c=function(){return j;};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';Command[a13h(0x16d)]({'name':a13h(0x15c),'aliases':['ti'],'usage':a13h(0x16e),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13h(0x158),'description':a13h(0x159),'examples':[a13h(0x16e),a13h(0x174)]},async function(){const i=a13h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[i(0x16a)]&&b?.['status']===i(0x171)){const c=await Actions['confirm']('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0x165)]+i(0x172));c?a[i(0x160)]({'instanceId':b['instanceId']}):Log[i(0x170)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[i(0x165)]+i(0x16c));}else Log['error'](i(0x16b));}catch(d){console[i(0x170)](d),process['exit'](0x0);}},a13e);
1
+ const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0x1a5))/0x1*(-parseInt(f(0x1a0))/0x2)+-parseInt(f(0x19a))/0x3+parseInt(f(0x19e))/0x4+parseInt(f(0x1a4))/0x5*(parseInt(f(0x1a2))/0x6)+parseInt(f(0x198))/0x7*(-parseInt(f(0x1ab))/0x8)+-parseInt(f(0x1a7))/0x9*(-parseInt(f(0x1a9))/0xa)+-parseInt(f(0x1b4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xa1977));function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x195;let f=c[d];return f;},a13d(a,b);}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(0x1a8)]()[g(0x1ac)](g(0x19c))['toString']()[g(0x19d)](a13a)['search']('(((.+)+)+)+$');});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';Command[a13h(0x1b1)]({'name':a13h(0x195),'aliases':['ti'],'usage':a13h(0x1b2),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13h(0x1ae),'description':a13h(0x1b3),'examples':[a13h(0x1b2),a13h(0x1af)]},async function(){const i=a13h;try{const a=new AWS(),b=await a[i(0x1a1)]();if(b?.[i(0x19b)]&&b?.['status']===i(0x199)){const c=await Actions[i(0x1b0)](i(0x197)+b[i(0x1a3)]+i(0x1aa));c?a[i(0x196)]({'instanceId':b[i(0x19b)]}):Log[i(0x1ad)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b['name']+i(0x19f));}else Log['error'](i(0x1a6));}catch(d){console[i(0x1ad)](d),process['exit'](0x0);}},a13e);function a13c(){const j=['error','Terminate\x20an\x20EC2\x20instance','maka\x20aws:ti','confirm','create','maka\x20aws:terminate-instance','\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','7953946qPhWcB','terminate-instance','ec2terminateInstance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','56xkRvJc','running','93480mVOLwy','instanceId','(((.+)+)+)+$','constructor','2061056TOtklg','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','2Zcpurc','chooseInstance','90ZLgezb','name','386585mjEJXu','1321581cRpjEC','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','11735487rYocZK','toString','10ZQgiGV','\x20Ready?','241256aiNYSB','search'];a13c=function(){return j;};return a13c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a14d,c=a();while(!![]){try{var d=-parseInt(f(0x1e1))/0x1+-parseInt(f(0x1eb))/0x2+parseInt(f(0x1e4))/0x3+-parseInt(f(0x1ec))/0x4*(-parseInt(f(0x1ea))/0x5)+-parseInt(f(0x1e2))/0x6+-parseInt(f(0x1e5))/0x7*(-parseInt(f(0x1ee))/0x8)+-parseInt(f(0x1e8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x89573));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x1ed)]()['search']('(((.+)+)+)+$')[h(0x1ed)]()[h(0x1e3)](a14a)[h(0x1e9)](h(0x1e7));});function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x1e1;var f=c[d];return f;},a14d(a,b);}a14a();import'./build.js';import'./docker.sub.cmd.js';function a14c(){var i=['1358847zERSnU','21KBMhxs','apply','(((.+)+)+)+$','9655065VAsKhp','search','3813415rQafTJ','313184cdVPgw','4XMWoZR','toString','2783288RyVNAF','359638dLbxBJ','646818RfeQyX','constructor'];a14c=function(){return i;};return a14c();}
1
+ (function(a,b){var f=a14d,c=a();while(!![]){try{var d=-parseInt(f(0xc9))/0x1*(-parseInt(f(0xd6))/0x2)+-parseInt(f(0xd5))/0x3+parseInt(f(0xd1))/0x4*(parseInt(f(0xcc))/0x5)+-parseInt(f(0xd2))/0x6*(parseInt(f(0xd8))/0x7)+-parseInt(f(0xd7))/0x8*(parseInt(f(0xd0))/0x9)+parseInt(f(0xd3))/0xa*(parseInt(f(0xd4))/0xb)+-parseInt(f(0xca))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xf30d9));function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0xc8;var f=c[d];return f;},a14d(a,b);}var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a['toString']()[h(0xce)](h(0xcf))[h(0xcb)]()[h(0xc8)](a14a)[h(0xce)](h(0xcf));});a14a();import'./build.js';function a14c(){var i=['toString','62555arvbLI','apply','search','(((.+)+)+)+$','5513337aczaJZ','228PSnuqy','6NQICsa','10ipXOVS','18776758vwFXOn','2770533fcdebC','170YpiuZj','8IsgBac','3495737YnOZoQ','constructor','22897CpLpmh','16023720xTKARq'];a14c=function(){return i;};return a14c();}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a15r=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=-parseInt(p(0xb0))/0x1*(-parseInt(p(0xc8))/0x2)+parseInt(p(0xc9))/0x3+parseInt(p(0xb4))/0x4*(-parseInt(p(0xc7))/0x5)+parseInt(p(0xcc))/0x6*(parseInt(p(0xae))/0x7)+-parseInt(p(0xc1))/0x8+-parseInt(p(0xd2))/0x9+parseInt(p(0xca))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x532ef));const a15b=(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;};}()),a15a=a15b(this,function(){const q=a15d;return a15a[q(0xc3)]()[q(0xb5)](q(0xaf))[q(0xc3)]()[q(0xb9)](a15a)[q(0xb5)](q(0xaf));});a15a();function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xa9;let f=c[d];return f;},a15d(a,b);}import a15e from'path';import a15f from'fs';import a15g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a15c(){const u=['update','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','join','forEach','2638704cNwpgl','getProjectMeteorVersion','toString','This\x20project\x27s\x20meteor\x20version\x20(','force','maka\x20build','413815DMUvFd','76878hsvDNB','339675tRGfTW','7288280uooejm','build','36mVTIRe','exit','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','runSubCommand','invokeMeteorCommand','\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','4184955KfdsNa','maka\x20build\x20<opts>','--force','--release',').\x20Update?',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','518147YwUnMf','(((.+)+)+)+$','9ZNEdJu','existsSync','debug','splice','24fSkEuk','search','confirm','getGlobalMeteorVersion','error','constructor','app.tar.gz','maka\x20build:docker','fsi'];a15c=function(){return u;};return a15c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a15r(0xcb),'usage':a15r(0xa9),'validOpts':['force',a15r(0xb2)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15r(0xbe),'mustBeInMakaProject':!![],'description':a15r(0xd1),'examples':[a15r(0xc6),a15r(0xbb)]},async function(a,b){const s=a15r;try{const c=a[0x0],d=this['findSubCommand'](c);if(d)this[s(0xcf)](c,a,b);else{const f=b[s(0xc5)];if(!f){const i=this[s(0xbc)][s(0xb7)](),j=this[s(0xbc)][s(0xc2)](),k=a15g['gt'](i,j);if(k){const l=await Actions[s(0xb6)](s(0xc4)+j+s(0xad)+i+s(0xac));l&&this[s(0xbc)][s(0xd0)](s(0xbd),[s(0xab),i]);}}const g=[this[s(0xbc)]['pathFromProject']({'pathParts':[s(0xcb)]})]['concat'](process['argv']['slice'](0x3)),h=a15e[s(0xbf)](this['fsi']['pathFromProject']({}),s(0xcb),s(0xba));if(a15f[s(0xb1)](h)){const m=f??await Actions[s(0xb6)](s(0xce));if(!m)throw Log[s(0xb8)]('Aborted.');}g[s(0xc0)]((n,o)=>{const t=s;n===t(0xaa)&&g[t(0xb3)](o,0x2);}),this[s(0xbc)][s(0xd0)](s(0xcb),g);}}catch(n){console[s(0xb8)](n),process[s(0xcd)](0x0);}});export default BuildCommand;
1
+ const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0xfd))/0x1*(parseInt(p(0x104))/0x2)+-parseInt(p(0x10f))/0x3*(-parseInt(p(0x10a))/0x4)+parseInt(p(0xf9))/0x5+-parseInt(p(0x101))/0x6+-parseInt(p(0xfc))/0x7+parseInt(p(0x110))/0x8*(-parseInt(p(0xf4))/0x9)+-parseInt(p(0x100))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x37cfd));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x103)]()[r(0x112)](r(0x113))[r(0x103)]()[r(0x114)](a15a)['search'](r(0x113));});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a15s(0xf3)]({'name':a15s(0x10d),'usage':a15s(0xf8),'validOpts':[a15s(0x116),a15s(0x11a)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0xfe),'mustBeInMakaProject':!![],'description':a15s(0x10b),'examples':['maka\x20build',a15s(0xff)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x119)](c);if(d)this[t(0x106)](c,a,b);else{const f=b['force'];if(!f){const i=this[t(0x107)][t(0x11b)](),j=this[t(0x107)][t(0xf6)](),k=a15g['gt'](i,j);if(k){const l=await Actions['confirm'](t(0x10c)+j+t(0x11e)+i+').\x20Update?');l&&this['fsi'][t(0xfa)]('update',['--release',i]);}}const g=[this[t(0x107)][t(0xf5)]({'pathParts':[t(0x10d)]})][t(0x11d)](process['argv'][t(0x115)](0x3)),h=a15e[t(0x111)](this[t(0x107)][t(0xf5)]({}),'build',t(0x118));if(a15f['existsSync'](h)){const m=f??await Actions[t(0x109)](t(0x102));if(!m)throw Log[t(0x10e)](t(0x11c));}g[t(0x117)]((n,o)=>{const u=t;n===u(0x108)&&g[u(0xfb)](o,0x2);}),this['fsi'][t(0xfa)](t(0x10d),g);}}catch(n){console[t(0x10e)](n),process[t(0xf7)](0x0);}});export default BuildCommand;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xf3;let f=c[d];return f;},a15d(a,b);}function a15c(){const v=['372840geVRBM','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','toString','593806zhLDzb','apply','runSubCommand','fsi','--force','confirm','122308rUoKAj','\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','This\x20project\x27s\x20meteor\x20version\x20(','build','error','39ZYURIy','3384bjVoAm','join','search','(((.+)+)+)+$','constructor','slice','force','forEach','app.tar.gz','findSubCommand','debug','getGlobalMeteorVersion','Aborted.','concat',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','create','7119mbpyud','pathFromProject','getProjectMeteorVersion','exit','maka\x20build\x20<opts>','1831385kCDzvz','invokeMeteorCommand','splice','2993389ckUCyz','1xqxabv','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','maka\x20build:docker','77160fObpES'];a15c=function(){return v;};return a15c();}
@@ -1 +1 @@
1
- function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x79;let f=c[d];return f;},a16d(a,b);}const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0xb4))/0x1*(-parseInt(F(0x9e))/0x2)+parseInt(F(0x7e))/0x3+-parseInt(F(0xb7))/0x4*(parseInt(F(0x8d))/0x5)+parseInt(F(0x7c))/0x6+parseInt(F(0xa3))/0x7+parseInt(F(0xaf))/0x8+parseInt(F(0x8a))/0x9*(-parseInt(F(0xc0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x50cab));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0xa1)]()['search'](H(0xa7))[H(0xa1)]()['constructor'](a16a)['search'](H(0xa7));});a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';function a16c(){const K=['isFile','confirm','fsi','Mobile\x20server\x20port:\x20','build','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','.meteor','-t\x20','[*]\x20maka\x20','meteor','Tagging\x20Docker\x20Image:\x20','1025980rAZoHz','docker-compose.yaml','getGlobalConfig','toString','error','4441437TxmTiq','\x20npm\x20install\x20--save','config.json','meteor.bat','(((.+)+)+)+$','length','inherit','--progress=plain\x20--no-cache','config','ask','_keys','Stored\x20server\x20config\x20to\x20','2599064PoKdhv','platform','serverPort','appName','Try\x20\x27maka\x20run:docker\x27','1TMhvSt','findAppDirectory',':latest','2489048fSIFrt','checkConfigExists','dockerfile','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','http','maka\x20build:docker\x20--debug','template','cert','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','20MCMxWf','serverName','tag','docker\x20build\x20--build-arg\x20NODE_VERSION=','\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','platforms','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','https','push','N/A','pathFromProject','maka\x20build:docker\x20<opts>','existsSync','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).','cert.pem','ignore','://','1921728tyxfyW','notice','1301727KegMTi','os.linux.x86_64','findGenerator','win32','Docker\x20Context\x20Path:\x20','apply','.maka','copyFileSync','isDirectory','findProjectDirectory','readFileLines','join','1113282VplEGE','invoke','setProjectConfig','5ypEwze','docker','debug','exit','getProjectsMeteorNodeVersion'];a16c=function(){return K;};return a16c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a16I(0x8e),'aliases':['d'],'usage':a16I(0xcb),'validOpts':['force',a16I(0xc2),'debug'],'shortDesc':a16I(0xc6),'description':a16I(0xc4),'mustBeInMakaProject':!![],'examples':['maka\x20build:docker\x20--tag',a16I(0xbc)]},async function(a,b){const J=a16I;try{const c=await this['fsi'][J(0xa0)](),d=await this['fsi']['getProjectConfig'](),f=await this[J(0x94)][J(0x91)]();f===J(0xc9)&&(Log[J(0xa2)](J(0xcd)),process[J(0x90)](0x1));const g=process[J(0xb0)]===J(0x81)?J(0xa6):J(0x9c),h=this[J(0x94)][J(0xca)]({}),i=a16f[J(0x89)](h,'Dockerfile');if(!this[J(0x94)][J(0x92)](i)){const s=a16h[J(0x80)](J(0xb9));s&&await s[J(0x8b)]([J(0xb9)],{'cwd':h,'config':d});}const j=this[J(0x94)][J(0xb8)](J(0x8e));if(!j){const t=a16h['findGenerator'](J(0xab));if(t){await t[J(0x8b)]([J(0x8e)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x94)]['getConfigPath'](J(0x8e)),v=a16f[J(0x89)](u,'pm2.config.js');await this[J(0x94)][J(0xbd)]({'srcPath':'config/pm2.config.js','destPath':v,'context':{'app':d[J(0xb2)],'isDocker':![]},'config':d});const w=a16f[J(0x89)](u,J(0x9f));await this['fsi']['template']({'srcPath':'config/docker-compose.yaml','destPath':w,'context':{'app':d['appName'],'appFileCase':paramCase(d[J(0xb2)])},'config':d});}}if(this[J(0x94)][J(0x92)](c[J(0xbe)])){const x=this['fsi'][J(0x86)](a16f[J(0x89)]('config',J(0x8e),J(0xad)));!x&&a16g['mkdirSync'](a16f['join'](J(0xab),J(0x8e),'_keys')),a16g[J(0x85)](c[J(0xbe)],a16f[J(0x89)](h,'config',J(0x8e),J(0xad),J(0x79)));}const k=['build',a16f[J(0x89)](this[J(0x94)][J(0x87)](),J(0x96)),'--architecture',J(0x7f)],l=this[J(0x94)][J(0x88)](a16f[J(0x89)](this['fsi'][J(0xca)]({}),'app',J(0x99),J(0xc5))),m=l[J(0xa8)]>0x2?!![]:![];if(m){const y=d[J(0xc1)]?d['serverName']:await Actions[J(0xac)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[J(0xb1)]?d[J(0xb1)]:await Actions[J(0xac)](J(0x95));if(y[J(0xa8)]==0x0||z[J(0xa8)]==0x0)throw J(0x98);const A=z=='443'?J(0xc7):J(0xbb);k[J(0xc8)]('--server='+A+J(0x7b)+y+':'+z);if(!d['serverName']&&!d[J(0xb1)]){const B=await Actions[J(0x93)](J(0x97));B&&(this[J(0x94)][J(0x8c)]('serverName',y),this[J(0x94)][J(0x8c)](J(0xb1),z),Log[J(0x7d)](J(0xae)+a16f[J(0x89)](J(0x84),J(0xa5))));}}const n=a16f[J(0x89)](this[J(0x94)][J(0xca)]({}),'build','app.tar.gz');if(a16g[J(0xcc)](n)){const C=await Actions[J(0x93)](J(0xba)),D=C;D&&(execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[J(0x94)][J(0xb5)](),'stdio':J(0x7a)}),execSync(g+'\x20\x20'+k[J(0x89)]('\x20'),{'cwd':this['fsi'][J(0xb5)](),'stdio':J(0xa9)}));}else execSync(g+J(0xa4),{'cwd':this[J(0x94)][J(0xb5)](),'stdio':'ignore'}),Log['notice'](J(0x9b)+k[J(0x89)]('\x20')),execSync(g+'\x20'+k[J(0x89)]('\x20'),{'cwd':this['fsi']['findAppDirectory'](),'stdio':J(0xa9)});const o=this['fsi'][J(0xca)]({});let p=J(0x9a)+paramCase(d['appName'])+J(0xb6);b[J(0xc2)]&&(p=J(0x9a)+b[J(0xc2)]);Log[J(0x7d)](J(0xbf)+f),Log[J(0x7d)](J(0x9d)+p),Log['notice'](J(0x82)+o);const q=b[J(0x8f)]?J(0xaa):'',r=J(0xc3)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':'inherit'}),Log[J(0x7d)](J(0xb3));}catch(E){console[J(0xa2)](E),process[J(0x90)](0x0);}},a16e);
1
+ const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=-parseInt(F(0xe0))/0x1*(-parseInt(F(0xdb))/0x2)+-parseInt(F(0x108))/0x3+-parseInt(F(0xf0))/0x4+parseInt(F(0xce))/0x5*(-parseInt(F(0xdd))/0x6)+parseInt(F(0x11e))/0x7+-parseInt(F(0x104))/0x8+-parseInt(F(0xd5))/0x9*(-parseInt(F(0xe1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xbb9ab));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0xda)]()['search']('(((.+)+)+)+$')[H(0xda)]()[H(0x107)](a16a)[H(0xe8)](H(0x125));});a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xcd;let f=c[d];return f;},a16d(a,b);}import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16c(){const K=['443','config/pm2.config.js','findAppDirectory','toString','58BTwqac','debug','48cJPbwA','findProjectDirectory','pathFromProject','21782fDcsiu','12208710emETTs','win32','config/docker-compose.yaml','docker\x20build\x20--build-arg\x20NODE_VERSION=','findGenerator','Docker\x20Context\x20Path:\x20','pm2.config.js','search','exit','docker-compose.yaml','cert','_keys','copyFileSync','fsi','config.json','879744WXpWvI','serverPort','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','Stored\x20server\x20config\x20to\x20','docker','build','\x20npm\x20install\x20--save',':latest','ask','.maka','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','serverName','maka\x20build:docker\x20--debug','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','Tagging\x20Docker\x20Image:\x20','://','Dockerfile','template','getProjectsMeteorNodeVersion','6575544zOgFTY','appName','meteor','constructor','495765lkxnlr','--progress=plain\x20--no-cache','error','mkdirSync','isDirectory','Mobile\x20server\x20port:\x20','http','https','notice','tag','length','platforms','--architecture','apply','[*]\x20maka\x20','maka\x20build:docker\x20--tag','checkConfigExists','\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','push','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','readFileLines','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).','1689716Lmhafl','isFile','getGlobalConfig','ignore','confirm','inherit','app.tar.gz','(((.+)+)+)+$','config','73985czQBLu','N/A','getConfigPath','dockerfile','os.linux.x86_64','platform','join','9jtLpEi','existsSync'];a16c=function(){return K;};return a16c();}Command['create']({'name':'docker','aliases':['d'],'usage':'maka\x20build:docker\x20<opts>','validOpts':['force',a16I(0x111),'debug'],'shortDesc':a16I(0xfe),'description':a16I(0x119),'mustBeInMakaProject':!![],'examples':[a16I(0x117),a16I(0xfd)]},async function(a,b){const J=a16I;try{const c=await this['fsi'][J(0x120)](),d=await this['fsi']['getProjectConfig'](),f=await this['fsi'][J(0x103)]();f===J(0xcf)&&(Log[J(0x10a)](J(0x11d)),process[J(0xe9)](0x1));const g=process[J(0xd3)]===J(0xe2)?'meteor.bat':J(0x106),h=this[J(0xee)][J(0xdf)]({}),i=a16f[J(0xd4)](h,J(0x101));if(!this[J(0xee)][J(0x11f)](i)){const s=a16h[J(0xe5)](J(0xd1));s&&await s['invoke']([J(0xd1)],{'cwd':h,'config':d});}const j=this[J(0xee)][J(0x118)](J(0xf5));if(!j){const t=a16h[J(0xe5)](J(0xcd));if(t){await t['invoke']([J(0xf5)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0xee)][J(0xd0)](J(0xf5)),v=a16f[J(0xd4)](u,J(0xe7));await this[J(0xee)]['template']({'srcPath':J(0xd8),'destPath':v,'context':{'app':d[J(0x105)],'isDocker':![]},'config':d});const w=a16f[J(0xd4)](u,J(0xea));await this[J(0xee)][J(0x102)]({'srcPath':J(0xe3),'destPath':w,'context':{'app':d['appName'],'appFileCase':paramCase(d[J(0x105)])},'config':d});}}if(this[J(0xee)][J(0x11f)](c['cert'])){const x=this['fsi'][J(0x10c)](a16f[J(0xd4)](J(0xcd),J(0xf5),'_keys'));!x&&a16g[J(0x10b)](a16f['join'](J(0xcd),J(0xf5),J(0xec))),a16g[J(0xed)](c[J(0xeb)],a16f[J(0xd4)](h,J(0xcd),J(0xf5),J(0xec),'cert.pem'));}const k=[J(0xf6),a16f['join'](this[J(0xee)][J(0xde)](),J(0xf6)),J(0x114),J(0xd2)],l=this[J(0xee)][J(0x11c)](a16f[J(0xd4)](this['fsi']['pathFromProject']({}),'app','.meteor',J(0x113))),m=l[J(0x112)]>0x2?!![]:![];if(m){const y=d['serverName']?d['serverName']:await Actions['ask'](J(0xf3)),z=d[J(0xf1)]?d[J(0xf1)]:await Actions[J(0xf9)](J(0x10d));if(y[J(0x112)]==0x0||z[J(0x112)]==0x0)throw J(0xf2);const A=z==J(0xd7)?J(0x10f):J(0x10e);k[J(0x11a)]('--server='+A+J(0x100)+y+':'+z);if(!d['serverName']&&!d[J(0xf1)]){const B=await Actions[J(0x122)](J(0x11b));B&&(this[J(0xee)]['setProjectConfig'](J(0xfc),y),this[J(0xee)]['setProjectConfig'](J(0xf1),z),Log[J(0x110)](J(0xf4)+a16f[J(0xd4)](J(0xfa),J(0xef))));}}const n=a16f['join'](this[J(0xee)]['pathFromProject']({}),'build',J(0x124));if(a16g[J(0xd6)](n)){const C=await Actions[J(0x122)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),D=C;D&&(execSync(g+J(0xf7),{'cwd':this['fsi']['findAppDirectory'](),'stdio':J(0x121)}),execSync(g+'\x20\x20'+k[J(0xd4)]('\x20'),{'cwd':this[J(0xee)][J(0xd9)](),'stdio':J(0x123)}));}else execSync(g+J(0xf7),{'cwd':this[J(0xee)][J(0xd9)](),'stdio':J(0x121)}),Log[J(0x110)](J(0x116)+k[J(0xd4)]('\x20')),execSync(g+'\x20'+k[J(0xd4)]('\x20'),{'cwd':this[J(0xee)][J(0xd9)](),'stdio':'inherit'});const o=this['fsi'][J(0xdf)]({});let p='-t\x20'+paramCase(d[J(0x105)])+J(0xf8);b[J(0x111)]&&(p='-t\x20'+b[J(0x111)]);Log[J(0x110)](J(0xfb)+f),Log[J(0x110)](J(0xff)+p),Log[J(0x110)](J(0xe6)+o);const q=b[J(0xdc)]?J(0x109):'',r=J(0xe4)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':'inherit'}),Log[J(0x110)]('Try\x20\x27maka\x20run:docker\x27');}catch(E){console[J(0x10a)](E),process[J(0xe9)](0x0);}},a16e);