@maka/maka-cli 4.5.9 → 4.5.11

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.9",
4
+ "version": "4.5.11",
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
- 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
+ const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x1ed))/0x1*(parseInt(p(0x1bf))/0x2)+parseInt(p(0x1e6))/0x3+-parseInt(p(0x1e2))/0x4*(-parseInt(p(0x1f0))/0x5)+-parseInt(p(0x1da))/0x6+parseInt(p(0x1f1))/0x7+-parseInt(p(0x1fb))/0x8+parseInt(p(0x1f7))/0x9*(parseInt(p(0x200))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x3df1d));function a0c(){const E=['validateMakaSubscription','1266048Bgznlq','function','Too\x20few\x20arguments','search','roles','2226460yBdnSz','splice','maxArgLength','forEach','Alias','invoke','call','validateMakaProject','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','length','match','apply','number','deploy','tableList','notice','runSubCommand','includes','findCommand','66orzgwy','addCommand','Too\x20many\x20options','find','header','keys','maxOptsLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','To\x20use\x20these\x20pro\x20flags,\x20\x22','minOptsLength','toString','Description','parent','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','minArgLength','_commands','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','sort','run','fsi','_handler','join','push','To\x20use\x20this\x20command,\x20\x22','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','help','generate','2128020rNVOGR','Command.create\x20requires\x20some\x20options!','domainLicense','exit','findSubCommand','Too\x20few\x20options','usage','error','89084fkvmwN','shortDesc','(((.+)+)+)+$','mustBeInMakaProject','904722puXQpQ','mustHaveMeteorInstalled','Command.create\x20requires\x20a\x20handler\x20function!','proCommands','Command\x20requires\x20a\x20handler\x20function','There\x20is\x20no\x20Meteor\x20application\x20here','getPro','7542ajJtxR','Please\x20run\x20\x22maka\x20install\x20meteor\x22','split','35FsHDXA','2347940dhujmR','constructor','options','assign','create','validateMeteorInstall','9QnROqK','name','validateParams'];a0c=function(){return E;};return a0c();}function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1af;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x1c9)]()['search'](r(0x1e4))['toString']()[r(0x1f2)](a0a)[r(0x1fe)](r(0x1e4));});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{[a0s(0x1f3)];[a0s(0x1ce)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1c6));if(!a[t(0x1f8)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==t(0x1fc))throw new Error(t(0x1ea));this['options']=Object[t(0x1f4)]({},a),this[t(0x1f8)]=this['options'][t(0x1f8)],this['_commands']=[],this[t(0x1d3)]=b['bind'](this);}static[a0s(0x1f5)](a,b,c){const u=a0s;if(!a)throw new Error(u(0x1db));if(typeof b!==u(0x1fc))throw new Error(u(0x1e8));const d=new Command(a,b);return c=c||a0f,Object[u(0x1f4)](d,{'parent':c?.[u(0x1f3)]?.[u(0x1f8)]}),c[u(0x1c0)](d),d;}[a0s(0x1c0)](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][v(0x1d5)](a);}async[a0s(0x1fa)](a,b){const w=a0s,c=this[w(0x1be)](a[0x0]);if(c){const d=c?.[w(0x1f8)]||a[0x0],e=c?.[w(0x1cb)]||'',f=c?.[w(0x1f3)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object[w(0x1c4)](b),i=await this[w(0x1d2)][w(0x1ec)]();!i&&(Log[w(0x1e1)](w(0x1b4)),process[w(0x1dd)](0x1));const j=i?.['proCommands'][w(0x1bd)](d)||i?.['proCommands'][w(0x1bd)](e),k=i?.[w(0x1ff)]['includes']('singleLicense')||i?.['roles'][w(0x1bd)](w(0x1dc)),l=!k;if(j&&l)throw w(0x1d6)+a[0x0]+w(0x1d7);if(h[w(0x1b5)]>0x0){const m=i?.['proFlags']['filter'](n=>h[w(0x1bd)](n));if(m&&m['length']>0x0&&l)throw w(0x1c7)+m?.[w(0x1d4)](',\x20')+w(0x1d7);}if(g===w(0x1b9)){const n=await this[w(0x1d2)]['getPro'](),o=n?.[w(0x1e9)][w(0x1bd)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a0s(0x1d1)](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this['validateMakaSubscription'](a,b);}catch(c){Log[x(0x1e1)](c),process[x(0x1dd)](0x0);}await this[x(0x1b1)](a,b);}catch(d){process['exit'](0x1);}}async[a0s(0x1b1)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[y(0x1f3)][y(0x1f8)]!==y(0x1d9)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x1b5)]===0x0)&&this[y(0x1ce)]['length']>=0x0;if(f&&b[y(0x1d8)]){if(this[y(0x1ce)][y(0x1b5)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x1d8)]){if(this[y(0x1f3)][y(0x1e5)]){const g=this[y(0x1b3)]();if(!g)throw new MustBeInProjectError();}if(this[y(0x1f3)][y(0x1e7)]){const h=this[y(0x1f6)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x1f3)][y(0x1cd)]===y(0x1b8)){if(a[y(0x1b5)]<this['options'][y(0x1cd)]){Log['error'](y(0x1fd));throw new UsageError();}}if(typeof this[y(0x1f3)]['maxArgLength']===y(0x1b8)){if(a['length']>=this[y(0x1f3)][y(0x202)]){Log[y(0x1e1)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0x1f3)][y(0x1c8)]===y(0x1b8)){if(Object[y(0x1c4)](b)[y(0x1b5)]<this[y(0x1f3)][y(0x1c8)]){Log['error'](y(0x1df));throw new UsageError();}}if(typeof this[y(0x1f3)][y(0x1c5)]===y(0x1b8)){if(Object['keys'](b)['length']>=this[y(0x1f3)][y(0x1c5)]){Log[y(0x1e1)](y(0x1c1));throw new UsageError();}}}}this[y(0x1f9)](a,b,this[y(0x1f3)]),_prevCmd=a[0x0];}await this[y(0x1d3)][y(0x1b2)](this,a,b);}catch(i){Log[y(0x1e0)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0x1bb)]('Sub-Commands:'),this[y(0x1ba)](this[y(0x1ce)]),Log[y(0x1c3)](y(0x1cc));else{if(i instanceof MustBeInProjectError)Log[y(0x1e1)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log[y(0x1e1)](y(0x1cf)),Log[y(0x1bb)](y(0x1ee));else{if(i instanceof NoMeteorAppFoundError)Log[y(0x1e1)](y(0x1eb));else throw i;}}}process[y(0x1dd)](0x1);}}['tableList'](a){const z=a0s,b=new a0e({});b[z(0x1d5)](['Name',z(0x1b0),z(0x1ca)]),a[z(0x1d0)]()[z(0x1af)](c=>{const A=z;c[A(0x1f8)]!=='murder'&&c[A(0x1f8)]!=='play'&&b[A(0x1d5)]([c[A(0x1f8)],c['aliases'](),c[A(0x1e3)]()]);}),Log['bright'](b[z(0x1c9)]());}['findCommand'](a){const B=a0s;return this[B(0x1ce)][B(0x1c2)](b=>b[B(0x1b6)](a));}[a0s(0x1de)](a){const C=a0s,b=a?.[C(0x1ef)](':');if(b)return a=b[0x0],this['findCommand'](a);else return;}async[a0s(0x1bc)](a,b,c){const D=a0s;try{const d=a[D(0x1ef)](':');a=d[0x0];const f=d[0x1];f&&b[D(0x201)](0x0,0x0,f);const g=this[D(0x1be)](a);if(g)await g[D(0x1d1)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log['error'](h);}}}
@@ -1 +1 @@
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
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x155))/0x1*(-parseInt(f(0x15b))/0x2)+-parseInt(f(0x15a))/0x3*(-parseInt(f(0x153))/0x4)+-parseInt(f(0x151))/0x5+-parseInt(f(0x15f))/0x6*(parseInt(f(0x159))/0x7)+-parseInt(f(0x152))/0x8*(parseInt(f(0x156))/0x9)+-parseInt(f(0x158))/0xa+parseInt(f(0x15d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x5bf4f));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x154)]()['search'](h(0x160))[h(0x154)]()[h(0x157)](a1a)[h(0x15c)](h(0x160));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';function a1c(){var i=['search','14554562rwrtBU','apply','1362dFYcyp','(((.+)+)+)+$','2932965bAhuvF','120832eLsnyh','4jJyVjh','toString','723691RVndRc','387usoXOV','constructor','980460yylXEH','17199aMxCFP','665016KHYtuQ','2YLhtba'];a1c=function(){return i;};return a1c();}import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x151;var f=c[d];return f;},a1d(a,b);}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(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
+ (function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0xc0))/0x1+parseInt(f(0xcc))/0x2*(parseInt(f(0xcb))/0x3)+-parseInt(f(0xc9))/0x4*(-parseInt(f(0xc2))/0x5)+-parseInt(f(0xc3))/0x6*(-parseInt(f(0xc1))/0x7)+parseInt(f(0xc5))/0x8*(parseInt(f(0xc4))/0x9)+-parseInt(f(0xc6))/0xa*(parseInt(f(0xbf))/0xb)+-parseInt(f(0xbe))/0xc*(parseInt(f(0xc8))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x7cd97));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0xbd)]()[h(0xce)](h(0xcd))[h(0xbd)]()[h(0xc7)](a2a)['search'](h(0xcd));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xbd;var f=c[d];return f;},a2d(a,b);}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a2c(){var i=['4888425xQKQWn','1599162hopkNU','1629jyvOeg','3856kiuYOp','10aNDJuu','constructor','21678059XFnnJX','4BFlHNk','apply','2802777xOFYOd','2hsnWYi','(((.+)+)+)+$','search','toString','12fUCYbm','2902372mPToBx','177065kzxIwu','7uJygtO'];a2c=function(){return i;};return a2c();}
@@ -1 +1 @@
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
+ const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0xec))/0x1+parseInt(f(0xe0))/0x2+-parseInt(f(0xe5))/0x3*(-parseInt(f(0xdf))/0x4)+-parseInt(f(0xd8))/0x5+parseInt(f(0xdc))/0x6*(-parseInt(f(0xe1))/0x7)+-parseInt(f(0xde))/0x8*(parseInt(f(0xeb))/0x9)+-parseInt(f(0xea))/0xa*(-parseInt(f(0xe4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x8ce27));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0xda)]()[h(0xe7)]('(((.+)+)+)+$')[h(0xda)]()[h(0xdb)](a3a)['search']('(((.+)+)+)+$');});function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xd7;let f=c[d];return f;},a3d(a,b);}a3a();function a3c(){const k=['Sub\x20Command\x20not\x20found','54130yTUDSp','21231cLjpjo','114075iZogLJ','apply','findSubCommand','1809195nDupjB','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','toString','constructor','30EIObMl','create','232sBrpBF','52LrxHBU','1465018sOJSqs','1317099UlfKrv','error','maka\x20aws:<sub-command>','1397dMZKRp','148203kxqwnm','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','search','runSubCommand'];a3c=function(){return k;};return a3c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0xdd)]({'name':'aws','usage':a3i(0xe3),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0xe6),'description':a3i(0xd9)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0xd7)](c);if(d)this[j(0xe8)](c,a,b);else{Log[j(0xe2)](j(0xe9));throw new UsageErrorWithSubs();}});export default AWSCommand;
@@ -1 +1 @@
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
+ const a4ag=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0xf6))/0x1*(-parseInt(ae(0xb9))/0x2)+-parseInt(ae(0xd6))/0x3+parseInt(ae(0x11f))/0x4+-parseInt(ae(0xfa))/0x5*(-parseInt(ae(0xc2))/0x6)+parseInt(ae(0x119))/0x7+-parseInt(ae(0x122))/0x8*(-parseInt(ae(0xe1))/0x9)+-parseInt(ae(0x11d))/0xa*(parseInt(ae(0xfb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xbdc59));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(0xba)]()[af(0xc7)](af(0xbf))[af(0xba)]()[af(0x112)](a4a)['search'](af(0xbf));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a4c(){const at=['Key-Pair:\x20','getTime','created-by','subnetId','4341134qXpHrV','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Web\x20App','145910dgpLui','ec2create','5423584frpezx','\x20SG\x20NAME:\x20','date','16KIvkpR','bright','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=*','parse','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','*\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','156CuRfSQ','toString','1:1','No\x20instance\x20has\x20been\x20created.','environment','alias','(((.+)+)+)+$','exit','maka\x20aws:create-instance\x20<opts>','142158DRuXbf','notice','Subnet:\x20','log','\x20CIDR:\x20','search','cider','\x20SGID:\x20','sort','confirm','\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','ImageID:','subnet','22,80,443','Setting\x20AMI\x20ID\x20to\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','name','sgId','Security\x20Group\x20Name:\x20[','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','378150acehdr','split','fsi','**\x20Available\x20Security\x20Groups\x20**','maka\x20aws:create-instance\x20--env\x20dev','\x20AMIID:\x20','amiId','cidr','error','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','create','1387917Ezlbtt','number','unlinkSync','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','success','\x20DESCRIPTION:\x20','isFile','Setting\x20the\x20key-pair\x20to:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','getSecurityGroups','create-instance','deleteSecurityGroup','Desc','EC2\x20Name:\x20[','ask','chooseVPC','join','forEach','push','**\x20Available\x20Subnets\x20**','build\x20on\x20','10849eCpfyj','Please\x20choose\x20a\x20key\x20to\x20use:\x20','readFileSync','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','115iLpYaW','2090BTraeI','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','Security\x20Group:\x20','Instace\x20Type:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','ID:\x20','getConfigFromShorthand','\x20:\x20','Remove\x20the\x20security\x20group\x20','createKeyPair','Setting\x20SG\x20ID\x20to:\x20','env','Remove\x20the\x20keypair\x20','Instance\x20Count:\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','maka-cli','**\x20Available\x20key-pairs\x20**','deleteKeyPair','desc','maka\x20aws:ci\x20--env\x20prod','getProjectConfig','constructor','User\x20Data:','Name'];a4c=function(){return at;};return a4c();}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xb8;let f=c[d];return f;},a4d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ag(0xe0)]({'name':a4ag(0xeb),'aliases':['ci'],'usage':a4ag(0xc1),'examples':[a4ag(0xda),a4ag(0x110)],'mustBeInMakaProject':!![],'requiredOpts':[a4ag(0x106)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a4ag(0xcc)},async function(a,b){const ah=a4ag;try{const c=this[ah(0xd8)][ah(0x111)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0xd8)][ah(0x101)](b['env']),i=this['fsi']['getConfigPath'](h),j=g+'-'+h,k=await Actions[ah(0xef)](ah(0xee)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0xcb)](ah(0xf9),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x104)]({'env':h});r=y,s=z,Log[ah(0xe5)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ah(0xc3)](ah(0x10d));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ah(0xef)](ah(0xf7))||'-1';if(parseInt(C)<0x0){Log[ah(0xde)](ah(0xfc)),Log[ah(0xc3)](ah(0xbc));return;}B?.[ah(0xf2)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0xd2)],Log[ai(0xe5)](ai(0xe8)+r));});}catch(D){Log[ah(0xde)](D);}l=await d[ah(0xf0)]();const t=await Actions[ah(0xcb)](ah(0xe9),!![]);let u;if(t){const E=l===''?await d[ah(0xf0)]():l;u=await Actions['ask'](ah(0xd4)+k+']')||k;const F=await Actions[ah(0xef)](ah(0xd1))||ah(0xcf),G=F[ah(0xd7)](',');await d['ec2createSG']({'description':ah(0x11c),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0xea)](u);if(I===''){Log[ah(0xc3)](ah(0xd9)),J[ah(0xf2)](function(L){const aj=ah;L['name']===u?Log[aj(0xc3)]('ID:\x20'+L['id']+aj(0x120)+L[aj(0xd2)]+aj(0xc9)+L[aj(0xd3)]):Log[aj(0x123)]('ID:\x20'+L['id']+aj(0x120)+L['name']+aj(0xc9)+L[aj(0xd3)]);});const K=await Actions[ah(0xef)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ah(0xba)]();J[ah(0xf2)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0xd3)],Log['success'](ak(0x105)+m+'\x0a'));});}else m=I,Log['success'](ah(0x105)+m+'\x0a');if(m==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ah(0xde)](L);}try{const M=0x7e6;Log[ah(0xc3)]('**\x20Available\x20AMIs\x20**');const N=execSync(ah(0x124)+M+ah(0xb8))[ah(0xba)](),O=JSON['parse'](N),P=[],Q=[];O[ah(0xf2)](function(S){const al=ah;if(S[al(0xbe)]==='amazon'){const T=S[al(0xed)][al(0xd7)](al(0xf5))[0x1];P[al(0xf3)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ah(0xca)](function(S,T){const am=ah;return new Date(T[am(0x121)])[am(0x116)]()-new Date(S['date'])[am(0x116)]();}),P[ah(0xf2)](function(S,T){const an=ah;Q[an(0xf3)]({'id':T,'amiId':S[an(0xdc)],'desc':S[an(0x10f)]});}),Q[ah(0xf2)](function(S){const ao=ah;console['log'](ao(0x100)+S['id']+ao(0xdb)+S[ao(0xdc)]+ao(0xe6)+S[ao(0x10f)]);});const R=await Actions[ah(0xef)](ah(0xdf))||'0';Q[ah(0xf2)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0xdc)],Log[ap(0xe5)](ap(0xd0)+n+ap(0x102)+S[ap(0x10f)]));});if(n==='')throw Log[ah(0xde)](ah(0x10a));}catch(S){Log[ah(0xde)](S);}try{Log[ah(0xc3)](ah(0xf4));const T=execSync(ah(0xff))[ah(0xba)](),U=JSON[ah(0x125)](T),V=[];U[ah(0xf2)](function(X,Y){const aq=ah;V[aq(0xf3)]({'id':Y,'cidr':X[aq(0xc8)],'az':X['az'],'subnetId':X[aq(0x118)]});}),V['forEach'](function(X){const ar=ah;console[ar(0xc5)](ar(0x100)+X['id']+ar(0xc6)+X[ar(0xdd)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[ar(0x118)]);});const W=await Actions[ah(0xef)](ah(0xd5))||'0';V['forEach'](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x118)],Log[as(0xe5)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ah(0xde)](ah(0x10a));}catch(X){Log[ah(0xde)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ah(0xbb),Z=Y[ah(0xd7)](':')[0x0],a0=Y[ah(0xd7)](':')[0x1];typeof parseInt(Z)===ah(0xe2)&&typeof parseInt(a0)===ah(0xe2)&&Log['success']('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0xde)](a1);}try{const a2=await Actions[ah(0xef)](ah(0x126))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log['error'](a3);}let x;try{const a4=await Actions['confirm'](ah(0x11b),![]);a4&&(x=a4f[ah(0xf1)](i,'user-data'),Log[ah(0xc3)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ah(0xd8)]['createFile']({'filePath':x,'data':''}),await Actions[ah(0xcb)](ah(0x10b)));}catch(a5){Log[ah(0xde)](a5);}try{const a6=JSON[ah(0x125)](execSync(ah(0x11a)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ah(0xba)]())[0x0][ah(0xce)];Log[ah(0xc3)](ah(0xcd)+n),Log[ah(0xc3)](ah(0x108)+v+':'+w),Log[ah(0xc3)](ah(0xfe)+o),Log[ah(0xc3)](ah(0x115)+r),Log['notice'](ah(0xfd)+m),Log[ah(0xc3)](ah(0xc4)+a6);if(x){Log[ah(0xc3)](ah(0x113)+x);const a8=a4g[ah(0xf8)](x);Log[ah(0xc3)](a8);}const a7=await Actions[ah(0xcb)](ah(0xe4));if(a7){const a9=await d[ah(0x11e)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x117),'Value':ah(0x10c)},{'Key':ah(0xbd),'Value':h},{'Key':ah(0x114),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0xe5)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0x123)](ah(0x109)));}else{Log[ah(0xc3)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ah(0x107)+r+'\x20?',!![]);aa&&(d[ah(0x10e)](r),f[ah(0xe7)](s)&&a4g[ah(0xe3)](s));const ab=await Actions[ah(0xcb)](ah(0x103)+m+'\x20?',!![]);ab&&d[ah(0xec)](m);}}catch(ac){console['log'](ac),Log[ah(0xde)](ac);}}catch(ad){console[ah(0xde)](ad),process[ah(0xc0)](0x0);}},a4e);
@@ -1 +1 @@
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
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x121))/0x1*(parseInt(g(0x10b))/0x2)+parseInt(g(0x10c))/0x3+parseInt(g(0x117))/0x4*(-parseInt(g(0x11b))/0x5)+-parseInt(g(0x11a))/0x6*(parseInt(g(0x115))/0x7)+parseInt(g(0x119))/0x8+-parseInt(g(0x10e))/0x9+parseInt(g(0x10a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xee1ba));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a['toString']()[i(0x120)](i(0x11d))['toString']()[i(0x114)](a5a)[i(0x120)](i(0x11d));});function a5c(){const l=['3799290RGpOGB','2AgAsxq','2533629iDCsIX','ckp','12404403LABsHj','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','create','env','create-key-pair','fsi','constructor','70bvLbhs','exit','13380MLZDns','createKeyPair','12144216lZYKJB','841926ASScSa','1195HPVTfI','maka\x20aws:ckp\x20--env\x20prod','(((.+)+)+)+$','getConfigFromShorthand','apply','search','1813723nazODC'];a5c=function(){return l;};return a5c();}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x10a;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a5j(0x110)]({'name':a5j(0x112),'aliases':[a5j(0x10d)],'usage':'maka\x20aws:create-key-pair\x20<opts>','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a5j(0x11c)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x111)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x10f),'description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x113)][k(0x11e)](b[k(0x111)]);c[k(0x118)]({'env':d});}catch(f){console['error'](f),process[k(0x116)](0x0);}},a5e);
@@ -1 +1 @@
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
+ const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x16f))/0x1+-parseInt(m(0x170))/0x2*(-parseInt(m(0x177))/0x3)+-parseInt(m(0x178))/0x4*(-parseInt(m(0x16e))/0x5)+parseInt(m(0x17a))/0x6*(parseInt(m(0x179))/0x7)+parseInt(m(0x172))/0x8+-parseInt(m(0x17e))/0x9*(parseInt(m(0x176))/0xa)+-parseInt(m(0x17f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x74e58));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x181)]()['search'](o(0x18b))[o(0x181)]()[o(0x17b)](a6a)['search'](o(0x18b));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x16e;let f=c[d];return f;},a6d(a,b);}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';function a6c(){const s=['maka\x20aws\x20create-security-group','3237384kndFuS','List\x20is\x20not\x20all\x20numbers','fsi','create-security-group','4669510fQLKei','396363BnHpEB','40HsSIof','7pyixXW','309282pYULiv','constructor','Web\x20App','maka\x20aws:create-secuirty-group','9iQGsbL','15582611mIRboN','getProjectConfig','toString','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','apply','ask','\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','error','ec2createSG','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','forEach','name','(((.+)+)+)+$','exit','456755nFyjul','67783xqfNIz','14eJKxMC'];a6c=function(){return s;};return a6c();}Command['create']({'name':a6p(0x175),'aliases':['csg'],'usage':a6p(0x171),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x188),'description':a6p(0x185),'examples':[a6p(0x17d),'maka\x20aws:csg']},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x174)][q(0x180)](),{appName:f}=d,g=await c['chooseVPC'](),h=b['name']?b[q(0x18a)]:''+f,i=await Actions[q(0x184)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x184)](q(0x182))||'22,80,443',k=j['split'](',');k[q(0x189)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x173);}),await c[q(0x187)]({'description':q(0x17c),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x186)](l),process[q(0x18c)](0x1);}},a6e);
@@ -1 +1 @@
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
+ function a7c(){const k=['44avHKcn','maka\x20aws:describe-instances','3rGnDbB','ec2describeInstances','7055650sIUxun','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','14713nZUswT','toString','214WofDvr','search','4524522ESafVT','create','apply','exit','14tgDANr','1416WMTDAB','describe-instances','(((.+)+)+)+$','6711972cybBzv','error','47685012YzTkrH','25542xMNElZ','471890pqkhXH'];a7c=function(){return k;};return a7c();}const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(0x1d1))/0x1*(-parseInt(f(0x1d3))/0x2)+parseInt(f(0x1cc))/0x3*(parseInt(f(0x1c5))/0x4)+-parseInt(f(0x1ce))/0x5+parseInt(f(0x1bd))/0x6*(-parseInt(f(0x1c1))/0x7)+-parseInt(f(0x1c2))/0x8*(parseInt(f(0x1c8))/0x9)+parseInt(f(0x1c9))/0xa*(parseInt(f(0x1ca))/0xb)+parseInt(f(0x1c7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xce323));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a['toString']()[h(0x1d4)](h(0x1c4))[h(0x1d2)]()['constructor'](a7a)[h(0x1d4)]('(((.+)+)+)+$');});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a7d(a,b);}import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x1be)]({'name':a7i(0x1c3),'aliases':['di'],'usage':a7i(0x1cb),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x1d0),'examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':a7i(0x1cf)},async function(){const j=a7i;try{const a=new AWS();a[j(0x1cd)]();}catch(b){console[j(0x1c6)](b),process[j(0x1c0)](0x0);}},a7e);
@@ -1 +1 @@
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
+ function a8c(){const k=['apply','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','3724917POADeY','search','error','constructor','dkp','2901552MXSXsU','ec2describeKeys','1611464QHTvSU','exit','18IYUzER','2377785XZGwzR','describe-key-pairs','(((.+)+)+)+$','3599840fKKvVZ','toString','1083635wLlimX','create','20403232vOETul','maka\x20aws:describe-key-pairs'];a8c=function(){return k;};return a8c();}const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x1f2))/0x1+-parseInt(f(0x1e3))/0x2+parseInt(f(0x1eb))/0x3+-parseInt(f(0x1f0))/0x4+-parseInt(f(0x1f5))/0x5*(-parseInt(f(0x1f4))/0x6)+-parseInt(f(0x1e5))/0x7+parseInt(f(0x1e7))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xe25a1));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x1e4)]()[h(0x1ec)](h(0x1f7))[h(0x1e4)]()[h(0x1ee)](a8a)[h(0x1ec)]('(((.+)+)+)+$');});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-0x1e3;let f=c[d];return f;},a8d(a,b);}Command[a8i(0x1e6)]({'name':a8i(0x1f6),'aliases':[a8i(0x1ef)],'usage':a8i(0x1e8),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x1ea),'examples':['maka\x20aws:describe-key-pairs','maka\x20aws:dkp']},async function(){const j=a8i;try{const a=new AWS();a[j(0x1f1)]();}catch(b){console[j(0x1ed)](b),process[j(0x1f3)](0x0);}},a8e);
@@ -1 +1 @@
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
+ const a9n=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(0x7b))/0x1+-parseInt(l(0x92))/0x2*(-parseInt(l(0x91))/0x3)+parseInt(l(0x8a))/0x4+parseInt(l(0x84))/0x5+parseInt(l(0x86))/0x6+-parseInt(l(0x6e))/0x7+-parseInt(l(0x73))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x91e4b));const a9b=(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;};}()),a9a=a9b(this,function(){const m=a9d;return a9a[m(0x93)]()['search'](m(0x77))[m(0x93)]()[m(0x7e)](a9a)['search'](m(0x77));});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-0x6e;let f=c[d];return f;},a9d(a,b);}function a9c(){const r=['22xGGuQI','toString','dsg','maka\x20aws:delete-sg','983745UxMjuu','confirm','Deleted\x20','create','Not\x20deleting\x20secuirty\x20group','1383880DLaqme','appName','Deleting\x20a\x20','sgId','(((.+)+)+)+$','success','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','includes','1182637usRFNB','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','constructor','maka\x20aws:dsg','error','ask','getSecurityGroups','getProjectConfig','5329470SYhEtb','exit','2755194GhhOpp','notice','\x20SGID:\x20','ID:\x20','1818160FkDgRg','\x20SG\x20NAME:\x20','deleteSecurityGroup','forEach','name','isMakaProject','delete-security-group','31119fGNJWQ'];a9c=function(){return r;};return a9c();}Command[a9n(0x71)]({'name':a9n(0x90),'aliases':[a9n(0x94)],'usage':a9n(0x95),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9n(0x7c),'examples':[a9n(0x95),a9n(0x7f)]},async function(){const o=a9n;try{const a=new AWS(),b=new FSI(),c=b[o(0x8f)]();let d='';if(c){const j=b[o(0x83)]();d=j[o(0x74)];}const {sgList:f}=await a[o(0x82)]();f[o(0x8d)](function(k){const p=o;c&&k['name'][p(0x7a)](d)?Log[p(0x87)](p(0x89)+k['id']+p(0x8b)+k[p(0x8e)]+'\x20SGID:\x20'+k[p(0x76)]):Log['bright'](p(0x89)+k['id']+p(0x8b)+k[p(0x8e)]+p(0x88)+k[p(0x76)]);});let g='';const h=await Actions[o(0x81)](o(0x79));f[o(0x8d)](function(k){const q=o;k['id']===parseInt(h)&&(g=k[q(0x76)]);});if(!g)throw Log[o(0x80)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[o(0x6f)](o(0x75)+g+o(0x7d),![]);i?(await a[o(0x8c)](g),Log[o(0x78)](o(0x70)+g)):Log['error'](o(0x72)),process[o(0x85)](0x0);}catch(k){process[o(0x85)](0x1);}},a9e);
@@ -1 +1 @@
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
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1bb))/0x1+parseInt(f(0x1b6))/0x2*(-parseInt(f(0x1ad))/0x3)+-parseInt(f(0x1ae))/0x4+parseInt(f(0x1c4))/0x5*(-parseInt(f(0x1aa))/0x6)+-parseInt(f(0x1b0))/0x7+-parseInt(f(0x1ac))/0x8*(parseInt(f(0x1b7))/0x9)+parseInt(f(0x1ba))/0xa*(parseInt(f(0x1b2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x81b96));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1bc)]()['search'](h(0x1b9))[h(0x1bc)]()[h(0x1a9)](a10a)[h(0x1ab)](h(0x1b9));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a10d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a10c(){const k=['4061190mgVgtX','chooseInstance','17182715AypURv','apply','error','reboot-instance','48XqomZt','27TwaFIa','\x20Ready?','(((.+)+)+)+$','20iyWhtG','84559gViefM','toString','running','confirm','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','ec2rebootInstance','exit','instanceId','rbi','649245cqQpAB','name','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','status','\x20is\x20still\x20running.','constructor','30eiRYdP','search','621496swvsdz','48855LPdSrw','3296092YlUiYI','maka\x20aws:reboot-instance'];a10c=function(){return k;};return a10c();}Command['create']({'name':a10i(0x1b5),'aliases':[a10i(0x1c3)],'usage':a10i(0x1af),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a10i(0x1af),'maka\x20aws:rbi']},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x1b1)]();if(b?.[j(0x1a7)]===j(0x1bd)){const c=await Actions[j(0x1be)](j(0x1a6)+b['name']+j(0x1b8));c&&b[j(0x1c2)]?a[j(0x1c0)]({'instanceId':b[j(0x1c2)]}):Log[j(0x1b4)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0x1c5)]+j(0x1a8));}else Log[j(0x1b4)](j(0x1bf));}catch(d){console[j(0x1b4)](d),process[j(0x1c1)](0x0);}},a10e);
@@ -1 +1 @@
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
+ const a11k=a11d;function a11c(){const n=['create','621966aXKFIl','165LdwbTE','2dAUpnl','\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','remove-key-pair','Please\x20choose\x20a\x20key\x20to\x20delete:','maka\x20aws:remove-key-pair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','rkp','772002aeFQTq','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','827984HTAwxF','error','76070eehZjj','apply','1258614OGIAug','ec2describeKeys','143008LUNgNM','exit','(((.+)+)+)+$','search','ask','toString','2501240rgThem','5TsIzXQ','constructor','confirm','9GlVyVH','Deleted\x20','name','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','deleteKeyPair'];a11c=function(){return n;};return a11c();}(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x80))/0x1*(-parseInt(h(0x92))/0x2)+-parseInt(h(0x99))/0x3+parseInt(h(0x9b))/0x4+parseInt(h(0x87))/0x5*(parseInt(h(0x90))/0x6)+-parseInt(h(0x9f))/0x7+parseInt(h(0x86))/0x8*(parseInt(h(0x8a))/0x9)+parseInt(h(0x9d))/0xa*(parseInt(h(0x91))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x26659));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a['toString']()[j(0x83)](j(0x82))[j(0x85)]()[j(0x88)](a11a)['search'](j(0x82));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x7f;let f=c[d];return f;},a11d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0x8f)]({'name':a11k(0x94),'aliases':[a11k(0x98)],'usage':a11k(0x96),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x8d),'description':a11k(0x93),'examples':[a11k(0x96),'maka\x20aws:rkp']},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0x7f)]();let c;const d=await Actions[l(0x84)](l(0x95));b?.['forEach'](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x8c)]);});if(!c)throw Log[l(0x9c)](l(0x9a));const f=await Actions[l(0x89)]('Deleting\x20a\x20'+c+l(0x97),![]);f?(a[l(0x8e)](c),Log['success'](l(0x8b)+c)):Log[l(0x9c)]('Not\x20deleting\x20keypair'),process[l(0x81)](0x0);}catch(g){process[l(0x81)](0x1);}},a11e);
@@ -1 +1 @@
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
+ const a12n=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x219))/0x1+parseInt(l(0x1ef))/0x2+-parseInt(l(0x1fc))/0x3*(-parseInt(l(0x1f9))/0x4)+-parseInt(l(0x203))/0x5+parseInt(l(0x200))/0x6*(parseInt(l(0x216))/0x7)+parseInt(l(0x217))/0x8*(-parseInt(l(0x204))/0x9)+parseInt(l(0x1f4))/0xa*(-parseInt(l(0x1fa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x6fd42));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(0x21a)]()['search'](m(0x20f))[m(0x21a)]()['constructor'](a12a)[m(0x20b)](m(0x20f));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12c(){const p=['privateIp','\x20IP\x20to\x20','search','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','ssh.json','getProjectConfig','(((.+)+)+)+$','config/ssh.json','env','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','parse','join','success','119xrRfxX','40LZEWBW','isFile','250097TtiAsn','toString','\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','public','916994kILPIH','fsi','error','stringify','sep','550780umNxqE','create','host','exit','template','2504JzyXwQ','55dcKTRz','private','57SgmfTa','appName','maka\x20aws:set-host\x20--env\x20dev','maka\x20aws:sth\x20--env\x20prod','211962eZwgiG','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','readFileSync','168610HZBMxE','996993EWWkxk','\x0aSaved\x20host\x20','cat\x20','sth','ask'];a12c=function(){return p;};return a12c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12n(0x1f5)]({'name':'set-host','aliases':[a12n(0x207)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a12n(0x211)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12n(0x212),'description':a12n(0x21b),'examples':[a12n(0x1fe),a12n(0x1ff)]},async function(a,b){const o=a12n;try{const c=new AWS(),d=this[o(0x1f0)]['getConfigPath'](b[o(0x211)]),f=this[o(0x1f0)][o(0x20e)](),g=await c['chooseInstance'](),h=a12e['join'](d,o(0x20d));!this[o(0x1f0)][o(0x218)](h)&&await this[o(0x1f0)][o(0x1f8)]({'srcPath':o(0x210),'destPath':h,'context':{'app':f[o(0x1fd)]},'config':f});const i=JSON[o(0x213)](a12f[o(0x202)](h,'utf8')),j=await Actions[o(0x208)](o(0x20c))||'public';if(j){if(j===o(0x21c)||j==='private'){if(j===o(0x21c))i[o(0x1f6)]=g?.['publicIp'];else j===o(0x1fb)&&(i[o(0x1f6)]=g?.[o(0x209)]);}else throw o(0x201);}else i[o(0x1f6)]=g?.[o(0x209)];a12f['writeFileSync'](a12e[o(0x214)](d,'ssh.json'),JSON[o(0x1f2)](i,null,0x2)),execSync(o(0x206)+a12e[o(0x214)](d,o(0x20d)),{'stdio':'inherit'}),Log[o(0x215)](o(0x205)+j+o(0x20a)+d+a12e[o(0x1f3)]+o(0x20d));}catch(k){console[o(0x1f1)](k),process[o(0x1f7)](0x0);}},a12g);
@@ -1 +1 @@
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
+ function a13c(){const j=['exit','create','error','9BdAshb','30AIMDQR','confirm','910884aFDmtq','3454936JYNLAO','search','1471419OgqLoY','2613620lsMWap','\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','constructor','63921hYXZOx','(((.+)+)+)+$','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','instanceId','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','running','toString','status','maka\x20aws:ti','terminate-instance','\x20Ready?','623875RSDBEK','3115650AnGSHm','2YUhrih','name','maka\x20aws:terminate-instance'];a13c=function(){return j;};return a13c();}const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0x1b2))/0x1+parseInt(f(0x1a2))/0x2*(-parseInt(f(0x1ae))/0x3)+-parseInt(f(0x1ab))/0x4+parseInt(f(0x1af))/0x5+-parseInt(f(0x1a9))/0x6*(-parseInt(f(0x1a0))/0x7)+parseInt(f(0x1ac))/0x8*(parseInt(f(0x1a8))/0x9)+-parseInt(f(0x1a1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x6a0ca));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(0x19b)]()[g(0x1ad)](g(0x1b3))['toString']()[g(0x1b1)](a13a)[g(0x1ad)]('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x19b;let f=c[d];return f;},a13d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a13h(0x1a6)]({'name':a13h(0x19e),'aliases':['ti'],'usage':a13h(0x1a4),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a13h(0x1b0),'examples':[a13h(0x1a4),a13h(0x19d)]},async function(){const i=a13h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[i(0x1b6)]&&b?.[i(0x19c)]===i(0x1b8)){const c=await Actions[i(0x1aa)](i(0x1b5)+b[i(0x1a3)]+i(0x19f));c?a['ec2terminateInstance']({'instanceId':b[i(0x1b6)]}):Log[i(0x1a7)](i(0x1b7)+b[i(0x1a3)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log['error'](i(0x1b4));}catch(d){console[i(0x1a7)](d),process[i(0x1a5)](0x0);}},a13e);
@@ -1 +1 @@
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
+ (function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x97))/0x1+parseInt(f(0x8f))/0x2*(-parseInt(f(0x90))/0x3)+parseInt(f(0x94))/0x4*(parseInt(f(0x92))/0x5)+parseInt(f(0x8c))/0x6*(parseInt(f(0x8b))/0x7)+-parseInt(f(0x98))/0x8+-parseInt(f(0x93))/0x9*(-parseInt(f(0x95))/0xa)+-parseInt(f(0x8d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x9a75f));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x91)]()['search'](h(0x8a))[h(0x91)]()['constructor'](a14a)[h(0x96)](h(0x8a));});a14a();function a14c(){var i=['2367568MteddP','(((.+)+)+)+$','6320510nESPpM','6hgwnbF','13350238ikedPb','apply','398ZRXhvd','3918zSDRYF','toString','4205OmXBGu','1044081pCGprw','4232MWgAav','10fBCYyK','search','493452LnGrly'];a14c=function(){return i;};return a14c();}function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x8a;var f=c[d];return f;},a14d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=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
+ const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=-parseInt(p(0x8b))/0x1+-parseInt(p(0x8a))/0x2+parseInt(p(0xa0))/0x3+-parseInt(p(0x94))/0x4*(-parseInt(p(0x97))/0x5)+-parseInt(p(0x92))/0x6+parseInt(p(0x96))/0x7+-parseInt(p(0x8f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x2d5ec));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x93)]()[r(0x82)](r(0x84))[r(0x93)]()[r(0x90)](a15a)[r(0x82)](r(0x84));});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['create']({'name':'build','usage':'maka\x20build\x20<opts>','validOpts':[a15s(0xa7),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x83),'mustBeInMakaProject':!![],'description':a15s(0x91),'examples':[a15s(0x99),a15s(0x88)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0xa8)](c);if(d)this['runSubCommand'](c,a,b);else{const f=b[t(0xa7)];if(!f){const i=this[t(0x87)][t(0x86)](),j=this['fsi']['getProjectMeteorVersion'](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x9e)](t(0x8d)+j+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+i+t(0xa3));l&&this[t(0x87)][t(0x98)](t(0x9c),[t(0x9d),i]);}}const g=[this[t(0x87)][t(0x9f)]({'pathParts':[t(0x9b)]})][t(0x89)](process[t(0x9a)][t(0xa1)](0x3)),h=a15e[t(0x8c)](this[t(0x87)][t(0x9f)]({}),t(0x9b),t(0x85));if(a15f[t(0xa4)](h)){const m=f??await Actions[t(0x9e)](t(0xa6));if(!m)throw Log['error'](t(0x81));}g[t(0xa5)]((n,o)=>{const u=t;n===u(0x95)&&g[u(0x8e)](o,0x2);}),this['fsi'][t(0x98)](t(0x9b),g);}}catch(n){console['error'](n),process['exit'](0x0);}});export default BuildCommand;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x81;let f=c[d];return f;},a15d(a,b);}function a15c(){const v=['532976HyHRhu','constructor','\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','70974uKwCEH','toString','56ARTCRW','--force','475125MEHXtg','90290kPCVmZ','invokeMeteorCommand','maka\x20build','argv','build','update','--release','confirm','pathFromProject','381558rdUNaY','slice','apply',').\x20Update?','existsSync','forEach','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','force','findSubCommand','Aborted.','search','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','(((.+)+)+)+$','app.tar.gz','getGlobalMeteorVersion','fsi','maka\x20build:docker','concat','323490bMmJaC','21841PLauOW','join','This\x20project\x27s\x20meteor\x20version\x20(','splice'];a15c=function(){return v;};return a15c();}
@@ -1 +1 @@
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);
1
+ function a16c(){const K=['--progress=plain\x20--no-cache','create','14gJjvPL','pm2.config.js','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','findAppDirectory','debug','serverPort','N/A','error','maka\x20build:docker\x20<opts>','build','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','os.linux.x86_64','978778NNARJV','://','exit','(((.+)+)+)+$','existsSync','docker-compose.yaml','inherit','meteor','Dockerfile','isFile','appName','length','app','invoke','456885gYgpci','359550JNrppR','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).','--architecture','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','toString','Tagging\x20Docker\x20Image:\x20','.maka','[*]\x20maka\x20','mkdirSync','constructor','config','serverName',':latest','config/pm2.config.js','platforms','201006ykwbPB','ignore','getProjectsMeteorNodeVersion','force','confirm','Mobile\x20server\x20port:\x20','docker','config.json','Stored\x20server\x20config\x20to\x20','notice','fsi','readFileLines','-t\x20','meteor.bat','dockerfile','findGenerator','--server=','isDirectory','setProjectConfig','232ImaTEW','apply','cert','571038OEkWpo','982070cjXcZB','push','search','maka\x20build:docker\x20--debug','443','platform','1142696GnJOmM','ask','\x20npm\x20install\x20--save','_keys','join','template','https','pathFromProject','tag'];a16c=function(){return K;};return a16c();}const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x1db))/0x1+parseInt(F(0x1cd))/0x2+parseInt(F(0x1af))/0x3+-parseInt(F(0x1b6))/0x4+parseInt(F(0x1b0))/0x5+-parseInt(F(0x1dc))/0x6*(parseInt(F(0x1c1))/0x7)+parseInt(F(0x1fe))/0x8*(-parseInt(F(0x1eb))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x44510));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x1e0)]()[H(0x1b2)](H(0x1d0))['toString']()[H(0x1e5)](a16a)[H(0x1b2)]('(((.+)+)+)+$');});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';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a16d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a16I(0x1c0)]({'name':a16I(0x1f1),'aliases':['d'],'usage':a16I(0x1c9),'validOpts':[a16I(0x1ee),a16I(0x1be),a16I(0x1c5)],'shortDesc':a16I(0x1df),'description':'\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','mustBeInMakaProject':!![],'examples':['maka\x20build:docker\x20--tag',a16I(0x1b3)]},async function(a,b){const J=a16I;try{const c=await this['fsi']['getGlobalConfig'](),d=await this[J(0x1f5)]['getProjectConfig'](),f=await this['fsi'][J(0x1ed)]();f===J(0x1c7)&&(Log['error'](J(0x1dd)),process[J(0x1cf)](0x1));const g=process[J(0x1b5)]==='win32'?J(0x1f8):J(0x1d4),h=this[J(0x1f5)][J(0x1bd)]({}),i=a16f[J(0x1ba)](h,J(0x1d5));if(!this[J(0x1f5)][J(0x1d6)](i)){const s=a16h['findGenerator'](J(0x1f9));s&&await s['invoke'](['dockerfile'],{'cwd':h,'config':d});}const j=this['fsi']['checkConfigExists'](J(0x1f1));if(!j){const t=a16h[J(0x1fa)](J(0x1e6));if(t){await t[J(0x1da)]([J(0x1f1)],{'cwd':h,'config':d,'isDocker':!![]});const u=this['fsi']['getConfigPath'](J(0x1f1)),v=a16f[J(0x1ba)](u,J(0x1c2));await this[J(0x1f5)][J(0x1bb)]({'srcPath':J(0x1e9),'destPath':v,'context':{'app':d['appName'],'isDocker':![]},'config':d});const w=a16f['join'](u,J(0x1d2));await this['fsi'][J(0x1bb)]({'srcPath':'config/docker-compose.yaml','destPath':w,'context':{'app':d[J(0x1d7)],'appFileCase':paramCase(d[J(0x1d7)])},'config':d});}}if(this[J(0x1f5)]['isFile'](c[J(0x1ae)])){const x=this[J(0x1f5)][J(0x1fc)](a16f[J(0x1ba)](J(0x1e6),J(0x1f1),J(0x1b9)));!x&&a16g[J(0x1e4)](a16f[J(0x1ba)](J(0x1e6),'docker',J(0x1b9))),a16g['copyFileSync'](c[J(0x1ae)],a16f['join'](h,'config',J(0x1f1),J(0x1b9),'cert.pem'));}const k=[J(0x1ca),a16f[J(0x1ba)](this['fsi']['findProjectDirectory'](),'build'),J(0x1de),J(0x1cc)],l=this[J(0x1f5)][J(0x1f6)](a16f[J(0x1ba)](this[J(0x1f5)][J(0x1bd)]({}),J(0x1d9),'.meteor',J(0x1ea))),m=l[J(0x1d8)]>0x2?!![]:![];if(m){const y=d[J(0x1e7)]?d[J(0x1e7)]:await Actions[J(0x1b7)](J(0x1cb)),z=d[J(0x1c6)]?d[J(0x1c6)]:await Actions[J(0x1b7)](J(0x1f0));if(y[J(0x1d8)]==0x0||z[J(0x1d8)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z==J(0x1b4)?J(0x1bc):'http';k[J(0x1b1)](J(0x1fb)+A+J(0x1ce)+y+':'+z);if(!d[J(0x1e7)]&&!d[J(0x1c6)]){const B=await Actions[J(0x1ef)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this['fsi']['setProjectConfig']('serverName',y),this[J(0x1f5)][J(0x1fd)](J(0x1c6),z),Log[J(0x1f4)](J(0x1f3)+a16f[J(0x1ba)](J(0x1e2),J(0x1f2))));}}const n=a16f['join'](this['fsi'][J(0x1bd)]({}),J(0x1ca),'app.tar.gz');if(a16g[J(0x1d1)](n)){const C=await Actions[J(0x1ef)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),D=C;D&&(execSync(g+J(0x1b8),{'cwd':this['fsi'][J(0x1c4)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[J(0x1ba)]('\x20'),{'cwd':this[J(0x1f5)][J(0x1c4)](),'stdio':J(0x1d3)}));}else execSync(g+J(0x1b8),{'cwd':this[J(0x1f5)]['findAppDirectory'](),'stdio':J(0x1ec)}),Log[J(0x1f4)](J(0x1e3)+k[J(0x1ba)]('\x20')),execSync(g+'\x20'+k[J(0x1ba)]('\x20'),{'cwd':this[J(0x1f5)][J(0x1c4)](),'stdio':J(0x1d3)});const o=this[J(0x1f5)]['pathFromProject']({});let p='-t\x20'+paramCase(d['appName'])+J(0x1e8);b[J(0x1be)]&&(p=J(0x1f7)+b[J(0x1be)]);Log['notice'](J(0x1c3)+f),Log[J(0x1f4)](J(0x1e1)+p),Log[J(0x1f4)]('Docker\x20Context\x20Path:\x20'+o);const q=b[J(0x1c5)]?J(0x1bf):'',r='docker\x20build\x20--build-arg\x20NODE_VERSION='+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x1d3)}),Log[J(0x1f4)]('Try\x20\x27maka\x20run:docker\x27');}catch(E){console[J(0x1c8)](E),process['exit'](0x0);}},a16e);