@maka/maka-cli 4.5.2 → 4.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) 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/templates/meteor/app/imports/startup/client/index.js.jsx +20 -6
  80. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +21 -7
  81. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +10 -0
  82. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +10 -0
  83. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +25 -14
  84. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +25 -13
  85. package/bundle/obf/src/templates/meteor/template/template.js.jsx +1 -1
  86. package/bundle/obf/src/templates/meteor/template/template.js.tsx +1 -1
  87. package/bundle/obf/src/templates/react/component/component.js.jsx +2 -6
  88. package/bundle/obf/src/templates/react/component/component.js.tsx +2 -6
  89. package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -5
  90. package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -5
  91. package/bundle/obf/src/tool.js +1 -1
  92. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  93. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  94. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  95. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  96. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  97. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  98. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  99. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  100. package/bundle/obf/src/tools/https/https.class.js +1 -1
  101. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  102. package/bundle/obf/src/tools/log/log.class.js +1 -1
  103. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  104. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  105. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  106. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  107. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  108. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  109. 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.2",
4
+ "version": "4.5.5",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x18d))/0x1*(parseInt(p(0x199))/0x2)+-parseInt(p(0x1d5))/0x3*(parseInt(p(0x1a6))/0x4)+parseInt(p(0x1bf))/0x5+parseInt(p(0x1c8))/0x6+parseInt(p(0x187))/0x7+-parseInt(p(0x1b4))/0x8+-parseInt(p(0x19b))/0x9*(parseInt(p(0x1af))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x2915d));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['toString']()['search'](r(0x1a2))[r(0x19e)]()[r(0x1b5)](a0a)['search'](r(0x1a2));});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x183;let f=c[d];return f;},a0d(a,b);}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';function a0c(){const E=['keys','27260ftXzPu','mustHaveMeteorInstalled','exit','run','findSubCommand','2238776tzFQhD','constructor','Too\x20few\x20arguments','apply','Command\x20not\x20found','Command\x20requires\x20a\x20name','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','forEach','find','proCommands','minOptsLength','1278015RUINEg','roles','notice','Command\x20requires\x20a\x20handler\x20function','length','options','validateMeteorInstall','maxOptsLength','invoke','1199754ggwIvP','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','call','murder','number','deploy','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Sub-Commands:','Command.create\x20requires\x20some\x20options!','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','assign','push','687WYJQvF','usage','bright','join','split','2141951UAxIzA','runSubCommand','proFlags','tableList','singleLicense','fsi','6UmGppF','findCommand','getPro','_handler','includes','error','maxArgLength','function','Description','play','validateMakaSubscription','Too\x20few\x20options','96546NfHCic','header','1269GEjURk','name','sort','toString','parent','_commands','There\x20is\x20no\x20Meteor\x20application\x20here','(((.+)+)+)+$','Too\x20many\x20arguments','filter','splice','3820wbgHMV','minArgLength','shortDesc','Too\x20many\x20options','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','help','mustBeInMakaProject','addCommand'];a0c=function(){return E;};return a0c();}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0s(0x1c4)];[a0s(0x1a0)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1aa));if(!a['name'])throw new Error(t(0x1b9));if(typeof b!==t(0x194))throw new Error(t(0x1c2));this[t(0x1c4)]=Object[t(0x1d3)]({},a),this[t(0x19c)]=this[t(0x1c4)][t(0x19c)],this[t(0x1a0)]=[],this[t(0x190)]=b['bind'](this);}static['create'](a,b,c){const u=a0s;if(!a)throw new Error(u(0x1d1));if(typeof b!==u(0x194))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[u(0x1d3)](d,{'parent':c?.['options']?.[u(0x19c)]}),c[u(0x1ad)](d),d;}[a0s(0x1ad)](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][v(0x1d4)](a);}async[a0s(0x197)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x19c)]||a[0x0],e=c?.[w(0x19f)]||'',f=c?.['options'];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object[w(0x1ae)](b),i=await this[w(0x18c)][w(0x18f)]();!i&&(Log[w(0x192)](w(0x1c9)),process[w(0x1b1)](0x1));const j=i?.[w(0x1bd)][w(0x191)](d)||i?.[w(0x1bd)]['includes'](e),k=i?.['roles'][w(0x191)](w(0x18b))||i?.[w(0x1c0)][w(0x191)]('domainLicense'),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x1d2);if(h[w(0x1c3)]>0x0){const m=i?.[w(0x189)][w(0x1a4)](n=>h[w(0x191)](n));if(m&&m[w(0x1c3)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.[w(0x185)](',\x20')+w(0x1d2);}if(g===w(0x1ce)){const n=await this[w(0x18c)][w(0x18f)](),o=n?.[w(0x1bd)][w(0x191)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x1d2);}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x197)](a,b);}catch(c){Log[x(0x192)](c),process[x(0x1b1)](0x0);}await this[x(0x1c7)](a,b);}catch(d){process[x(0x1b1)](0x1);}}async[a0s(0x1c7)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![]}=this[y(0x1c4)];try{if(this[y(0x1c4)][y(0x19c)]!=='generate'){if(!isRoot){const d=(a[0x0]===_prevCmd||a[y(0x1c3)]===0x0)&&this[y(0x1a0)][y(0x1c3)]>=0x0;if(d&&b[y(0x1ab)]){if(this[y(0x1a0)][y(0x1c3)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x1ab)]){if(this[y(0x1c4)][y(0x1ac)]){const f=this['validateMakaProject']();if(!f)throw new MustBeInProjectError();}if(this['options'][y(0x1b0)]){const g=this[y(0x1c5)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[y(0x1c4)][y(0x1a7)]===y(0x1cd)){if(a[y(0x1c3)]<this[y(0x1c4)]['minArgLength']){Log['error'](y(0x1b6));throw new UsageError();}}if(typeof this['options'][y(0x193)]==='number'){if(a[y(0x1c3)]>=this[y(0x1c4)][y(0x193)]){Log['error'](y(0x1a3));throw new UsageError();}}if(typeof this[y(0x1c4)][y(0x1be)]===y(0x1cd)){if(Object[y(0x1ae)](b)[y(0x1c3)]<this[y(0x1c4)][y(0x1be)]){Log[y(0x192)](y(0x198));throw new UsageError();}}if(typeof this[y(0x1c4)][y(0x1c6)]===y(0x1cd)){if(Object[y(0x1ae)](b)[y(0x1c3)]>=this[y(0x1c4)][y(0x1c6)]){Log[y(0x192)](y(0x1a9));throw new UsageError();}}}}this['validateParams'](a,b,this[y(0x1c4)]),_prevCmd=a[0x0];}await this[y(0x190)][y(0x1cb)](this,a,b);}catch(h){Log[y(0x183)](description,examples,usage,c);if(h instanceof UsageErrorWithSubs)Log[y(0x1c1)](y(0x1d0)),this['tableList'](this[y(0x1a0)]),Log[y(0x19a)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(h instanceof MustBeInProjectError)Log['error'](y(0x1ba));else{if(h instanceof NoMeteorFoundError)Log[y(0x192)](y(0x1ca)),Log[y(0x1c1)](y(0x1cf));else{if(h instanceof NoMeteorAppFoundError)Log['error'](y(0x1a1));else throw h;}}}process[y(0x1b1)](0x1);}}[a0s(0x18a)](a){const z=a0s,b=new a0e({});b[z(0x1d4)](['Name','Alias',z(0x195)]),a[z(0x19d)]()[z(0x1bb)](c=>{const A=z;c[A(0x19c)]!==A(0x1cc)&&c[A(0x19c)]!==A(0x196)&&b[A(0x1d4)]([c[A(0x19c)],c['aliases'](),c[A(0x1a8)]()]);}),Log[z(0x184)](b[z(0x19e)]());}['findCommand'](a){const B=a0s;return this['_commands'][B(0x1bc)](b=>b['match'](a));}[a0s(0x1b3)](a){const C=a0s,b=a?.[C(0x186)](':');if(b)return a=b[0x0],this[C(0x18e)](a);else return;}async[a0s(0x188)](a,b,c){const D=a0s;try{const d=a[D(0x186)](':');a=d[0x0];const f=d[0x1];f&&b[D(0x1a5)](0x0,0x0,f);const g=this[D(0x18e)](a);if(g)await g[D(0x1b2)](b,c);else throw D(0x1b8);}catch(h){throw Log[D(0x192)](h);}}}
1
+ const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x12b))/0x1+parseInt(p(0xda))/0x2*(-parseInt(p(0x107))/0x3)+-parseInt(p(0xe1))/0x4*(-parseInt(p(0xef))/0x5)+parseInt(p(0xe5))/0x6*(parseInt(p(0x113))/0x7)+parseInt(p(0x11f))/0x8+parseInt(p(0xfa))/0x9*(parseInt(p(0x109))/0xa)+-parseInt(p(0x12e))/0xb*(parseInt(p(0x112))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x3735d));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const q=a0d;return a0a[q(0xf1)]()['search']('(((.+)+)+)+$')[q(0xf1)]()['constructor'](a0a)[q(0xdc)](q(0x12c));});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd8;let f=c[d];return f;},a0d(a,b);}function a0c(){const D=['Too\x20few\x20arguments','keys','run','maxArgLength','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','_commands','2044592coyZij','Sub-Commands:','splice','singleLicense','Too\x20many\x20arguments','sort','validateMakaSubscription','bind','domainLicense','help','includes','error','146175AaGydH','(((.+)+)+)+$','getPro','33loGdai','Command\x20requires\x20a\x20name','_handler','58IDFWwQ','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','search','Alias','deploy','generate','tableList','9608aWAaVb','addCommand\x20requires\x20a\x20Command\x20instance','length','options','24mJoPpL','mustHaveMeteorInstalled','aliases','shortDesc','usage','call','Name','findCommand','notice','Command.create\x20requires\x20a\x20handler\x20function!','335koECXk','play','toString','runSubCommand','push','create','Please\x20run\x20\x22maka\x20install\x20meteor\x22','exit','number','join','assign','207Xrqgpd','mustBeInMakaProject','split','header','invoke','roles','minArgLength','fsi','minOptsLength','To\x20use\x20this\x20command,\x20\x22','Too\x20many\x20options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','proCommands','1527AkGqvB','validateMakaProject','86780adcasG','function','Too\x20few\x20options','Command\x20requires\x20a\x20handler\x20function','find','murder','To\x20use\x20these\x20pro\x20flags,\x20\x22','match','parent','3369036KwFjud','561547uPmeDs','bright','addCommand','forEach','maxOptsLength','name'];a0c=function(){return D;};return a0c();}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];['_commands'];constructor(a,b){const r=a0d;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[r(0x118)])throw new Error(r(0xd8));if(typeof b!==r(0x10a))throw new Error(r(0x10c));this[r(0xe4)]=Object['assign']({},a),this[r(0x118)]=this[r(0xe4)][r(0x118)],this[r(0x11e)]=[],this['_handler']=b[r(0x126)](this);}static[a0s(0xf4)](a,b,c){const t=a0s;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(t(0xee));const d=new Command(a,b);return c=c||a0f,Object[t(0xf9)](d,{'parent':c?.[t(0xe4)]?.[t(0x118)]}),c['addCommand'](d),d;}[a0s(0x115)](a){const u=a0s;if(!(a instanceof Command))throw new Error(u(0xe2));this[u(0x11e)][u(0xf3)](a);}async['validateMakaSubscription'](a,b){const v=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[v(0x118)]||a[0x0],e=c?.[v(0x111)]||'',f=c?.[v(0xe4)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object['keys'](b),i=await this[v(0x101)][v(0x12d)]();!i&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[v(0xf6)](0x1));const j=i?.[v(0x106)]['includes'](d)||i?.['proCommands'][v(0x129)](e),k=i?.[v(0xff)][v(0x129)](v(0x122))||i?.[v(0xff)][v(0x129)](v(0x127)),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+v(0xdb);if(h[v(0xe3)]>0x0){const m=i?.['proFlags']['filter'](n=>h[v(0x129)](n));if(m&&m[v(0xe3)]>0x0&&l)throw v(0x10f)+m?.[v(0xf8)](',\x20')+v(0xdb);}if(g===v(0xde)){const n=await this[v(0x101)]['getPro'](),o=n?.[v(0x106)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw v(0x103)+a[0x0]+v(0xdb);}}}async['run'](a,b){const w=a0s;try{a=a||[],b=b||{};try{await this[w(0x125)](a,b);}catch(c){Log[w(0x12a)](c),process[w(0xf6)](0x0);}await this[w(0xfe)](a,b);}catch(d){process[w(0xf6)](0x1);}}async['invoke'](a,b){const x=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[x(0xe4)];try{if(this[x(0xe4)][x(0x118)]!==x(0xdf)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[x(0xe3)]===0x0)&&this[x(0x11e)]['length']>=0x0;if(f&&b[x(0x128)]){if(this[x(0x11e)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[x(0x128)]){if(this[x(0xe4)][x(0xfb)]){const g=this[x(0x108)]();if(!g)throw new MustBeInProjectError();}if(this[x(0xe4)][x(0xe6)]){const h=this['validateMeteorInstall']();if(!h)throw new NoMeteorFoundError();}if(typeof this[x(0xe4)][x(0x100)]===x(0xf7)){if(a[x(0xe3)]<this[x(0xe4)]['minArgLength']){Log['error'](x(0x119));throw new UsageError();}}if(typeof this[x(0xe4)][x(0x11c)]==='number'){if(a[x(0xe3)]>=this[x(0xe4)]['maxArgLength']){Log['error'](x(0x123));throw new UsageError();}}if(typeof this[x(0xe4)][x(0x102)]===x(0xf7)){if(Object[x(0x11a)](b)[x(0xe3)]<this['options']['minOptsLength']){Log[x(0x12a)](x(0x10b));throw new UsageError();}}if(typeof this[x(0xe4)][x(0x117)]===x(0xf7)){if(Object['keys'](b)[x(0xe3)]>=this[x(0xe4)][x(0x117)]){Log['error'](x(0x104));throw new UsageError();}}}}this['validateParams'](a,b,this[x(0xe4)]),_prevCmd=a[0x0];}await this[x(0xd9)][x(0xea)](this,a,b);}catch(i){Log[x(0xe9)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[x(0xed)](x(0x120)),this[x(0xe0)](this['_commands']),Log[x(0xfd)](x(0x11d));else{if(i instanceof MustBeInProjectError)Log[x(0x12a)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log[x(0x12a)](x(0x105)),Log[x(0xed)](x(0xf5));else{if(i instanceof NoMeteorAppFoundError)Log[x(0x12a)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw i;}}}process[x(0xf6)](0x1);}}[a0s(0xe0)](a){const y=a0s,b=new a0e({});b[y(0xf3)]([y(0xeb),y(0xdd),'Description']),a[y(0x124)]()[y(0x116)](c=>{const z=y;c[z(0x118)]!==z(0x10e)&&c[z(0x118)]!==z(0xf0)&&b[z(0xf3)]([c[z(0x118)],c[z(0xe7)](),c[z(0xe8)]()]);}),Log[y(0x114)](b[y(0xf1)]());}['findCommand'](a){const A=a0s;return this[A(0x11e)][A(0x10d)](b=>b[A(0x110)](a));}['findSubCommand'](a){const B=a0s,b=a?.['split'](':');if(b)return a=b[0x0],this[B(0xec)](a);else return;}async[a0s(0xf2)](a,b,c){const C=a0s;try{const d=a[C(0xfc)](':');a=d[0x0];const f=d[0x1];f&&b[C(0x121)](0x0,0x0,f);const g=this[C(0xec)](a);if(g)await g[C(0x11b)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log[C(0x12a)](h);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x148))/0x1+-parseInt(f(0x146))/0x2*(parseInt(f(0x145))/0x3)+parseInt(f(0x14a))/0x4+-parseInt(f(0x140))/0x5*(-parseInt(f(0x13f))/0x6)+parseInt(f(0x143))/0x7+parseInt(f(0x13e))/0x8+parseInt(f(0x141))/0x9*(-parseInt(f(0x144))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x4bb15));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a['toString']()[g(0x149)](g(0x147))[g(0x142)]()['constructor'](a1a)['search'](g(0x147));});a1a();import'./aws/_index.js';import'./set/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x13e;var f=c[d];return f;},a1d(a,b);}import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';function a1c(){var h=['86328LhsERR','3318EdenTf','4845aOqTfk','2931183ZTHUnl','toString','484694lRRORH','10scPkmo','22329afSKLj','62xDiyTV','(((.+)+)+)+$','27374zJMaRj','search','892772cPgOff'];a1c=function(){return h;};return a1c();}import'./murder.js';import'./proxy.js';import'./lint.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x1f7))/0x1*(-parseInt(f(0x1f5))/0x2)+-parseInt(f(0x1f6))/0x3*(parseInt(f(0x1ff))/0x4)+parseInt(f(0x1f4))/0x5+-parseInt(f(0x1fe))/0x6*(parseInt(f(0x1f3))/0x7)+-parseInt(f(0x1fb))/0x8+-parseInt(f(0x1f1))/0x9+-parseInt(f(0x1fd))/0xa*(-parseInt(f(0x1f9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x94d3a));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1f8)]()[h(0x1f0)]('(((.+)+)+)+$')['toString']()[h(0x1fa)](a1a)['search'](h(0x1fc));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';function a1c(){var i=['search','9332982oGyQAM','apply','91EPkGdi','3966930qOzwsh','9610EVJNIG','3sBzSlc','57QdCsiA','toString','11DZfbHz','constructor','9746488UiCOdj','(((.+)+)+)+$','23063570dTaAFA','39396jlhAtl','1693468VIaTZx'];a1c=function(){return i;};return a1c();}import'./create.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1f0;var f=c[d];return f;},a1d(a,b);}import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
@@ -1 +1 @@
1
- (function(a,b){var f=a2d,c=a();while(!![]){try{var d=-parseInt(f(0x15e))/0x1+-parseInt(f(0x15f))/0x2+-parseInt(f(0x162))/0x3*(parseInt(f(0x168))/0x4)+-parseInt(f(0x169))/0x5+-parseInt(f(0x165))/0x6+parseInt(f(0x161))/0x7+parseInt(f(0x166))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xcd1af));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x167)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0x15d)]()[h(0x163)](h(0x160))[h(0x15d)]()[h(0x164)](a2a)[h(0x163)](h(0x160));});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x15d;var f=c[d];return f;},a2d(a,b);}import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2c(){var i=['49223616YvfeMf','apply','72BlknUA','5441355nDEFbU','toString','787107YQGHIn','3070940vOETVy','(((.+)+)+)+$','1401638aILgto','194670CzUczg','search','constructor','5605242zFozkk'];a2c=function(){return i;};return a2c();}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 a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xc1;var f=c[d];return f;},a2d(a,b);}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0xc9))/0x1*(-parseInt(f(0xc1))/0x2)+parseInt(f(0xc4))/0x3*(-parseInt(f(0xc7))/0x4)+-parseInt(f(0xc2))/0x5+-parseInt(f(0xcc))/0x6+parseInt(f(0xca))/0x7+parseInt(f(0xc5))/0x8+parseInt(f(0xc3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe3d62));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a['toString']()['search'](h(0xc8))[h(0xc6)]()['constructor'](a2a)['search'](h(0xc8));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';function a2c(){var i=['apply','3201348tgsKaI','20AsTjUI','2245390MNVkoZ','9308115Gzftka','11751QsuhgH','5857864dRYRZQ','toString','124jzNnUi','(((.+)+)+)+$','34894cuARDv','4338271QTBzwK'];a2c=function(){return i;};return a2c();}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
@@ -1 +1 @@
1
- const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0xcb))/0x1+parseInt(f(0xcd))/0x2*(-parseInt(f(0xc9))/0x3)+-parseInt(f(0xd1))/0x4*(-parseInt(f(0xd2))/0x5)+-parseInt(f(0xd0))/0x6+parseInt(f(0xd4))/0x7+-parseInt(f(0xca))/0x8+parseInt(f(0xc7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x5435f));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0xc6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0xc3)]()[h(0xc8)](h(0xc4))[h(0xc3)]()['constructor'](a3a)['search'](h(0xc4));});a3a();import{Command}from'../../command.js';function a3c(){const k=['514775PIIVwa','aws','88DqQUDy','findSubCommand','runSubCommand','2719602WlKcEK','7204HaLkbf','1730qKvSHb','\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','2090571pzGztD','Sub\x20Command\x20not\x20found','maka\x20aws:<sub-command>','toString','(((.+)+)+)+$','error','apply','9524277DjBwYe','search','4443AVFkxj','4815352SCCSUa'];a3c=function(){return k;};return a3c();}import{Log}from'../../tools/log/log.class.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xc1;let f=c[d];return f;},a3d(a,b);}import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command['create']({'name':a3i(0xcc),'usage':a3i(0xc2),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a3i(0xd3)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0xce)](c);if(d)this[j(0xcf)](c,a,b);else{Log[j(0xc5)](j(0xc1));throw new UsageErrorWithSubs();}});export default AWSCommand;
1
+ const a3i=a3d;function a3c(){const k=['1473575ivUHCL','runSubCommand','create','Sub\x20Command\x20not\x20found','apply','(((.+)+)+)+$','aws','301ExgLLB','maka\x20aws:<sub-command>','findSubCommand','error','458634cVifiK','search','329eFoylV','11ezxcnU','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','toString','2148490ohelpl','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','1662TKJbot','9TptOIV','1594DYPBpT','797056hUsRRl','1164408RLbLAJ'];a3c=function(){return k;};return a3c();}(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0x196))/0x1*(-parseInt(f(0x18c))/0x2)+-parseInt(f(0x19a))/0x3+-parseInt(f(0x18e))/0x4+parseInt(f(0x18f))/0x5+parseInt(f(0x1a2))/0x6*(parseInt(f(0x19c))/0x7)+-parseInt(f(0x18d))/0x8*(parseInt(f(0x18b))/0x9)+-parseInt(f(0x1a0))/0xa*(-parseInt(f(0x19d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x356f4));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x19f)]()[h(0x19b)](h(0x194))[h(0x19f)]()['constructor'](a3a)[h(0x19b)](h(0x194));});a3a();function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x18b;let f=c[d];return f;},a3d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0x191)]({'name':a3i(0x195),'usage':a3i(0x197),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0x19e),'description':a3i(0x1a1)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x198)](c);if(d)this[j(0x190)](c,a,b);else{Log[j(0x199)](j(0x192));throw new UsageErrorWithSubs();}});export default AWSCommand;
@@ -1 +1 @@
1
- function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x118;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(0x11a))/0x1+-parseInt(ae(0x178))/0x2+-parseInt(ae(0x170))/0x3+parseInt(ae(0x13d))/0x4*(-parseInt(ae(0x176))/0x5)+parseInt(ae(0x179))/0x6+parseInt(ae(0x158))/0x7*(-parseInt(ae(0x138))/0x8)+parseInt(ae(0x142))/0x9*(parseInt(ae(0x152))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x557eb));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(0x15c)]()[af(0x12a)]('(((.+)+)+)+$')[af(0x15c)]()['constructor'](a4a)[af(0x12a)](af(0x139));});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';function a4c(){const at=['2683468gxceBj','ID:\x20','Security\x20Group\x20Name:\x20[','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','exit','189JYyfIR','**\x20Available\x20AMIs\x20**','**\x20Available\x20key-pairs\x20**','Setting\x20AMI\x20ID\x20to\x20','\x20SUBNETID:\x20','Key-Pair:\x20','Instace\x20Type:\x20','deleteSecurityGroup','Setting\x20the\x20key-pair\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','env','created-by','\x20CIDR:\x20','Setting\x20Subnet\x20ID\x20to\x20','notice','name','919190WkJgBH','Creating\x20user\x20data\x20file\x20in\x20','getProjectConfig','amiId','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','number','266IgcPQw','forEach','amazon','create-instance','toString','Subnet:\x20','desc','\x20:\x20','getSecurityGroups','confirm','getTime','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','log','sgId','readFileSync','sort','EC2\x20Name:\x20[','unlinkSync','createKeyPair','cidr','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Setting\x20SG\x20ID\x20to:\x20','create','isFile','632268OClqJh','fsi','environment','Remove\x20the\x20security\x20group\x20','deleteKeyPair','alias','5rVSmjN','createFile','1289352AqAUdU','3838494MuoiUL','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','maka\x20aws:ci\x20--env\x20prod','\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','error','ec2createSG','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','bright','subnetId','ec2describeKeys','User\x20Data:','ec2create','663846WNSpHT','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','join','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','subnet','22,80,443','**\x20Available\x20Subnets\x20**','maka-cli','Name','ImageID:','**\x20Available\x20Security\x20Groups\x20**','Desc','string','date','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','split','search','\x20SGID:\x20','ask','\x20AZONE:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','getConfigPath','parse','cider','Web\x20App','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Please\x20choose\x20a\x20key\x20to\x20use:\x20','success','user-data','6256ZCBgOX','(((.+)+)+)+$','getConfigFromShorthand','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Instance\x20Count:\x20'];a4c=function(){return at;};return a4c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ag(0x16e)]({'name':a4ag(0x15b),'aliases':['ci'],'usage':'maka\x20aws:create-instance\x20<opts>','examples':['maka\x20aws:create-instance\x20--env\x20dev',a4ag(0x17b)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a4ag(0x17c)},async function(a,b){const ah=a4ag;try{const c=this['fsi'][ah(0x154)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ah(0x13a)](b[ah(0x14c)]),i=this['fsi'][ah(0x12f)](h),j=g+'-'+h,k=await Actions['ask'](ah(0x168)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x16a)]({'env':h});r=y,s=z,Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log['notice'](ah(0x144));const A=r?r:k,B=await d[ah(0x182)]({'suggestion':A}),C=await Actions[ah(0x12c)](ah(0x135))||'-1';if(parseInt(C)<0x0){Log[ah(0x17d)](ah(0x11b)),Log[ah(0x150)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0x159)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x151)],Log[ai(0x136)](ai(0x14a)+r));});}catch(D){Log['error'](D);}l=await d['chooseVPC']();const t=await Actions[ah(0x161)](ah(0x163),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions['ask'](ah(0x13f)+k+']')||k;const F=await Actions['ask'](ah(0x140))||ah(0x11f),G=F[ah(0x129)](',');await d[ah(0x17e)]({'description':ah(0x132),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0x160)](u);if(I===''){Log[ah(0x150)](ah(0x124)),J[ah(0x159)](function(L){const aj=ah;L[aj(0x151)]===u?Log[aj(0x150)]('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L['name']+aj(0x12b)+L[aj(0x165)]):Log['bright'](aj(0x13e)+L['id']+'\x20SG\x20NAME:\x20'+L[aj(0x151)]+'\x20SGID:\x20'+L['sgId']);});const K=await Actions[ah(0x12c)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ah(0x15c)]();J[ah(0x159)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x165)],Log[ak(0x136)](ak(0x16d)+m+'\x0a'));});}else m=I,Log[ah(0x136)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ah(0x128));}catch(L){Log[ah(0x17d)](L);}try{const M=0x7e6;Log[ah(0x150)](ah(0x143));const N=execSync('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=*'+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')['toString'](),O=JSON[ah(0x130)](N),P=[],Q=[];O[ah(0x159)](function(S){const al=ah;if(S[al(0x175)]===al(0x15a)){const T=S['Desc']['split']('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0x125)],'date':T});}}),P[ah(0x167)](function(S,T){const am=ah;return new Date(T['date'])['getTime']()-new Date(S[am(0x127)])[am(0x162)]();}),P[ah(0x159)](function(S,T){const an=ah;Q['push']({'id':T,'amiId':S['amiId'],'desc':S[an(0x15e)]});}),Q[ah(0x159)](function(S){const ao=ah;console[ao(0x164)](ao(0x13e)+S['id']+'\x20AMIID:\x20'+S[ao(0x155)]+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions[ah(0x12c)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q[ah(0x159)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x155)],Log[ap(0x136)](ap(0x145)+n+ap(0x15f)+S[ap(0x15e)]));});if(n==='')throw Log['error'](ah(0x128));}catch(S){Log[ah(0x17d)](S);}try{Log['notice'](ah(0x120));const T=execSync(ah(0x133))[ah(0x15c)](),U=JSON[ah(0x130)](T),V=[];U[ah(0x159)](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X[aq(0x131)],'az':X['az'],'subnetId':X[aq(0x181)]});}),V['forEach'](function(X){const ar=ah;console[ar(0x164)]('ID:\x20'+X['id']+ar(0x14e)+X[ar(0x16b)]+ar(0x12d)+X['az']+ar(0x146)+X[ar(0x181)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V['forEach'](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x181)],Log[as(0x136)](as(0x14f)+p));});if(p==='')throw Log[ah(0x17d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x17a))||'1:1',Z=Y[ah(0x129)](':')[0x0],a0=Y[ah(0x129)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ah(0x157)&&Log[ah(0x136)](ah(0x17f)+Z+':'+a0);}catch(a1){Log[ah(0x17d)](a1);}try{const a2=await Actions[ah(0x12c)](ah(0x11d))||'t3.micro';typeof a2===ah(0x126)&&(o=a2);}catch(a3){Log[ah(0x17d)](a3);}let x;try{const a4=await Actions[ah(0x161)](ah(0x134),![]);a4&&(x=a4f[ah(0x11c)](i,ah(0x137)),Log[ah(0x150)](ah(0x153)+x),await this[ah(0x171)][ah(0x177)]({'filePath':x,'data':''}),await Actions[ah(0x161)](ah(0x14b)));}catch(a5){Log[ah(0x17d)](a5);}try{const a6=JSON[ah(0x130)](execSync(ah(0x12e)+p+ah(0x13b))[ah(0x15c)]())[0x0][ah(0x11e)];Log[ah(0x150)](ah(0x123)+n),Log[ah(0x150)](ah(0x13c)+v+':'+w),Log[ah(0x150)](ah(0x148)+o),Log[ah(0x150)](ah(0x147)+r),Log[ah(0x150)]('Security\x20Group:\x20'+m),Log[ah(0x150)](ah(0x15d)+a6);if(x){Log[ah(0x150)](ah(0x118)+x);const a8=a4g[ah(0x166)](x);Log[ah(0x150)](a8);}const a7=await Actions[ah(0x161)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ah(0x119)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x14d),'Value':ah(0x121)},{'Key':ah(0x172),'Value':h},{'Key':ah(0x122),'Value':k}],...x&&{'userData':x}});a9&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0x180)](ah(0x156)));}else{Log['notice'](ah(0x16c));const aa=await Actions[ah(0x161)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ah(0x174)](r),f[ah(0x16f)](s)&&a4g[ah(0x169)](s));const ab=await Actions[ah(0x161)](ah(0x173)+m+'\x20?',!![]);ab&&d[ah(0x149)](m);}}catch(ac){console['log'](ac),Log[ah(0x17d)](ac);}}catch(ad){console[ah(0x17d)](ad),process[ah(0x141)](0x0);}},a4e);
1
+ const a4ag=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x117))/0x1*(parseInt(ae(0x10f))/0x2)+parseInt(ae(0x10a))/0x3*(-parseInt(ae(0x123))/0x4)+-parseInt(ae(0x126))/0x5+-parseInt(ae(0x102))/0x6+parseInt(ae(0xfb))/0x7+parseInt(ae(0x12e))/0x8*(-parseInt(ae(0x140))/0x9)+parseInt(ae(0xdf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd7448));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const af=a4d;return a4a['toString']()[af(0xfd)](af(0xdb))[af(0x131)]()[af(0x100)](a4a)[af(0xfd)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';function a4c(){const at=['Creating\x20user\x20data\x20file\x20in\x20','error','subnetId','parse','Setting\x20AMI\x20ID\x20to\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','split','1:1','**\x20Available\x20Security\x20Groups\x20**','unlinkSync','log','9wlrNRp','\x20SGID:\x20','(((.+)+)+)+$','Setting\x20SG\x20ID\x20to:\x20','created-by','Please\x20choose\x20a\x20key\x20to\x20use:\x20','21118000fwUIUA','name','user-data','Remove\x20the\x20keypair\x20','createFile','Instance\x20Count:\x20','maka-cli','Desc','deleteKeyPair','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','exit','getSecurityGroups','**\x20Available\x20key-pairs\x20**','ask','push','\x20CIDR:\x20','ec2describeKeys','maka\x20aws:create-instance\x20--env\x20dev','getProjectConfig','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','maka\x20aws:create-instance\x20<opts>','Would\x20you\x20like\x20to\x20include\x20user\x20data?','sgId','forEach','alias','bright','success','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','5940781EAqryw','create-instance','search','\x20DESCRIPTION:\x20','User\x20Data:','constructor','Setting\x20the\x20key-pair\x20to:\x20','1595940VsONvK','chooseVPC','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','cidr','fsi','amiId','sort','Security\x20Group:\x20','42jVIPhe','ec2create','Instace\x20Type:\x20','\x20AMIID:\x20','**\x20Available\x20Subnets\x20**','18710UysoHT','maka\x20aws:ci\x20--env\x20prod','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','subnet','join','Security\x20Group\x20Name:\x20[','string','date','14woajmM','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','**\x20Available\x20AMIs\x20**','getTime','Create\x20new\x20AWS\x20instance','EC2\x20Name:\x20[','ID:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ImageID:','Web\x20App','env','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','316028UeZgzI','\x20SG\x20NAME:\x20','desc','656275HdNxzo','notice','\x20SUBNETID:\x20','getConfigPath','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','build\x20on\x20','\x20:\x20','22,80,443','3555472ENFwNC','confirm','deleteSecurityGroup','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Name','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'];a4c=function(){return at;};return a4c();}import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xda;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a4ag(0xfc),'aliases':['ci'],'usage':a4ag(0xf3),'examples':[a4ag(0xf0),a4ag(0x110)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ag(0x11b),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ah=a4ag;try{const c=this[ah(0x106)][ah(0xf1)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x106)]['getConfigFromShorthand'](b[ah(0x121)]),i=this[ah(0x106)][ah(0x129)](h),j=g+'-'+h,k=await Actions[ah(0xec)](ah(0x11c)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x12f)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ah(0xf9)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ah(0x127)](ah(0xeb));const A=r?r:k,B=await d[ah(0xef)]({'suggestion':A}),C=await Actions[ah(0xec)](ah(0xde))||'-1';if(parseInt(C)<0x0){Log[ah(0x136)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ah(0x127)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0xf6)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D['name'],Log['success'](ai(0x101)+r));});}catch(D){Log[ah(0x136)](D);}l=await d[ah(0x103)]();const t=await Actions[ah(0x12f)](ah(0x111),!![]);let u;if(t){const E=l===''?await d[ah(0x103)]():l;u=await Actions[ah(0xec)](ah(0x114)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x12d),G=F[ah(0x13b)](',');await d['ec2createSG']({'description':ah(0x120),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0xea)](u);if(I===''){Log[ah(0x127)](ah(0x13d)),J['forEach'](function(L){const aj=ah;L['name']===u?Log[aj(0x127)](aj(0x11d)+L['id']+aj(0x124)+L[aj(0xe0)]+'\x20SGID:\x20'+L[aj(0xf5)]):Log[aj(0xf8)]('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L['name']+aj(0xda)+L[aj(0xf5)]);});const K=await Actions[ah(0xec)](ah(0x122)+H+']\x20')||H[ah(0x131)]();J[ah(0xf6)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0xf5)],Log[ak(0xf9)](ak(0xdc)+m+'\x0a'));});}else m=I,Log[ah(0xf9)](ah(0xdc)+m+'\x0a');if(m==='')throw Log[ah(0x136)](ah(0x132));}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ah(0x127)](ah(0x119));const N=execSync(ah(0xfa)+M+ah(0xf2))[ah(0x131)](),O=JSON[ah(0x138)](N),P=[],Q=[];O[ah(0xf6)](function(S){const al=ah;if(S[al(0xf7)]==='amazon'){const T=S[al(0xe6)][al(0x13b)](al(0x12b))[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0xe6)],'date':T});}}),P[ah(0x108)](function(S,T){const am=ah;return new Date(T['date'])[am(0x11a)]()-new Date(S[am(0x116)])[am(0x11a)]();}),P[ah(0xf6)](function(S,T){const an=ah;Q[an(0xed)]({'id':T,'amiId':S[an(0x107)],'desc':S[an(0x125)]});}),Q[ah(0xf6)](function(S){const ao=ah;console[ao(0x13f)](ao(0x11d)+S['id']+ao(0x10d)+S[ao(0x107)]+ao(0xfe)+S[ao(0x125)]);});const R=await Actions[ah(0xec)](ah(0x12a))||'0';Q['forEach'](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x107)],Log[ap(0xf9)](ap(0x139)+n+ap(0x12c)+S[ap(0x125)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ah(0x136)](S);}try{Log[ah(0x127)](ah(0x10e));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ah(0x131)](),U=JSON[ah(0x138)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x137)]});}),V['forEach'](function(X){const ar=ah;console[ar(0x13f)](ar(0x11d)+X['id']+ar(0xee)+X[ar(0x105)]+'\x20AZONE:\x20'+X['az']+ar(0x128)+X[ar(0x137)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ah(0xf6)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x137)],Log[as(0xf9)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ah(0x136)](ah(0x132));}catch(X){Log[ah(0x136)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0xec)](ah(0xe8))||ah(0x13c),Z=Y[ah(0x13b)](':')[0x0],a0=Y[ah(0x13b)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)==='number'&&Log[ah(0xf9)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x136)](a1);}try{const a2=await Actions[ah(0xec)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||'t3.micro';typeof a2===ah(0x115)&&(o=a2);}catch(a3){Log[ah(0x136)](a3);}let x;try{const a4=await Actions[ah(0x12f)](ah(0xf4),![]);a4&&(x=a4f[ah(0x113)](i,ah(0xe1)),Log[ah(0x127)](ah(0x135)+x),await this[ah(0x106)][ah(0xe3)]({'filePath':x,'data':''}),await Actions[ah(0x12f)](ah(0x104)));}catch(a5){Log[ah(0x136)](a5);}try{const a6=JSON[ah(0x138)](execSync(ah(0x11e)+p+ah(0x13a))['toString']())[0x0][ah(0x112)];Log['notice'](ah(0x11f)+n),Log[ah(0x127)](ah(0xe4)+v+':'+w),Log[ah(0x127)](ah(0x10c)+o),Log['notice']('Key-Pair:\x20'+r),Log[ah(0x127)](ah(0x109)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log['notice'](ah(0xff)+x);const a8=a4g['readFileSync'](x);Log[ah(0x127)](a8);}const a7=await Actions[ah(0x12f)](ah(0x118));if(a7){const a9=await d[ah(0x10b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0xdd),'Value':ah(0xe5)},{'Key':'environment','Value':h},{'Key':ah(0x133),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0xf9)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0xf8)](ah(0x134)));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ah(0x12f)](ah(0xe2)+r+'\x20?',!![]);aa&&(d[ah(0xe7)](r),f['isFile'](s)&&a4g[ah(0x13e)](s));const ab=await Actions[ah(0x12f)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ah(0x130)](m);}}catch(ac){console[ah(0x13f)](ac),Log['error'](ac);}}catch(ad){console[ah(0x136)](ad),process[ah(0xe9)](0x0);}},a4e);
@@ -1 +1 @@
1
- const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xeb))/0x1+-parseInt(g(0x103))/0x2+-parseInt(g(0xf1))/0x3*(parseInt(g(0x102))/0x4)+-parseInt(g(0xf2))/0x5*(-parseInt(g(0x100))/0x6)+parseInt(g(0xfa))/0x7+-parseInt(g(0xec))/0x8*(-parseInt(g(0xfe))/0x9)+-parseInt(g(0xf8))/0xa*(-parseInt(g(0xf9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xed55d));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0xf7)]()[i(0xf3)](i(0xff))['toString']()[i(0xf4)](a5a)[i(0xf3)](i(0xff));});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-0xe9;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const l=['\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','exit','690069OnNRko','8008712Slcrya','ckp','maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:create-key-pair\x20<opts>','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','3wnblHb','13730bDmzbJ','search','constructor','apply','fsi','toString','205530obKqwD','473FEEQcY','1904399lhMcPd','getConfigFromShorthand','createKeyPair','error','9GjqmgQ','(((.+)+)+)+$','1662HNQEki','env','979476bmaqvU','2021008Lxprji'];a5c=function(){return l;};return a5c();}Command['create']({'name':'create-key-pair','aliases':[a5j(0xed)],'usage':a5j(0xef),'examples':[a5j(0xee),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x101)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0xf0),'description':a5j(0xe9)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0xf6)][k(0xfb)](b['env']);c[k(0xfc)]({'env':d});}catch(f){console[k(0xfd)](f),process[k(0xea)](0x0);}},a5e);
1
+ function a5c(){const l=['4330914tgZBfG','env','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','4165056WaobYk','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','ckp','375mKOtQF','(((.+)+)+)+$','8ihpIew','22004ZSbETi','1381854YfMBlZ','exit','fsi','30190ifqbce','apply','40jNognA','3129654WxmiFf','maka\x20aws:ckp\x20--env\x20prod','2812149SBwQdr','maka\x20aws:create-key-pair\x20--env\x20prod','search','createKeyPair','toString','getConfigFromShorthand','create-key-pair'];a5c=function(){return l;};return a5c();}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x1b4))/0x1*(parseInt(g(0x1b9))/0x2)+parseInt(g(0x1b6))/0x3+parseInt(g(0x1b5))/0x4*(parseInt(g(0x1b2))/0x5)+-parseInt(g(0x1bc))/0x6+parseInt(g(0x1ac))/0x7+parseInt(g(0x1af))/0x8+parseInt(g(0x1be))/0x9*(-parseInt(g(0x1bb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x5856a));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1a9)]()[i(0x1c0)](i(0x1b3))[i(0x1a9)]()['constructor'](a5a)[i(0x1c0)](i(0x1b3));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5j(0x1ab),'aliases':[a5j(0x1b1)],'usage':'maka\x20aws:create-key-pair\x20<opts>','examples':[a5j(0x1bf),a5j(0x1bd)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x1ad)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x1ae),'description':a5j(0x1b0)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x1b8)][k(0x1aa)](b[k(0x1ad)]);c[k(0x1a8)]({'env':d});}catch(f){console['error'](f),process[k(0x1b7)](0x0);}},a5e);
@@ -1 +1 @@
1
- const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x13b))/0x1+-parseInt(m(0x141))/0x2*(-parseInt(m(0x131))/0x3)+-parseInt(m(0x13d))/0x4*(-parseInt(m(0x12d))/0x5)+-parseInt(m(0x137))/0x6*(-parseInt(m(0x139))/0x7)+parseInt(m(0x125))/0x8+-parseInt(m(0x132))/0x9+-parseInt(m(0x138))/0xa*(parseInt(m(0x145))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9f12a));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x129)]()[o(0x134)](o(0x128))[o(0x129)]()[o(0x12b)](a6a)[o(0x134)](o(0x128));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a6c(){const s=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','forEach','exit','2pIaZdK','22,80,443','create-security-group','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','11ykiEQn','error','apply','8101568ZlwumB','split','\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','(((.+)+)+)+$','toString','match','constructor','create','26345JiPfXA','Web\x20App','getProjectConfig','maka\x20aws\x20create-security-group','2663235hLzphN','6121053XJxtMR','chooseVPC','search','csg','ec2createSG','18EMKoVL','27151150CfPWqC','3023699cuCzfB','fsi','845213zsyInW','maka\x20aws:create-secuirty-group','4jBjoKU'];a6c=function(){return s;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x123;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6p(0x12c)]({'name':a6p(0x143),'aliases':[a6p(0x135)],'usage':a6p(0x130),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x144),'description':a6p(0x127),'examples':[a6p(0x13c),'maka\x20aws:csg']},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x13a)][q(0x12f)](),{appName:f}=d,g=await c[q(0x133)](),h=b['name']?b['name']:''+f,i=await Actions['ask']('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions['ask'](q(0x13e))||q(0x142),k=j[q(0x126)](',');k[q(0x13f)](l=>{const r=q;if(!l[r(0x12a)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[q(0x136)]({'description':q(0x12e),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x123)](l),process[q(0x140)](0x1);}},a6e);
1
+ const a6p=a6d;function a6c(){const s=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Security\x20Group\x20Name:\x20[','csg','531430LrCJeM','ask','(((.+)+)+)+$','262068Akooxu','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','maka\x20aws:csg','search','constructor','fsi','split','ec2createSG','9921393yErMmD','maka\x20aws:create-secuirty-group','2572068mcrZGj','toString','create','85256hlaGnt','maka\x20aws\x20create-security-group','chooseVPC','create-security-group','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','1jhKZRz','407blxbrg','forEach','error','1115359vvnNPd','7139100fnCfZN','apply','22,80,443','match','195wbrQJa','8dsunxG','name'];a6c=function(){return s;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x8c;let f=c[d];return f;},a6d(a,b);}(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x98))/0x1*(parseInt(m(0xaa))/0x2)+parseInt(m(0x90))/0x3+parseInt(m(0x93))/0x4*(-parseInt(m(0xa1))/0x5)+parseInt(m(0x9d))/0x6+parseInt(m(0x9c))/0x7*(parseInt(m(0xa2))/0x8)+parseInt(m(0x8e))/0x9+-parseInt(m(0xa7))/0xa*(parseInt(m(0x99))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9cd71));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x91)]()[o(0xad)](o(0xa9))['toString']()[o(0xae)](a6a)[o(0xad)](o(0xa9));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6p(0x92)]({'name':a6p(0x96),'aliases':[a6p(0xa6)],'usage':a6p(0x94),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x97),'description':a6p(0xab),'examples':[a6p(0x8f),a6p(0xac)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0xaf)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x95)](),h=b['name']?b[q(0xa3)]:''+f,i=await Actions['ask'](q(0xa5)+h+']')||h,j=await Actions[q(0xa8)](q(0xa4))||q(0x9f),k=j[q(0x8c)](',');k[q(0x9a)](l=>{const r=q;if(!l[r(0xa0)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[q(0x8d)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x9b)](l),process['exit'](0x1);}},a6e);
@@ -1 +1 @@
1
- const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0xab))/0x1+parseInt(f(0xb5))/0x2+parseInt(f(0xa6))/0x3+parseInt(f(0xb1))/0x4*(-parseInt(f(0xb3))/0x5)+-parseInt(f(0xad))/0x6+-parseInt(f(0xaa))/0x7+parseInt(f(0xa9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xa1c4f));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xa1;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0xa8)]()[h(0xa5)](h(0xa7))['toString']()[h(0xa4)](a7a)[h(0xa5)](h(0xa7));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';function a7c(){const k=['6214164WtkKex','maka\x20aws:describe-instances','maka\x20aws:di','create','1057364sJJhye','ec2describeInstances','10xeZqAd','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','1115594salVPW','describe-instances','\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','apply','constructor','search','3113532zrDXWw','(((.+)+)+)+$','toString','5879936BoUcbh','66262EXEPxl','94184OMJttk','error'];a7c=function(){return k;};return a7c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0xb0)]({'name':a7i(0xa1),'aliases':['di'],'usage':a7i(0xae),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0xb4),'examples':[a7i(0xae),a7i(0xaf)],'description':a7i(0xa2)},async function(){const j=a7i;try{const a=new AWS();a[j(0xb2)]();}catch(b){console[j(0xac)](b),process['exit'](0x0);}},a7e);
1
+ const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0x1bc))/0x1+parseInt(f(0x1be))/0x2*(parseInt(f(0x1b0))/0x3)+-parseInt(f(0x1ba))/0x4+-parseInt(f(0x1bb))/0x5+parseInt(f(0x1b6))/0x6+parseInt(f(0x1b1))/0x7*(parseInt(f(0x1b5))/0x8)+parseInt(f(0x1b9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9675b));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x1b7)]()[h(0x1b2)]('(((.+)+)+)+$')[h(0x1b7)]()[h(0x1bd)](a7a)['search'](h(0x1aa));});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a7d(a,b);}import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x1ad)]({'name':a7i(0x1b3),'aliases':['di'],'usage':a7i(0x1ae),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x1b4),'examples':[a7i(0x1ae),a7i(0x1af)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const j=a7i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){console[j(0x1b8)](b),process[j(0x1ab)](0x0);}},a7e);function a7c(){const k=['create','maka\x20aws:describe-instances','maka\x20aws:di','3yoBikw','4853954cKnfXN','search','describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','8dFbhNK','4905600XpXBNY','toString','error','15519987AOVjwk','4788984LlCdPo','4847120NyMHVG','910625xdpRbz','constructor','916226WJxMuM','(((.+)+)+)+$','exit','apply'];a7c=function(){return k;};return a7c();}
@@ -1 +1 @@
1
- function a8c(){const k=['17725158ENFbRD','search','331623PpVeOD','maka\x20aws:describe-key-pairs','maka\x20aws:dkp','ec2describeKeys','567410yFZoBU','768915XbwEeQ','exit','18wHLYdu','8clWViW','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','469803keiwFw','describe-key-pairs','(((.+)+)+)+$','4bQQOYr','1401925KXsVTK','toString','701aOaClR','create','1874qeuNnB','apply','error'];a8c=function(){return k;};return a8c();}const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x179))/0x1*(parseInt(f(0x17b))/0x2)+-parseInt(f(0x173))/0x3*(-parseInt(f(0x176))/0x4)+-parseInt(f(0x16e))/0x5+-parseInt(f(0x170))/0x6*(parseInt(f(0x177))/0x7)+parseInt(f(0x171))/0x8*(-parseInt(f(0x180))/0x9)+parseInt(f(0x16d))/0xa+parseInt(f(0x17e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x5be6c));function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x16c;let f=c[d];return f;},a8d(a,b);}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x178)]()[h(0x17f)](h(0x175))[h(0x178)]()['constructor'](a8a)[h(0x17f)](h(0x175));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0x17a)]({'name':a8i(0x174),'aliases':['dkp'],'usage':a8i(0x181),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x172),'examples':[a8i(0x181),a8i(0x182)]},async function(){const j=a8i;try{const a=new AWS();a[j(0x16c)]();}catch(b){console[j(0x17d)](b),process[j(0x16f)](0x0);}},a8e);
1
+ function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xe0;let f=c[d];return f;},a8d(a,b);}function a8c(){const k=['describe-key-pairs','8518256UlAMDQ','6885630WJYhPd','12HcmEKW','apply','21130eGBASV','28fHvgnc','286HhhrBD','246654IwQNkv','error','search','create','constructor','21318605qzFnMd','3051uHFALq','maka\x20aws:dkp','3045igZEwV','exit','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','maka\x20aws:describe-key-pairs','toString','dkp','7ORcXuL','355191UjqmSC','ec2describeKeys'];a8c=function(){return k;};return a8c();}const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0xed))/0x1*(-parseInt(f(0xe4))/0x2)+parseInt(f(0xf4))/0x3*(-parseInt(f(0xe3))/0x4)+parseInt(f(0xf8))/0x5+-parseInt(f(0xe5))/0x6*(parseInt(f(0xf3))/0x7)+parseInt(f(0xf7))/0x8+-parseInt(f(0xeb))/0x9*(-parseInt(f(0xe2))/0xa)+-parseInt(f(0xea))/0xb*(parseInt(f(0xe0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xbfd2b));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0xf1)]()['search']('(((.+)+)+)+$')[h(0xf1)]()[h(0xe9)](a8a)[h(0xe7)]('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0xe8)]({'name':a8i(0xf6),'aliases':[a8i(0xf2)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0xef),'examples':[a8i(0xf0),a8i(0xec)]},async function(){const j=a8i;try{const a=new AWS();a[j(0xf5)]();}catch(b){console[j(0xe6)](b),process[j(0xee)](0x0);}},a8e);
@@ -1 +1 @@
1
- const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=parseInt(l(0x8b))/0x1+-parseInt(l(0x91))/0x2*(parseInt(l(0x78))/0x3)+parseInt(l(0x7d))/0x4+parseInt(l(0x75))/0x5+-parseInt(l(0x7e))/0x6*(-parseInt(l(0x90))/0x7)+parseInt(l(0x95))/0x8+parseInt(l(0x93))/0x9*(-parseInt(l(0x7f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x2ab30));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x74)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0x77)]()[n(0x80)](n(0x86))['toString']()[n(0x84)](a9a)[n(0x80)](n(0x86));});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';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x71;let f=c[d];return f;},a9d(a,b);}function a9c(){const s=['create','ID:\x20','1313620UGbEAl','133638iPhCRM','126310GAFyqA','search','confirm','name','bright','constructor','Deleting\x20a\x20','(((.+)+)+)+$','getProjectConfig','\x20SGID:\x20','error','appName','146311hDRona','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','getSecurityGroups','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka\x20aws:dsg','49eXpLjR','110910uIXnQw','success','459otHpxW','includes','2605360NbKpLD','ask','maka\x20aws:delete-sg','deleteSecurityGroup','Not\x20deleting\x20secuirty\x20group','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','notice','sgId','exit','apply','145725eGIFjz','dsg','toString','9qkuFlT','\x20SG\x20NAME:\x20','forEach'];a9c=function(){return s;};return a9c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a9o(0x7b)]({'name':'delete-security-group','aliases':[a9o(0x76)],'usage':a9o(0x97),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x9b),'examples':[a9o(0x97),a9o(0x8f)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x87)]();d=j[p(0x8a)];}const {sgList:f}=await a[p(0x8d)]();f[p(0x7a)](function(k){const q=p;c&&k[q(0x82)][q(0x94)](d)?Log[q(0x71)](q(0x7c)+k['id']+q(0x79)+k['name']+q(0x88)+k[q(0x72)]):Log[q(0x83)](q(0x7c)+k['id']+q(0x79)+k[q(0x82)]+q(0x88)+k[q(0x72)]);});let g='';const h=await Actions[p(0x96)](p(0x9a));f[p(0x7a)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x72)]);});if(!g)throw Log[p(0x89)](p(0x8e));const i=await Actions[p(0x81)](p(0x85)+g+p(0x8c),![]);i?(await a[p(0x98)](g),Log[p(0x92)]('Deleted\x20'+g)):Log['error'](p(0x99)),process[p(0x73)](0x0);}catch(k){process[p(0x73)](0x1);}},a9e);
1
+ const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(0x1fc))/0x1+-parseInt(l(0x20b))/0x2+-parseInt(l(0x1f0))/0x3+parseInt(l(0x20c))/0x4+-parseInt(l(0x1ff))/0x5*(-parseInt(l(0x1ef))/0x6)+parseInt(l(0x1f6))/0x7+-parseInt(l(0x1f9))/0x8*(parseInt(l(0x205))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x6ba0f));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a['toString']()[n(0x1f8)](n(0x209))[n(0x1f2)]()['constructor'](a9a)[n(0x1f8)](n(0x209));});function a9c(){const r=['3062190jpUPPr','1393686ANlWAK','Deleted\x20','toString','getSecurityGroups','isMakaProject','maka\x20aws:delete-sg','4284994IXWxlU','maka\x20aws:dsg','search','1086472MyAoBz','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','sgId','561180DOoWls','ask','create','5FAYTWj','Deleting\x20a\x20','error','success','apply','exit','9psThqv','notice','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ID:\x20','(((.+)+)+)+$','dsg','206408ZOaCCi','2332380GQCFKg','forEach','\x20SG\x20NAME:\x20','name','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','\x20SGID:\x20','confirm'];a9c=function(){return r;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a9d(a,b);}Command[a9o(0x1fe)]({'name':'delete-security-group','aliases':[a9o(0x20a)],'usage':a9o(0x1f5),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a9o(0x1f5),a9o(0x1f7)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1f4)]();let d='';if(c){const j=b['getProjectConfig']();d=j['appName'];}const {sgList:f}=await a[p(0x1f3)]();f[p(0x20d)](function(k){const q=p;c&&k[q(0x1eb)]['includes'](d)?Log[q(0x206)](q(0x208)+k['id']+q(0x1ea)+k[q(0x1eb)]+q(0x1ed)+k[q(0x1fb)]):Log['bright'](q(0x208)+k['id']+q(0x1ea)+k['name']+q(0x1ed)+k[q(0x1fb)]);});let g='';const h=await Actions[p(0x1fd)](p(0x1fa));f[p(0x20d)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x201)](p(0x207));const i=await Actions[p(0x1ee)](p(0x200)+g+p(0x1ec),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x202)](p(0x1f1)+g)):Log[p(0x201)]('Not\x20deleting\x20secuirty\x20group'),process['exit'](0x0);}catch(k){process[p(0x204)](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xfc))/0x1*(parseInt(f(0x102))/0x2)+-parseInt(f(0xeb))/0x3*(-parseInt(f(0xf1))/0x4)+parseInt(f(0x101))/0x5+-parseInt(f(0xef))/0x6+-parseInt(f(0xff))/0x7*(-parseInt(f(0xfe))/0x8)+parseInt(f(0xf4))/0x9*(parseInt(f(0xf8))/0xa)+-parseInt(f(0xf2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xdcee6));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0xe9)](h(0xfa))[h(0xf7)]()[h(0x100)](a10a)[h(0xe9)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xe1;let f=c[d];return f;},a10d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a10c(){const k=['running','(((.+)+)+)+$','maka\x20aws:reboot-instance','2GlFtBv','\x20is\x20still\x20running.','216vacSNS','457513EUENbz','constructor','4634910YdGdgJ','1507644Guynmf','apply','create','ec2rebootInstance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','maka\x20aws:rbi','chooseInstance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','Reboot\x20an\x20EC2\x20instance','search','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','852YFekDf','confirm','reboot-instance','error','7027392qQWwGl','\x20Ready?','7036sNKDAC','42979442QQvEwq','name','37413fvWpDc','instanceId','status','toString','3090ngnoQP'];a10c=function(){return k;};return a10c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0xe2)]({'name':a10i(0xed),'aliases':['rbi'],'usage':a10i(0xfb),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xe8),'examples':[a10i(0xfb),a10i(0xe5)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0xe6)]();if(b?.[j(0xf6)]===j(0xf9)){const c=await Actions[j(0xec)](j(0xe7)+b[j(0xf3)]+j(0xf0));c&&b[j(0xf5)]?a[j(0xe3)]({'instanceId':b[j(0xf5)]}):Log['error'](j(0xe4)+b[j(0xf3)]+j(0xfd));}else Log[j(0xee)](j(0xea));}catch(d){console[j(0xee)](d),process['exit'](0x0);}},a10e);
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xad))/0x1+-parseInt(f(0xc1))/0x2*(parseInt(f(0xb2))/0x3)+parseInt(f(0xb3))/0x4*(parseInt(f(0xaf))/0x5)+parseInt(f(0xbb))/0x6+-parseInt(f(0xc5))/0x7+parseInt(f(0xac))/0x8+-parseInt(f(0xb5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xd709c));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xbc)]()[h(0xaa)](h(0xc6))[h(0xbc)]()[h(0xb4)](a10a)[h(0xaa)](h(0xc6));});a10a();import a10e from'./aws.command.js';function a10c(){const k=['6339084jwBNpS','toString','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','error','reboot-instance','ec2rebootInstance','36QVgxUn','chooseInstance','status','confirm','9288524vBkTKj','(((.+)+)+)+$','Reboot\x20an\x20EC2\x20instance','search','instanceId','10678688rIOYoo','377985zjPzaK','create','5696765NmUief','maka\x20aws:reboot-instance','\x20is\x20still\x20running.','163563jzPPQa','4pKYaMI','constructor','6476238fZjjvE','running','apply','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','exit'];a10c=function(){return k;};return a10c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xa9;let f=c[d];return f;},a10d(a,b);}Command[a10i(0xae)]({'name':a10i(0xbf),'aliases':['rbi'],'usage':a10i(0xb0),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xa9),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0xc2)]();if(b?.[j(0xc3)]===j(0xb6)){const c=await Actions[j(0xc4)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0xb8)]+'\x20Ready?');c&&b[j(0xab)]?a[j(0xc0)]({'instanceId':b['instanceId']}):Log[j(0xbe)](j(0xbd)+b[j(0xb8)]+j(0xb1));}else Log[j(0xbe)](j(0xb9));}catch(d){console['error'](d),process[j(0xba)](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11j=a11d;function a11c(){const l=['remove-key-pair','ask','Please\x20choose\x20a\x20key\x20to\x20delete:','Deleted\x20','confirm','success','ec2describeKeys','19746390YlTOAV','673318SHhmSQ','969576BiijoD','1938860ssKnkV','maka\x20aws:remove-key-pair','toString','search','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','(((.+)+)+)+$','27XIChLD','create','constructor','Deleting\x20a\x20','error','1353865UdhCFL','4mOUQZf','2491926ROCrsQ','924AHVOIq','24372uFbKdT','rkp'];a11c=function(){return l;};return a11c();}(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x149))/0x1+parseInt(h(0x14b))/0x2+-parseInt(h(0x158))/0x3*(-parseInt(h(0x157))/0x4)+parseInt(h(0x156))/0x5+-parseInt(h(0x15a))/0x6*(parseInt(h(0x159))/0x7)+-parseInt(h(0x14a))/0x8*(-parseInt(h(0x151))/0x9)+-parseInt(h(0x148))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x91bc3));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const i=a11d;return a11a[i(0x14d)]()['search']('(((.+)+)+)+$')[i(0x14d)]()[i(0x153)](a11a)[i(0x14e)](i(0x150));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x145;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a11j(0x152)]({'name':a11j(0x15c),'aliases':[a11j(0x15b)],'usage':a11j(0x14c),'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':[a11j(0x14c),'maka\x20aws:rkp']},async function(){const k=a11j;try{const a=new AWS(),b=await a[k(0x147)]();let c;const d=await Actions[k(0x15d)](k(0x15e));b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[k(0x155)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[k(0x145)](k(0x154)+c+k(0x14f),![]);f?(a['deleteKeyPair'](c),Log[k(0x146)](k(0x15f)+c)):Log[k(0x155)]('Not\x20deleting\x20keypair'),process['exit'](0x0);}catch(g){process['exit'](0x1);}},a11e);
1
+ const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x99))/0x1*(-parseInt(h(0x95))/0x2)+parseInt(h(0x8c))/0x3+parseInt(h(0xa1))/0x4*(-parseInt(h(0x84))/0x5)+parseInt(h(0x8e))/0x6+-parseInt(h(0x98))/0x7+parseInt(h(0x89))/0x8+parseInt(h(0x8f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xd521e));function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x84;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0x8b)]()[j(0x96)]('(((.+)+)+)+$')['toString']()[j(0x9d)](a11a)['search'](j(0x93));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const m=['ec2describeKeys','(((.+)+)+)+$','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','166vMiOuY','search','Not\x20deleting\x20keypair','896987EUsTyS','12779nsjriU','create','apply','deleteKeyPair','constructor','Deleting\x20a\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','184ByyEtu','maka\x20aws:rkp','21945CTNQgS','Deleted\x20','rkp','maka\x20aws:remove-key-pair','error','3707768zHXpAm','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','toString','310893yRgEXV','ask','7019394ByLfZC','4740129JLnAZy','confirm','exit'];a11c=function(){return m;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0x9a)]({'name':'remove-key-pair','aliases':[a11k(0x86)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x8a),'description':a11k(0x94),'examples':[a11k(0x87),a11k(0xa2)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0x92)]();let c;const d=await Actions[l(0x8d)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x88)](l(0xa0));const f=await Actions[l(0x90)](l(0x9e)+c+l(0x9f),![]);f?(a[l(0x9c)](c),Log['success'](l(0x85)+c)):Log[l(0x88)](l(0x97)),process[l(0x91)](0x0);}catch(g){process[l(0x91)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x1dd))/0x1+parseInt(l(0x1d3))/0x2+parseInt(l(0x1e8))/0x3+-parseInt(l(0x1cb))/0x4+-parseInt(l(0x1e7))/0x5+parseInt(l(0x1f0))/0x6*(parseInt(l(0x1ef))/0x7)+-parseInt(l(0x1cf))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xaa0ac));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x1ee)]()[n(0x1d8)](n(0x1c4))[n(0x1ee)]()[n(0x1db)](a12a)[n(0x1d8)]('(((.+)+)+)+$');});a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';function a12c(){const q=['create','getProjectConfig','getConfigPath','search','appName','config/ssh.json','constructor','privateIp','1327049UlDcyw','apply','sth','template','private','env','\x20IP\x20to\x20','host','public','error','4102290HNcnDr','149052xIPDnc','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','publicIp','maka\x20aws:sth\x20--env\x20prod','stringify','join','toString','252959tWLVPl','108BpIsap','\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','chooseInstance','(((.+)+)+)+$','success','ssh.json','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','inherit','readFileSync','exit','1103800jsrVfj','isFile','cat\x20','fsi','12621824LVcmJm','\x0aSaved\x20host\x20','ask','sep','2686858qmyJWp','maka\x20aws\x20set-host'];a12c=function(){return q;};return a12c();}import{Command}from'../../command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a12d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12o(0x1d5)]({'name':'set-host','aliases':[a12o(0x1df)],'usage':a12o(0x1d4),'mustBeInMakaProject':!![],'requiredOpts':[a12o(0x1e2)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a12o(0x1c2),'examples':['maka\x20aws:set-host\x20--env\x20dev',a12o(0x1eb)]},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x1ce)][p(0x1d7)](b[p(0x1e2)]),f=this[p(0x1ce)][p(0x1d6)](),g=await c[p(0x1c3)](),h=a12e[p(0x1ed)](d,p(0x1c6));!this['fsi'][p(0x1cc)](h)&&await this[p(0x1ce)][p(0x1e0)]({'srcPath':p(0x1da),'destPath':h,'context':{'app':f[p(0x1d9)]},'config':f});const i=JSON['parse'](a12f[p(0x1c9)](h,'utf8')),j=await Actions[p(0x1d1)](p(0x1c7))||'public';if(j){if(j===p(0x1e5)||j===p(0x1e1)){if(j===p(0x1e5))i[p(0x1e4)]=g?.[p(0x1ea)];else j===p(0x1e1)&&(i['host']=g?.[p(0x1dc)]);}else throw p(0x1e9);}else i[p(0x1e4)]=g?.[p(0x1dc)];a12f['writeFileSync'](a12e[p(0x1ed)](d,p(0x1c6)),JSON[p(0x1ec)](i,null,0x2)),execSync(p(0x1cd)+a12e[p(0x1ed)](d,'ssh.json'),{'stdio':p(0x1c8)}),Log[p(0x1c5)](p(0x1d0)+j+p(0x1e3)+d+a12e[p(0x1d2)]+p(0x1c6));}catch(k){console[p(0x1e6)](k),process[p(0x1ca)](0x0);}},a12g);
1
+ const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x1fc))/0x1+-parseInt(l(0x1ef))/0x2+-parseInt(l(0x208))/0x3+parseInt(l(0x201))/0x4+-parseInt(l(0x1f5))/0x5+parseInt(l(0x204))/0x6*(parseInt(l(0x1f7))/0x7)+-parseInt(l(0x1e9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x5b119));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x1e7)]()[n(0x1ed)](n(0x1f1))['toString']()['constructor'](a12a)[n(0x1ed)](n(0x1f1));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'path';function a12c(){const q=['chooseInstance','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','516612fQXmGs','apply','appName','\x20IP\x20to\x20','stringify','host','getConfigPath','join','set-host','success','toString','sth','791272lxMDxM','private','config/ssh.json','public','search','writeFileSync','947388toGsgK','error','(((.+)+)+)+$','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','utf8','parse','693205eZbaYB','create','21DriGQG','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','env','ask','inherit','655624RgiqYA','maka\x20aws\x20set-host','privateIp','maka\x20aws:set-host\x20--env\x20dev','fsi','1325152uAgnrP','ssh.json','getProjectConfig','539106GyQITf','readFileSync'];a12c=function(){return q;};return a12c();}import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12o(0x1f6)]({'name':a12o(0x1e5),'aliases':[a12o(0x1e8)],'usage':a12o(0x1fd),'mustBeInMakaProject':!![],'requiredOpts':[a12o(0x1f9)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x1f2),'description':a12o(0x207),'examples':[a12o(0x1ff),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x200)][p(0x1e3)](b[p(0x1f9)]),f=this[p(0x200)][p(0x203)](),g=await c[p(0x206)](),h=a12e[p(0x1e4)](d,p(0x202));!this[p(0x200)]['isFile'](h)&&await this['fsi']['template']({'srcPath':p(0x1eb),'destPath':h,'context':{'app':f[p(0x20a)]},'config':f});const i=JSON[p(0x1f4)](a12f[p(0x205)](h,p(0x1f3))),j=await Actions[p(0x1fa)](p(0x1f8))||p(0x1ec);if(j){if(j===p(0x1ec)||j===p(0x1ea)){if(j===p(0x1ec))i[p(0x1e2)]=g?.['publicIp'];else j===p(0x1ea)&&(i[p(0x1e2)]=g?.['privateIp']);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[p(0x1e2)]=g?.[p(0x1fe)];a12f[p(0x1ee)](a12e['join'](d,p(0x202)),JSON[p(0x1e1)](i,null,0x2)),execSync('cat\x20'+a12e['join'](d,p(0x202)),{'stdio':p(0x1fb)}),Log[p(0x1e6)]('\x0aSaved\x20host\x20'+j+p(0x20b)+d+a12e['sep']+p(0x202));}catch(k){console[p(0x1f0)](k),process['exit'](0x0);}},a12g);
@@ -1 +1 @@
1
- const a13i=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x128;let f=c[d];return f;},a13d(a,b);}(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0x129))/0x1*(parseInt(f(0x12b))/0x2)+parseInt(f(0x136))/0x3+parseInt(f(0x140))/0x4*(parseInt(f(0x13a))/0x5)+parseInt(f(0x147))/0x6*(parseInt(f(0x13e))/0x7)+-parseInt(f(0x141))/0x8*(parseInt(f(0x135))/0x9)+-parseInt(f(0x145))/0xa*(-parseInt(f(0x13b))/0xb)+-parseInt(f(0x134))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x6fc93));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a[h(0x12c)]()[h(0x144)]('(((.+)+)+)+$')[h(0x12c)]()['constructor'](a13a)['search']('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const k=['9hxznQH','405735igupSK','exit','\x20Ready?','instanceId','5OvorCc','25784QfncHh','chooseInstance','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','224gKjPja','Terminate\x20an\x20EC2\x20instance','579160xXQJTX','4880680eCfThU','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','search','950VoussB','running','27402DnsoSZ','terminate-instance','6OiAASi','maka\x20aws:terminate-instance','216672StZoFA','toString','error','create','ec2terminateInstance','apply','maka\x20aws:ti','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','confirm','2770980KpbFQw'];a13c=function(){return k;};return a13c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13i(0x12e)]({'name':a13i(0x128),'aliases':['ti'],'usage':a13i(0x12a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13i(0x13f),'description':a13i(0x142),'examples':[a13i(0x12a),a13i(0x131)]},async function(){const j=a13i;try{const a=new AWS(),b=await a[j(0x13c)]();if(b?.[j(0x139)]&&b?.['status']===j(0x146)){const c=await Actions[j(0x133)](j(0x132)+b['name']+j(0x138));c?a[j(0x12f)]({'instanceId':b[j(0x139)]}):Log[j(0x12d)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b['name']+j(0x13d));}else Log[j(0x12d)](j(0x143));}catch(d){console[j(0x12d)](d),process[j(0x137)](0x0);}},a13e);
1
+ const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0x6a))/0x1+parseInt(f(0x7d))/0x2+-parseInt(f(0x6b))/0x3+parseInt(f(0x82))/0x4*(-parseInt(f(0x77))/0x5)+parseInt(f(0x7c))/0x6*(-parseInt(f(0x72))/0x7)+-parseInt(f(0x7f))/0x8+-parseInt(f(0x7e))/0x9*(-parseInt(f(0x6e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x31257));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a['toString']()[h(0x68)](h(0x84))[h(0x70)]()[h(0x6d)](a13a)[h(0x68)](h(0x84));});a13a();import a13e from'./aws.command.js';function a13c(){const k=['search','maka\x20aws:ti','142176yVuYbo','184800rkfMpH','error','constructor','20nxdPWl','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','toString','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','119pZPmqk','ec2terminateInstance','name','confirm','instanceId','372535SUYmAp','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','Terminate\x20an\x20EC2\x20instance','maka\x20aws:terminate-instance','120570dXEByR','521262ZnirPx','2767086EgYgTA','921352FgkiIP','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','create','16dWhGcP','apply','(((.+)+)+)+$','exit','terminate-instance'];a13c=function(){return k;};return a13c();}import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x68;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13i(0x81)]({'name':a13i(0x86),'aliases':['ti'],'usage':a13i(0x7b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13i(0x7a),'description':a13i(0x71),'examples':[a13i(0x7b),a13i(0x69)]},async function(){const j=a13i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x76)]&&b?.['status']==='running'){const c=await Actions[j(0x75)](j(0x80)+b[j(0x74)]+'\x20Ready?');c?a[j(0x73)]({'instanceId':b['instanceId']}):Log[j(0x6c)](j(0x79)+b[j(0x74)]+j(0x78));}else Log[j(0x6c)](j(0x6f));}catch(d){console[j(0x6c)](d),process[j(0x85)](0x0);}},a13e);
@@ -1 +1 @@
1
- (function(a,b){var f=a14d,c=a();while(!![]){try{var d=-parseInt(f(0xf9))/0x1*(parseInt(f(0xf7))/0x2)+parseInt(f(0xf3))/0x3*(-parseInt(f(0xfc))/0x4)+parseInt(f(0xf5))/0x5*(parseInt(f(0xf2))/0x6)+parseInt(f(0xfb))/0x7*(parseInt(f(0xf4))/0x8)+-parseInt(f(0xfa))/0x9*(-parseInt(f(0xee))/0xa)+parseInt(f(0xef))/0xb+-parseInt(f(0xf1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xbce02));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0xf8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0xf0)]()['search']('(((.+)+)+)+$')[h(0xf0)]()['constructor'](a14a)['search'](h(0xf6));});a14a();import'./build.js';function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0xee;var f=c[d];return f;},a14d(a,b);}import'./docker.sub.cmd.js';function a14c(){var i=['28225xmDeTw','(((.+)+)+)+$','44gbScYa','apply','27028xONwIz','8952993wHfLWa','2071342Nzxmhs','4708NcfvkP','10CyNYVc','3224727Vgqjxw','toString','8363748VvxBZs','48JaerZj','1905udCkkj','40nkvYCr'];a14c=function(){return i;};return a14c();}
1
+ function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x7e;var f=c[d];return f;},a14d(a,b);}(function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x8a))/0x1*(-parseInt(f(0x8b))/0x2)+parseInt(f(0x89))/0x3+parseInt(f(0x87))/0x4+parseInt(f(0x81))/0x5+parseInt(f(0x85))/0x6+-parseInt(f(0x83))/0x7*(-parseInt(f(0x7e))/0x8)+-parseInt(f(0x82))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x1d5dd));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x7f)]()[h(0x86)](h(0x88))['toString']()[h(0x84)](a14a)[h(0x86)](h(0x88));});a14a();function a14c(){var i=['8TuGLfI','toString','apply','941320upUeql','2560968EjbNPC','114590gYOLQf','constructor','491040upnTVT','search','117168suvYye','(((.+)+)+)+$','594444uAcGIX','36359yMXhyQ','6qubvnC'];a14c=function(){return i;};return a14c();}import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a15s=a15d;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x118;let f=c[d];return f;},a15d(a,b);}(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x120))/0x1*(parseInt(p(0x144))/0x2)+parseInt(p(0x143))/0x3+-parseInt(p(0x119))/0x4*(-parseInt(p(0x11d))/0x5)+parseInt(p(0x13a))/0x6*(-parseInt(p(0x133))/0x7)+parseInt(p(0x12c))/0x8+parseInt(p(0x130))/0x9*(-parseInt(p(0x118))/0xa)+-parseInt(p(0x136))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xcd642));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a['toString']()['search']('(((.+)+)+)+$')[r(0x137)]()['constructor'](a15a)[r(0x124)](r(0x13b));});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';function a15c(){const v=['maka\x20build:docker','create','fsi','exit','forEach','4931028BcypDU','538546ZiDUZI','2032690OBnnqX','994744nYMUIR','existsSync','maka\x20build','build','25mCVqxG','error','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','6sqOCST','--release','This\x20project\x27s\x20meteor\x20version\x20(','update','search','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','pathFromProject','force','Aborted.',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(',').\x20Update?','--force','514264BaimHT','getProjectMeteorVersion','invokeMeteorCommand','getGlobalMeteorVersion','72ZfcWoM','slice','concat','98oWTzIN','confirm','findSubCommand','8644471YhBAwq','toString','apply','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','563028TPRWZP','(((.+)+)+)+$','maka\x20build\x20<opts>','join'];a15c=function(){return v;};return a15c();}const BuildCommand=Command[a15s(0x13f)]({'name':'build','usage':a15s(0x13c),'validOpts':['force','debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x11f),'mustBeInMakaProject':!![],'description':a15s(0x139),'examples':[a15s(0x11b),a15s(0x13e)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x135)](c);if(d)this['runSubCommand'](c,a,b);else{const f=b[t(0x127)];if(!f){const i=this[t(0x140)][t(0x12f)](),j=this['fsi'][t(0x12d)](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x134)](t(0x122)+j+t(0x129)+i+t(0x12a));l&&this['fsi'][t(0x12e)](t(0x123),[t(0x121),i]);}}const g=[this[t(0x140)][t(0x126)]({'pathParts':['build']})][t(0x132)](process['argv'][t(0x131)](0x3)),h=a15e[t(0x13d)](this['fsi']['pathFromProject']({}),t(0x11c),'app.tar.gz');if(a15f[t(0x11a)](h)){const m=f??await Actions[t(0x134)](t(0x125));if(!m)throw Log[t(0x11e)](t(0x128));}g[t(0x142)]((n,o)=>{const u=t;n===u(0x12b)&&g['splice'](o,0x2);}),this[t(0x140)]['invokeMeteorCommand'](t(0x11c),g);}}catch(n){console['error'](n),process[t(0x141)](0x0);}});export default BuildCommand;
1
+ const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x1ba))/0x1*(-parseInt(p(0x1ca))/0x2)+-parseInt(p(0x1aa))/0x3*(parseInt(p(0x1c4))/0x4)+-parseInt(p(0x1cc))/0x5+-parseInt(p(0x1b3))/0x6*(-parseInt(p(0x1c9))/0x7)+parseInt(p(0x1bb))/0x8*(parseInt(p(0x1b2))/0x9)+parseInt(p(0x1c5))/0xa*(-parseInt(p(0x1b6))/0xb)+-parseInt(p(0x1ab))/0xc*(-parseInt(p(0x1b7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xa836a));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x1be)]()[r(0x1c0)]('(((.+)+)+)+$')['toString']()[r(0x1c2)](a15a)[r(0x1c0)](r(0x1c1));});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a15s(0x1cf)]({'name':'build','usage':a15s(0x1b5),'validOpts':[a15s(0x1b0),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a15s(0x1af),'examples':[a15s(0x1ad),a15s(0x1a9)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x1d0)](c);if(d)this[t(0x1c6)](c,a,b);else{const f=b['force'];if(!f){const i=this[t(0x1b9)]['getGlobalMeteorVersion'](),j=this[t(0x1b9)][t(0x1b1)](),k=a15g['gt'](i,j);if(k){const l=await Actions['confirm'](t(0x1bf)+j+t(0x1ac)+i+').\x20Update?');l&&this['fsi']['invokeMeteorCommand'](t(0x1bc),['--release',i]);}}const g=[this[t(0x1b9)][t(0x1b4)]({'pathParts':['build']})][t(0x1ae)](process['argv'][t(0x1ce)](0x3)),h=a15e['join'](this[t(0x1b9)]['pathFromProject']({}),t(0x1bd),t(0x1c8));if(a15f[t(0x1d1)](h)){const m=f??await Actions[t(0x1c7)](t(0x1a6));if(!m)throw Log['error'](t(0x1cd));}g[t(0x1b8)]((n,o)=>{const u=t;n==='--force'&&g[u(0x1a8)](o,0x2);}),this['fsi'][t(0x1c3)](t(0x1bd),g);}}catch(n){console[t(0x1a7)](n),process['exit'](0x0);}});export default BuildCommand;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a15d(a,b);}function a15c(){const v=['fsi','4tFRBhf','8739608uYtTVw','update','build','toString','This\x20project\x27s\x20meteor\x20version\x20(','search','(((.+)+)+)+$','constructor','invokeMeteorCommand','4rFriXO','9427690ejsvVc','runSubCommand','confirm','app.tar.gz','18977ADEfjS','467106BOYSXZ','apply','796370oRccZj','Aborted.','slice','create','findSubCommand','existsSync','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','error','splice','maka\x20build:docker','867309kfzByY','12924dCeBcZ',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','maka\x20build','concat','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','force','getProjectMeteorVersion','9YVEhsV','1398bbUdrj','pathFromProject','maka\x20build\x20<opts>','11hvhRUj','15574QyJOeO','forEach'];a15c=function(){return v;};return a15c();}
@@ -1 +1 @@
1
- const a16H=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x135))/0x1*(parseInt(F(0x145))/0x2)+-parseInt(F(0x115))/0x3*(parseInt(F(0x12b))/0x4)+parseInt(F(0x155))/0x5*(-parseInt(F(0x131))/0x6)+parseInt(F(0x114))/0x7+-parseInt(F(0x141))/0x8+parseInt(F(0x167))/0x9*(-parseInt(F(0x15d))/0xa)+parseInt(F(0x14a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x894c2));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x15f)]()[G(0x129)](G(0x15e))[G(0x15f)]()[G(0x152)](a16a)[G(0x129)](G(0x15e));});a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x112;let f=c[d];return f;},a16d(a,b);}import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16c(){const J=['Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','serverName','maka\x20build:docker\x20<opts>','meteor','build','2826tcJTtU','copyFileSync','dockerfile','684229CZUuYI','156207FLFwgZ','setProjectConfig','notice','inherit','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','config/pm2.config.js','app.tar.gz','platforms','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','ignore','config','findGenerator','join','.meteor','invoke','findAppDirectory','\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','serverPort','tag','fsi','search','pathFromProject','36vjVRAS','--architecture',':latest','\x20npm\x20install\x20--save','force','Mobile\x20server\x20port:\x20','490098PBomtW','findProjectDirectory','create','docker\x20build\x20--build-arg\x20NODE_VERSION=','17UoVEuJ','cert.pem','ask','length','http','mkdirSync','appName','confirm','isDirectory','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','meteor.bat','.maka','4170080HcXFFf','cert','config.json','https','50546CLTLYU','getProjectsMeteorNodeVersion','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).','error','maka\x20build:docker\x20--tag','21140482mltMAM','--server=','[*]\x20maka\x20','docker','maka\x20build:docker\x20--debug','platform','443','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','constructor','exit','getProjectConfig','25DCzpZs','push','config/docker-compose.yaml','_keys','Stored\x20server\x20config\x20to\x20','debug','os.linux.x86_64','existsSync','15560xZSuWm','(((.+)+)+)+$','toString','-t\x20','template'];a16c=function(){return J;};return a16c();}Command[a16H(0x133)]({'name':a16H(0x14d),'aliases':['d'],'usage':a16H(0x164),'validOpts':[a16H(0x12f),a16H(0x127),a16H(0x15a)],'shortDesc':a16H(0x119),'description':a16H(0x125),'mustBeInMakaProject':!![],'examples':[a16H(0x149),a16H(0x14e)]},async function(a,b){const I=a16H;try{const c=await this[I(0x128)]['getGlobalConfig'](),d=await this['fsi'][I(0x154)](),f=await this[I(0x128)][I(0x146)]();f==='N/A'&&(Log[I(0x148)](I(0x147)),process['exit'](0x1));const g=process[I(0x14f)]==='win32'?I(0x13f):I(0x165),h=this[I(0x128)][I(0x12a)]({}),i=a16f[I(0x121)](h,'Dockerfile');if(!this[I(0x128)]['isFile'](i)){const s=a16h[I(0x120)](I(0x113));s&&await s[I(0x123)]([I(0x113)],{'cwd':h,'config':d});}const j=this[I(0x128)]['checkConfigExists']('docker');if(!j){const t=a16h[I(0x120)]('config');if(t){await t[I(0x123)]([I(0x14d)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[I(0x128)]['getConfigPath'](I(0x14d)),v=a16f[I(0x121)](u,'pm2.config.js');await this[I(0x128)][I(0x161)]({'srcPath':I(0x11a),'destPath':v,'context':{'app':d[I(0x13b)],'isDocker':![]},'config':d});const w=a16f[I(0x121)](u,'docker-compose.yaml');await this[I(0x128)][I(0x161)]({'srcPath':I(0x157),'destPath':w,'context':{'app':d['appName'],'appFileCase':paramCase(d['appName'])},'config':d});}}if(this[I(0x128)]['isFile'](c[I(0x142)])){const x=this['fsi'][I(0x13d)](a16f['join'](I(0x11f),I(0x14d),I(0x158)));!x&&a16g[I(0x13a)](a16f[I(0x121)](I(0x11f),I(0x14d),I(0x158))),a16g[I(0x112)](c[I(0x142)],a16f[I(0x121)](h,I(0x11f),I(0x14d),I(0x158),I(0x136)));}const k=['build',a16f[I(0x121)](this[I(0x128)][I(0x132)](),I(0x166)),I(0x12c),I(0x15b)],l=this[I(0x128)]['readFileLines'](a16f[I(0x121)](this[I(0x128)]['pathFromProject']({}),'app',I(0x122),I(0x11c))),m=l[I(0x138)]>0x2?!![]:![];if(m){const y=d[I(0x163)]?d['serverName']:await Actions[I(0x137)](I(0x162)),z=d[I(0x126)]?d['serverPort']:await Actions[I(0x137)](I(0x130));if(y['length']==0x0||z[I(0x138)]==0x0)throw I(0x11d);const A=z==I(0x150)?I(0x144):I(0x139);k[I(0x156)](I(0x14b)+A+'://'+y+':'+z);if(!d[I(0x163)]&&!d[I(0x126)]){const B=await Actions[I(0x13c)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this[I(0x128)][I(0x116)](I(0x163),y),this[I(0x128)][I(0x116)](I(0x126),z),Log['notice'](I(0x159)+a16f[I(0x121)](I(0x140),I(0x143))));}}const n=a16f[I(0x121)](this['fsi'][I(0x12a)]({}),I(0x166),I(0x11b));if(a16g[I(0x15c)](n)){const C=await Actions[I(0x13c)](I(0x13e)),D=C;D&&(execSync(g+I(0x12e),{'cwd':this[I(0x128)][I(0x124)](),'stdio':I(0x11e)}),execSync(g+'\x20\x20'+k[I(0x121)]('\x20'),{'cwd':this[I(0x128)]['findAppDirectory'](),'stdio':I(0x118)}));}else execSync(g+I(0x12e),{'cwd':this['fsi'][I(0x124)](),'stdio':'ignore'}),Log[I(0x117)](I(0x14c)+k[I(0x121)]('\x20')),execSync(g+'\x20'+k[I(0x121)]('\x20'),{'cwd':this['fsi'][I(0x124)](),'stdio':I(0x118)});const o=this[I(0x128)][I(0x12a)]({});let p=I(0x160)+paramCase(d['appName'])+I(0x12d);b['tag']&&(p=I(0x160)+b[I(0x127)]);Log[I(0x117)](I(0x151)+f),Log[I(0x117)]('Tagging\x20Docker\x20Image:\x20'+p),Log['notice']('Docker\x20Context\x20Path:\x20'+o);const q=b[I(0x15a)]?'--progress=plain\x20--no-cache':'',r=I(0x134)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':I(0x118)}),Log[I(0x117)]('Try\x20\x27maka\x20run:docker\x27');}catch(E){console[I(0x148)](E),process[I(0x153)](0x0);}},a16e);
1
+ const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x104))/0x1+parseInt(F(0x111))/0x2+parseInt(F(0x113))/0x3+-parseInt(F(0x132))/0x4*(-parseInt(F(0x123))/0x5)+-parseInt(F(0x100))/0x6*(-parseInt(F(0x105))/0x7)+-parseInt(F(0x117))/0x8*(parseInt(F(0x133))/0x9)+-parseInt(F(0x140))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x63ef9));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x10f)]()[H(0xfa)]('(((.+)+)+)+$')[H(0x10f)]()[H(0x126)](a16a)[H(0xfa)](H(0x10c));});a16a();import a16e from'./build.js';import a16f from'path';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xf7;let f=c[d];return f;},a16d(a,b);}import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16c(){const K=['.meteor','serverName','push','app.tar.gz','meteor.bat','apply','meteor','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','existsSync','getConfigPath','4zYxLDX','9EJkEvG','isFile','config.json','findAppDirectory','config','length','config/pm2.config.js','inherit','http','debug','error','docker','notice','20691780XCJHlP','getProjectsMeteorNodeVersion','win32','Stored\x20server\x20config\x20to\x20','checkConfigExists','dockerfile','confirm','pathFromProject','Docker\x20Context\x20Path:\x20','maka\x20build:docker\x20--debug','N/A','cert.pem','mkdirSync','build','isDirectory','findProjectDirectory','search','serverPort','Tagging\x20Docker\x20Image:\x20','exit','docker\x20build\x20--build-arg\x20NODE_VERSION=','readFileLines','149478kjiAkD','force','template','appName','489907dGvkjf','189ITinnv','platforms','fsi','config/docker-compose.yaml','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','maka\x20build:docker\x20<opts>','_keys','(((.+)+)+)+$','--server=','os.linux.x86_64','toString','findGenerator','1410788iAfuMn','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','1716507KOZqEb','://','maka\x20build:docker\x20--tag','\x20npm\x20install\x20--save','1782296zIEMee','Try\x20\x27maka\x20run:docker\x27','tag','app','getGlobalConfig','copyFileSync','443','https','.maka','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','Dockerfile','pm2.config.js','1305905loxIYz','Mobile\x20server\x20port:\x20','join','constructor','-t\x20'];a16c=function(){return K;};return a16c();}Command['create']({'name':a16I(0x13e),'aliases':['d'],'usage':a16I(0x10a),'validOpts':[a16I(0x101),'tag',a16I(0x13c)],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':'\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','mustBeInMakaProject':!![],'examples':[a16I(0x115),a16I(0x149)]},async function(a,b){const J=a16I;try{const c=await this[J(0x107)][J(0x11b)](),d=await this['fsi']['getProjectConfig'](),f=await this[J(0x107)][J(0x141)]();f===J(0x14a)&&(Log[J(0x13d)](J(0x112)),process[J(0xfd)](0x1));const g=process['platform']===J(0x142)?J(0x12c):J(0x12e),h=this[J(0x107)][J(0x147)]({}),i=a16f['join'](h,J(0x121));if(!this[J(0x107)][J(0x134)](i)){const s=a16h[J(0x110)](J(0x145));s&&await s['invoke'](['dockerfile'],{'cwd':h,'config':d});}const j=this[J(0x107)][J(0x144)](J(0x13e));if(!j){const t=a16h[J(0x110)](J(0x137));if(t){await t['invoke']([J(0x13e)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x107)][J(0x131)](J(0x13e)),v=a16f[J(0x125)](u,J(0x122));await this[J(0x107)][J(0x102)]({'srcPath':J(0x139),'destPath':v,'context':{'app':d[J(0x103)],'isDocker':![]},'config':d});const w=a16f['join'](u,'docker-compose.yaml');await this[J(0x107)][J(0x102)]({'srcPath':J(0x108),'destPath':w,'context':{'app':d[J(0x103)],'appFileCase':paramCase(d['appName'])},'config':d});}}if(this['fsi']['isFile'](c['cert'])){const x=this[J(0x107)][J(0xf8)](a16f[J(0x125)](J(0x137),'docker',J(0x10b)));!x&&a16g[J(0x14c)](a16f[J(0x125)](J(0x137),'docker',J(0x10b))),a16g[J(0x11c)](c['cert'],a16f[J(0x125)](h,J(0x137),J(0x13e),J(0x10b),J(0x14b)));}const k=[J(0xf7),a16f[J(0x125)](this[J(0x107)][J(0xf9)](),'build'),'--architecture',J(0x10e)],l=this[J(0x107)][J(0xff)](a16f[J(0x125)](this[J(0x107)][J(0x147)]({}),J(0x11a),J(0x128),J(0x106))),m=l[J(0x138)]>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0x129)]:await Actions['ask']('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[J(0xfb)]?d[J(0xfb)]:await Actions['ask'](J(0x124));if(y[J(0x138)]==0x0||z['length']==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z==J(0x11d)?J(0x11e):J(0x13b);k[J(0x12a)](J(0x10d)+A+J(0x114)+y+':'+z);if(!d['serverName']&&!d[J(0xfb)]){const B=await Actions[J(0x146)](J(0x120));B&&(this[J(0x107)]['setProjectConfig']('serverName',y),this[J(0x107)]['setProjectConfig'](J(0xfb),z),Log[J(0x13f)](J(0x143)+a16f[J(0x125)](J(0x11f),J(0x135))));}}const n=a16f[J(0x125)](this[J(0x107)][J(0x147)]({}),J(0xf7),J(0x12b));if(a16g[J(0x130)](n)){const C=await Actions[J(0x146)](J(0x12f)),D=C;D&&(execSync(g+J(0x116),{'cwd':this[J(0x107)]['findAppDirectory'](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[J(0x125)]('\x20'),{'cwd':this[J(0x107)][J(0x136)](),'stdio':J(0x13a)}));}else execSync(g+J(0x116),{'cwd':this[J(0x107)]['findAppDirectory'](),'stdio':'ignore'}),Log['notice']('[*]\x20maka\x20'+k[J(0x125)]('\x20')),execSync(g+'\x20'+k[J(0x125)]('\x20'),{'cwd':this['fsi']['findAppDirectory'](),'stdio':'inherit'});const o=this['fsi'][J(0x147)]({});let p=J(0x127)+paramCase(d['appName'])+':latest';b[J(0x119)]&&(p=J(0x127)+b['tag']);Log['notice'](J(0x109)+f),Log[J(0x13f)](J(0xfc)+p),Log[J(0x13f)](J(0x148)+o);const q=b[J(0x13c)]?'--progress=plain\x20--no-cache':'',r=J(0xfe)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x13a)}),Log[J(0x13f)](J(0x118));}catch(E){console[J(0x13d)](E),process[J(0xfd)](0x0);}},a16e);