@maka/maka-cli 4.5.2 → 4.5.3

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 (97) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/install.js +1 -1
  36. package/bundle/obf/src/commands/jsdoc.js +1 -1
  37. package/bundle/obf/src/commands/lint.js +1 -1
  38. package/bundle/obf/src/commands/login.js +1 -1
  39. package/bundle/obf/src/commands/logout.js +1 -1
  40. package/bundle/obf/src/commands/logs.js +1 -1
  41. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  42. package/bundle/obf/src/commands/murder.js +1 -1
  43. package/bundle/obf/src/commands/proxy.js +1 -1
  44. package/bundle/obf/src/commands/reconfig.js +1 -1
  45. package/bundle/obf/src/commands/run/_index.js +1 -1
  46. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  47. package/bundle/obf/src/commands/run/run.command.js +1 -1
  48. package/bundle/obf/src/commands/set/_index.js +1 -1
  49. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/set.command.js +1 -1
  52. package/bundle/obf/src/commands/ssh.js +1 -1
  53. package/bundle/obf/src/commands/ssl.js +1 -1
  54. package/bundle/obf/src/commands/test.js +1 -1
  55. package/bundle/obf/src/commands/version.js +1 -1
  56. package/bundle/obf/src/error.js +1 -1
  57. package/bundle/obf/src/generator.js +1 -1
  58. package/bundle/obf/src/generators/_index.js +1 -1
  59. package/bundle/obf/src/generators/api.js +1 -1
  60. package/bundle/obf/src/generators/collection.js +1 -1
  61. package/bundle/obf/src/generators/component.js +1 -1
  62. package/bundle/obf/src/generators/config.js +1 -1
  63. package/bundle/obf/src/generators/dbc.js +1 -1
  64. package/bundle/obf/src/generators/dockerfile.js +1 -1
  65. package/bundle/obf/src/generators/hook.js +1 -1
  66. package/bundle/obf/src/generators/kit.js +1 -1
  67. package/bundle/obf/src/generators/layout.js +1 -1
  68. package/bundle/obf/src/generators/maka.gen.js +1 -1
  69. package/bundle/obf/src/generators/methods.js +1 -1
  70. package/bundle/obf/src/generators/package.js +1 -1
  71. package/bundle/obf/src/generators/page.js +1 -1
  72. package/bundle/obf/src/generators/publish.js +1 -1
  73. package/bundle/obf/src/generators/route.js +1 -1
  74. package/bundle/obf/src/generators/service.js +1 -1
  75. package/bundle/obf/src/generators/services/_index.js +1 -1
  76. package/bundle/obf/src/generators/services/openssl.js +1 -1
  77. package/bundle/obf/src/generators/services/translation.js +1 -1
  78. package/bundle/obf/src/maka.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  83. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  85. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  87. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  88. package/bundle/obf/src/tools/https/https.class.js +1 -1
  89. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  90. package/bundle/obf/src/tools/log/log.class.js +1 -1
  91. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  93. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  95. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  96. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  97. 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.3",
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(0x1ce))/0x1*(-parseInt(p(0x1fd))/0x2)+-parseInt(p(0x1d6))/0x3*(-parseInt(p(0x1d5))/0x4)+-parseInt(p(0x1fb))/0x5+-parseInt(p(0x1f3))/0x6*(parseInt(p(0x1f4))/0x7)+-parseInt(p(0x1d1))/0x8+parseInt(p(0x1db))/0x9*(-parseInt(p(0x1ea))/0xa)+parseInt(p(0x1ef))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xc4341));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x1ec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x1f1)]()['search'](r(0x1fe))[r(0x1f1)]()[r(0x1e8)](a0a)[r(0x1e0)](r(0x1fe));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a0d(a,b);}function a0c(){const E=['Please\x20run\x20\x22maka\x20install\x20meteor\x22','call','54357875MlrYvB','mustBeInMakaProject','toString','addCommand','30CDLMhX','978425vJpEqU','length','bind','Description','error','assign','shortDesc','1730580UCqOvi','validateMeteorInstall','1734910dEtGHV','(((.+)+)+)+$','generate','singleLicense','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','match','runSubCommand','function','split','roles','Sub-Commands:','findCommand','fsi','keys','push','options','invoke','aliases','deploy','validateMakaProject','notice','There\x20is\x20no\x20Meteor\x20application\x20here','includes','validateMakaSubscription','number','name','disableAuthCheck','_commands','find','Alias','bright','mustHaveMeteorInstalled','exit','proCommands','minArgLength','1kpaRzn','sort','minOptsLength','5841120AFxypG','Command\x20requires\x20a\x20name','help','forEach','4EEOsmL','59151CxAkEO','proFlags','getPro','play','Too\x20many\x20options','1239633hHwLJr','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','murder','Too\x20many\x20arguments','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','search','run','Too\x20few\x20options','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','_handler','Command\x20not\x20found','tableList','maxArgLength','constructor','findSubCommand','110bxDYYL','create','apply'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{[a0s(0x1ba)];['_commands'];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1dc));if(!a['name'])throw new Error(t(0x1d2));if(typeof b!==t(0x204))throw new Error('Command\x20requires\x20a\x20handler\x20function');this['options']=Object[t(0x1f9)]({},a),this[t(0x1c4)]=this[t(0x1ba)][t(0x1c4)],this[t(0x1c6)]=[],this[t(0x1e4)]=b[t(0x1f6)](this);}static[a0s(0x1eb)](a,b,c){const u=a0s;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[u(0x1f9)](d,{'parent':c?.['options']?.[u(0x1c4)]}),c[u(0x1f2)](d),d;}[a0s(0x1f2)](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][v(0x20b)](a);}async[a0s(0x1c2)](a,b){const w=a0s,c=this[w(0x208)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.['parent']||'',f=c?.['options'];if(f[w(0x1c5)])return;const g=a[0x0],h=Object['keys'](b),i=await this['fsi'][w(0x1d8)]();!i&&(Log[w(0x1f8)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[w(0x1cb)](0x1));const j=i?.[w(0x1cc)][w(0x1c1)](d)||i?.[w(0x1cc)][w(0x1c1)](e),k=i?.[w(0x206)]['includes'](w(0x200))||i?.[w(0x206)]['includes']('domainLicense'),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x201);if(h[w(0x1f5)]>0x0){const m=i?.[w(0x1d7)]['filter'](n=>h[w(0x1c1)](n));if(m&&m[w(0x1f5)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.['join'](',\x20')+w(0x201);}if(g===w(0x1bd)){const n=await this[w(0x209)]['getPro'](),o=n?.[w(0x1cc)][w(0x1c1)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x201);}}}async[a0s(0x1e1)](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x1c2)](a,b);}catch(c){Log[x(0x1f8)](c),process[x(0x1cb)](0x0);}await this[x(0x1bb)](a,b);}catch(d){process[x(0x1cb)](0x1);}}async[a0s(0x1bb)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x1ba)];try{if(this['options'][y(0x1c4)]!==y(0x1ff)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x1f5)]===0x0)&&this[y(0x1c6)][y(0x1f5)]>=0x0;if(f&&b[y(0x1d3)]){if(this[y(0x1c6)][y(0x1f5)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x1d3)]){if(this[y(0x1ba)][y(0x1f0)]){const g=this[y(0x1be)]();if(!g)throw new MustBeInProjectError();}if(this[y(0x1ba)][y(0x1ca)]){const h=this[y(0x1fc)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x1ba)][y(0x1cd)]===y(0x1c3)){if(a[y(0x1f5)]<this['options'][y(0x1cd)]){Log[y(0x1f8)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[y(0x1ba)][y(0x1e7)]===y(0x1c3)){if(a[y(0x1f5)]>=this[y(0x1ba)][y(0x1e7)]){Log['error'](y(0x1de));throw new UsageError();}}if(typeof this['options'][y(0x1d0)]===y(0x1c3)){if(Object[y(0x20a)](b)[y(0x1f5)]<this['options'][y(0x1d0)]){Log['error'](y(0x1e2));throw new UsageError();}}if(typeof this[y(0x1ba)]['maxOptsLength']===y(0x1c3)){if(Object['keys'](b)[y(0x1f5)]>=this[y(0x1ba)]['maxOptsLength']){Log[y(0x1f8)](y(0x1da));throw new UsageError();}}}}this['validateParams'](a,b,this[y(0x1ba)]),_prevCmd=a[0x0];}await this['_handler'][y(0x1ee)](this,a,b);}catch(i){Log['usage'](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0x1bf)](y(0x207)),this[y(0x1e6)](this[y(0x1c6)]),Log['header'](y(0x1e3));else{if(i instanceof MustBeInProjectError)Log[y(0x1f8)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log[y(0x1f8)](y(0x1df)),Log[y(0x1bf)](y(0x1ed));else{if(i instanceof NoMeteorAppFoundError)Log[y(0x1f8)](y(0x1c0));else throw i;}}}process[y(0x1cb)](0x1);}}[a0s(0x1e6)](a){const z=a0s,b=new a0e({});b[z(0x20b)](['Name',z(0x1c8),z(0x1f7)]),a[z(0x1cf)]()[z(0x1d4)](c=>{const A=z;c['name']!==A(0x1dd)&&c[A(0x1c4)]!==A(0x1d9)&&b[A(0x20b)]([c[A(0x1c4)],c[A(0x1bc)](),c[A(0x1fa)]()]);}),Log[z(0x1c9)](b[z(0x1f1)]());}['findCommand'](a){const B=a0s;return this['_commands'][B(0x1c7)](b=>b[B(0x202)](a));}[a0s(0x1e9)](a){const C=a0s,b=a?.[C(0x205)](':');if(b)return a=b[0x0],this[C(0x208)](a);else return;}async[a0s(0x203)](a,b,c){const D=a0s;try{const d=a[D(0x205)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g[D(0x1e1)](b,c);else throw D(0x1e5);}catch(h){throw Log[D(0x1f8)](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(0x1b6))/0x1+parseInt(f(0x1b8))/0x2+-parseInt(f(0x1b7))/0x3+-parseInt(f(0x1b4))/0x4+-parseInt(f(0x1bb))/0x5+-parseInt(f(0x1b5))/0x6+parseInt(f(0x1bd))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x8c9d5));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1bf)]()[h(0x1b9)](h(0x1be))[h(0x1bf)]()[h(0x1ba)](a1a)[h(0x1b9)](h(0x1be));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1b4;var f=c[d];return f;},a1d(a,b);}import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';function a1c(){var i=['450710XaBImV','1119033npphIb','2082798zpZpWR','search','constructor','2730825TPfBth','apply','10160136kPNEkb','(((.+)+)+)+$','toString','2548096mNIEkn','4868400nyPezX'];a1c=function(){return i;};return a1c();}import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
@@ -1 +1 @@
1
- (function(a,b){var f=a2d,c=a();while(!![]){try{var d=-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(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x1c9))/0x1+-parseInt(f(0x1d0))/0x2*(-parseInt(f(0x1ca))/0x3)+parseInt(f(0x1d5))/0x4+parseInt(f(0x1cd))/0x5*(-parseInt(f(0x1d3))/0x6)+-parseInt(f(0x1cf))/0x7+-parseInt(f(0x1cc))/0x8*(-parseInt(f(0x1c8))/0x9)+-parseInt(f(0x1d4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x7de07));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0x1cb)]()[h(0x1d6)](h(0x1d1))[h(0x1cb)]()[h(0x1d2)](a2a)[h(0x1d6)]('(((.+)+)+)+$');});a2a();function a2c(){var i=['1203370rkjtMf','apply','1373477ySmptz','145426EXGcxx','(((.+)+)+)+$','constructor','24loiJRV','5374640Lzafwk','3837488NcblaB','search','18GzzIQp','53251eECAbs','33HMjEAD','toString','1597984npVWnF'];a2c=function(){return i;};return a2c();}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x1c8;var f=c[d];return f;},a2d(a,b);}import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
@@ -1 +1 @@
1
- const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(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
+ function a3c(){const k=['(((.+)+)+)+$','38840wUOAmb','7707APbwGH','create','apply','10XzXMqQ','Sub\x20Command\x20not\x20found','2691918vFGGwf','toString','error','2298BIYpoV','1692080oxtkJI','findSubCommand','runSubCommand','search','48mrOVnU','maka\x20aws:<sub-command>','969812bpUGxf','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','aws','9097TfaFwC','818634OZxjoZ'];a3c=function(){return k;};return a3c();}function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x81;let f=c[d];return f;},a3d(a,b);}const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=parseInt(f(0x88))/0x1*(parseInt(f(0x83))/0x2)+parseInt(f(0x89))/0x3+parseInt(f(0x85))/0x4+-parseInt(f(0x95))/0x5+-parseInt(f(0x94))/0x6*(parseInt(f(0x8c))/0x7)+parseInt(f(0x8b))/0x8+-parseInt(f(0x91))/0x9*(-parseInt(f(0x8f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x43c0d));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x92)]()['search'](h(0x8a))[h(0x92)]()['constructor'](a3a)[h(0x82)](h(0x8a));});a3a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0x8d)]({'name':a3i(0x87),'usage':a3i(0x84),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0x86),'description':'\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'},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x96)](c);if(d)this[j(0x81)](c,a,b);else{Log[j(0x93)](j(0x90));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 a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=parseInt(ae(0xac))/0x1+parseInt(ae(0x86))/0x2+parseInt(ae(0x97))/0x3*(parseInt(ae(0xdb))/0x4)+-parseInt(ae(0x84))/0x5*(-parseInt(ae(0x8c))/0x6)+-parseInt(ae(0x9a))/0x7+parseInt(ae(0xe5))/0x8+-parseInt(ae(0xb6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x5c47c));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a['toString']()['search']('(((.+)+)+)+$')[ag(0xe1)]()[ag(0x90)](a4a)[ag(0xbf)](ag(0xd4));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a4c(){const au=['deleteKeyPair','desc','Setting\x20Subnet\x20ID\x20to\x20','subnet','ImageID:','create-instance','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','cider','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','number','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','22,80,443','string','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Setting\x20the\x20key-pair\x20to:\x20','split','Instace\x20Type:\x20','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','exit','(((.+)+)+)+$','**\x20Available\x20AMIs\x20**','**\x20Available\x20Security\x20Groups\x20**','bright','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','push','Remove\x20the\x20keypair\x20','36552JujoCR','*\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','\x20AMIID:\x20','getSecurityGroups','chooseVPC','sort','toString','Desc','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka\x20aws:ci\x20--env\x20prod','3700608MAXQcZ','ask','Setting\x20SG\x20ID\x20to:\x20','forEach','name','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','1:1','**\x20Available\x20Subnets\x20**','475cEYQwF','deleteSecurityGroup','545078ARDTYS','environment','ec2createSG','subnetId','\x20SGID:\x20','user-data','34206WuJWBM','Instance\x20Count:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','t3.micro','constructor','readFileSync','date','Security\x20Group\x20Name:\x20[','\x20SG\x20NAME:\x20','build\x20on\x20','log','63jcZRpS','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','join','1036581CdiDZD','sgId','Subnet:\x20','isFile','**\x20Available\x20key-pairs\x20**','amiId','\x20SUBNETID:\x20','Name','confirm','error','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Remove\x20the\x20security\x20group\x20','maka\x20aws:create-instance\x20<opts>','alias','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','No\x20instance\x20has\x20been\x20created.','createKeyPair','483639PSPPiA','notice','\x20:\x20','Creating\x20user\x20data\x20file\x20in\x20','amazon','ID:\x20','Web\x20App','getConfigFromShorthand','User\x20Data:','getConfigPath','12835656pxrqVI','parse','unlinkSync','\x20DESCRIPTION:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','apply','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=*','fsi','search'];a4c=function(){return au;};return a4c();}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x83;let f=c[d];return f;},a4d(a,b);}Command['create']({'name':a4ah(0xc5),'aliases':['ci'],'usage':a4ah(0xa6),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a4ah(0xe4)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a4ah(0xd1)},async function(a,b){const ai=a4ah;try{const c=this[ai(0xbe)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xbe)][ai(0xb3)](b['env']),i=this[ai(0xbe)][ai(0xb5)](h),j=g+'-'+h,k=await Actions[ai(0xe6)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xa2)](ai(0xd2),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xab)]({'env':h});r=y,s=z,Log[ai(0xbc)](ai(0xce)+r);}else try{Log[ai(0xad)](ai(0x9e));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0xe6)](ai(0xba))||'-1';if(parseInt(C)<0x0){Log[ai(0xa3)]('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[ai(0xad)](ai(0xaa));return;}B?.[ai(0xe8)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xe9)],Log[aj(0xbc)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0xa3)](D);}l=await d[ai(0xdf)]();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0xdf)]():l;u=await Actions[ai(0xe6)](ai(0x93)+k+']')||k;const F=await Actions['ask'](ai(0xc8))||ai(0xcb),G=F[ai(0xcf)](',');await d[ai(0x88)]({'description':ai(0xb2),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xde)](u);if(I===''){Log['notice'](ai(0xd6)),J[ai(0xe8)](function(L){const ak=ai;L[ak(0xe9)]===u?Log['notice'](ak(0xb1)+L['id']+ak(0x94)+L['name']+ak(0x8a)+L[ak(0x9b)]):Log[ak(0xd7)](ak(0xb1)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xe9)]+ak(0x8a)+L[ak(0x9b)]);});const K=await Actions[ai(0xe6)](ai(0xc6)+H+']\x20')||H[ai(0xe1)]();J[ai(0xe8)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x9b)],Log[al(0xbc)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0xbc)](ai(0xe7)+m+'\x0a');if(m==='')throw Log[ai(0xa3)](ai(0xe3));}catch(L){Log['error'](L);}try{const M=0x7e6;Log['notice'](ai(0xd5));const N=execSync(ai(0xbd)+M+ai(0xdc))['toString'](),O=JSON['parse'](N),P=[],Q=[];O[ai(0xe8)](function(S){const am=ai;if(S[am(0xa7)]===am(0xb0)){const T=S['Desc'][am(0xcf)](am(0x95))[0x1];P[am(0xd9)]({'amiId':S['ID'],'desc':S[am(0xe2)],'date':T});}}),P[ai(0xe0)](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S[an(0x92)])['getTime']();}),P[ai(0xe8)](function(S,T){const ao=ai;Q[ao(0xd9)]({'id':T,'amiId':S[ao(0x9f)],'desc':S['desc']});}),Q['forEach'](function(S){const ap=ai;console[ap(0x96)](ap(0xb1)+S['id']+ap(0xdd)+S['amiId']+ap(0xb9)+S['desc']);});const R=await Actions[ai(0xe6)](ai(0xa8))||'0';Q[ai(0xe8)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x9f)],Log[aq(0xbc)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0xae)+S[aq(0xc1)]));});if(n==='')throw Log[ai(0xa3)](ai(0xe3));}catch(S){Log[ai(0xa3)](S);}try{Log[ai(0xad)](ai(0x83));const T=execSync(ai(0xea))[ai(0xe1)](),U=JSON['parse'](T),V=[];U[ai(0xe8)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0xc7)],'az':X['az'],'subnetId':X[ar(0x89)]});}),V[ai(0xe8)](function(X){const as=ai;console[as(0x96)](as(0xb1)+X['id']+'\x20CIDR:\x20'+X['cidr']+'\x20AZONE:\x20'+X['az']+as(0xa0)+X[as(0x89)]);});const W=await Actions[ai(0xe6)](ai(0x98))||'0';V[ai(0xe8)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x89)],Log['success'](at(0xc2)+p));});if(p==='')throw Log[ai(0xa3)](ai(0xe3));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xe6)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0xeb),Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0xc9)&&typeof parseInt(a0)==='number'&&Log['success']('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0xa3)](a1);}try{const a2=await Actions[ai(0xe6)](ai(0xcd))||ai(0x8f);typeof a2===ai(0xcc)&&(o=a2);}catch(a3){Log[ai(0xa3)](a3);}let x;try{const a4=await Actions[ai(0xa2)](ai(0x8e),![]);a4&&(x=a4f[ai(0x99)](i,ai(0x8b)),Log[ai(0xad)](ai(0xaf)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0xa2)](ai(0xd8)));}catch(a5){Log[ai(0xa3)](a5);}try{const a6=JSON[ai(0xb7)](execSync(ai(0xa9)+p+ai(0xa4))['toString']())[0x0][ai(0xc3)];Log[ai(0xad)](ai(0xc4)+n),Log[ai(0xad)](ai(0x8d)+v+':'+w),Log[ai(0xad)](ai(0xd0)+o),Log[ai(0xad)]('Key-Pair:\x20'+r),Log[ai(0xad)]('Security\x20Group:\x20'+m),Log[ai(0xad)](ai(0x9c)+a6);if(x){Log[ai(0xad)](ai(0xb4)+x);const a8=a4g[ai(0x91)](x);Log[ai(0xad)](a8);}const a7=await Actions[ai(0xa2)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':'maka-cli'},{'Key':ai(0x87),'Value':h},{'Key':ai(0xa1),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xbc)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0xd7)](ai(0xca)));}else{Log[ai(0xad)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0xda)+r+'\x20?',!![]);aa&&(d[ai(0xc0)](r),f[ai(0x9d)](s)&&a4g[ai(0xb8)](s));const ab=await Actions[ai(0xa2)](ai(0xa5)+m+'\x20?',!![]);ab&&d[ai(0x85)](m);}}catch(ac){console[ai(0x96)](ac),Log[ai(0xa3)](ac);}}catch(ad){console[ai(0xa3)](ad),process[ai(0xd3)](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
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x155))/0x1*(parseInt(g(0x15d))/0x2)+parseInt(g(0x159))/0x3*(-parseInt(g(0x15c))/0x4)+parseInt(g(0x156))/0x5*(parseInt(g(0x152))/0x6)+parseInt(g(0x153))/0x7+-parseInt(g(0x14e))/0x8*(parseInt(g(0x148))/0x9)+parseInt(g(0x14d))/0xa+-parseInt(g(0x15b))/0xb*(-parseInt(g(0x14f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x2c92e));function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x147;let f=c[d];return f;},a5d(a,b);}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x157)]()[i(0x14b)]('(((.+)+)+)+$')[i(0x157)]()['constructor'](a5a)[i(0x14b)](i(0x149));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const l=['search','apply','2663420ZccRBi','8oogsfE','394548bVxjas','env','createKeyPair','48OTmHSq','2019801xMwJzO','exit','3cmjqrN','90490CLhZgi','toString','create','204099vFVloF','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','33wfGDlW','4WPvxLR','143292SDccQq','maka\x20aws:ckp\x20--env\x20prod','error','2994849QlMUaq','(((.+)+)+)+$','\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'];a5c=function(){return l;};return a5c();}Command[a5j(0x158)]({'name':'create-key-pair','aliases':['ckp'],'usage':'maka\x20aws:create-key-pair\x20<opts>','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a5j(0x15e)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x150)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x15a),'description':a5j(0x14a)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this['fsi']['getConfigFromShorthand'](b[k(0x150)]);c[k(0x151)]({'env':d});}catch(f){console[k(0x147)](f),process[k(0x154)](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 a6o=a6d;function a6c(){const r=['1SbbifX','name','ask','error','List\x20is\x20not\x20all\x20numbers','243OQmsfa','create','22,80,443','(((.+)+)+)+$','maka\x20aws:csg','7052556AkmNRp','toString','search','244030wftmsS','4711472MAARGZ','3973860nxRWPX','fsi','forEach','exit','match','2419929etdJly','csg','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','constructor','split','Web\x20App','chooseVPC','389828KJUTEZ','ec2createSG','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','389330FMkhcj','68AmBMto','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2'];a6c=function(){return r;};return a6c();}(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x1b6))/0x1*(parseInt(m(0x1b0))/0x2)+parseInt(m(0x1a9))/0x3+parseInt(m(0x1b4))/0x4*(parseInt(m(0x1b3))/0x5)+parseInt(m(0x1a4))/0x6+-parseInt(m(0x19f))/0x7+-parseInt(m(0x1a3))/0x8+parseInt(m(0x19a))/0x9*(-parseInt(m(0x1a2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xb2c6a));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x198;let f=c[d];return f;},a6d(a,b);}const a6b=(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;};}()),a6a=a6b(this,function(){const n=a6d;return a6a[n(0x1a0)]()[n(0x1a1)](n(0x19d))[n(0x1a0)]()[n(0x1ac)](a6a)[n(0x1a1)]('(((.+)+)+)+$');});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[a6o(0x19b)]({'name':'create-security-group','aliases':[a6o(0x1aa)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6o(0x1b5),'description':a6o(0x1ab),'examples':['maka\x20aws:create-secuirty-group',a6o(0x19e)]},async function(a,b){const p=a6o;try{const c=new AWS(),d=this[p(0x1a5)]['getProjectConfig'](),{appName:f}=d,g=await c[p(0x1af)](),h=b[p(0x1b7)]?b[p(0x1b7)]:''+f,i=await Actions['ask']('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[p(0x1b8)](p(0x1b2))||p(0x19c),k=j[p(0x1ad)](',');k[p(0x1a6)](l=>{const q=p;if(!l[q(0x1a8)](/^\d+$/))throw q(0x199);}),await c[p(0x1b1)]({'description':p(0x1ae),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[p(0x198)](l),process[p(0x1a7)](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
+ function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x117;let f=c[d];return f;},a7d(a,b);}const a7i=a7d;function a7c(){const k=['290lEJcmd','692158XtKDCW','exit','54ldkcdE','create','describe-instances','(((.+)+)+)+$','2935610dPFcIa','\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','maka\x20aws:describe-instances','6454608dQOArx','512297VGpBJk','maka\x20aws:di','error','81KQFUgT','2337201cJYwtS','toString','795543TMiYQJ','apply','11812gvNuKS','search'];a7c=function(){return k;};return a7c();}(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(0x129))/0x1+parseInt(f(0x11f))/0x2+parseInt(f(0x118))/0x3+-parseInt(f(0x11c))/0x4*(parseInt(f(0x11e))/0x5)+parseInt(f(0x121))/0x6*(parseInt(f(0x11a))/0x7)+parseInt(f(0x128))/0x8+parseInt(f(0x117))/0x9*(-parseInt(f(0x125))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9f9db));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x11b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a['toString']()[h(0x11d)]('(((.+)+)+)+$')[h(0x119)]()['constructor'](a7a)['search'](h(0x124));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x122)]({'name':a7i(0x123),'aliases':['di'],'usage':a7i(0x127),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':['maka\x20aws:describe-instances',a7i(0x12a)],'description':a7i(0x126)},async function(){const j=a7i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){console[j(0x12b)](b),process[j(0x120)](0x0);}},a7e);
@@ -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
+ const a8h=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=parseInt(f(0x10a))/0x1*(-parseInt(f(0x112))/0x2)+-parseInt(f(0x10f))/0x3+-parseInt(f(0x10e))/0x4*(parseInt(f(0x11a))/0x5)+-parseInt(f(0x110))/0x6*(parseInt(f(0x117))/0x7)+-parseInt(f(0x118))/0x8+-parseInt(f(0x111))/0x9+parseInt(f(0x116))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x97fae));function a8c(){const j=['search','ec2describeKeys','(((.+)+)+)+$','constructor','1TpOZzX','error','maka\x20aws:describe-key-pairs','dkp','564VapMPT','239100GFMcyn','138YYrEqZ','8914887JRWaTX','735384NQyOXp','create','describe-key-pairs','toString','36029680gVLlUx','194789mSEcPT','861480PsnguY','exit','28185urppWi'];a8c=function(){return j;};return a8c();}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const g=a8d;return a8a[g(0x115)]()[g(0x11b)]('(((.+)+)+)+$')[g(0x115)]()[g(0x109)](a8a)[g(0x11b)](g(0x108));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x107;let f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a8h(0x113)]({'name':a8h(0x114),'aliases':[a8h(0x10d)],'usage':a8h(0x10c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a8h(0x10c),'maka\x20aws:dkp']},async function(){const i=a8h;try{const a=new AWS();a[i(0x107)]();}catch(b){console[i(0x10b)](b),process[i(0x119)](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(0x12f))/0x1+parseInt(l(0x12a))/0x2+parseInt(l(0x132))/0x3*(parseInt(l(0x12b))/0x4)+-parseInt(l(0x142))/0x5+-parseInt(l(0x139))/0x6+-parseInt(l(0x12c))/0x7+parseInt(l(0x144))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x54aba));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0x133)]()[n(0x11c)](n(0x129))['toString']()[n(0x124)](a9a)['search']('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';function a9c(){const s=['name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','554699vMJYrr','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','delete-security-group','876279UwohtJ','toString','dsg','maka\x20aws:dsg','error','\x20SGID:\x20','getProjectConfig','2643990VEdSEN','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','Not\x20deleting\x20secuirty\x20group','forEach','notice','sgId','success','maka\x20aws:delete-sg','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','3142815CXJPYQ','exit','5008856umTqNe','create','search','includes','appName','Deleted\x20','\x20SG\x20NAME:\x20','ask','getSecurityGroups','bright','constructor','confirm','ID:\x20','Deleting\x20a\x20','apply','(((.+)+)+)+$','835454EqJPHP','4AAlwhm','3322116ZCdolw'];a9c=function(){return s;};return a9c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x11b;let f=c[d];return f;},a9d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a9o(0x11b)]({'name':a9o(0x131),'aliases':[a9o(0x134)],'usage':a9o(0x140),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x13a),'examples':[a9o(0x140),a9o(0x135)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x138)]();d=j[p(0x11e)];}const {sgList:f}=await a[p(0x122)]();f[p(0x13c)](function(k){const q=p;c&&k['name'][q(0x11d)](d)?Log[q(0x13d)](q(0x126)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x12d)]+q(0x137)+k['sgId']):Log[q(0x123)](q(0x126)+k['id']+q(0x120)+k['name']+q(0x137)+k[q(0x13e)]);});let g='';const h=await Actions[p(0x121)](p(0x130));f[p(0x13c)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x13e)]);});if(!g)throw Log[p(0x136)](p(0x12e));const i=await Actions[p(0x125)](p(0x127)+g+p(0x141),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x13f)](p(0x11f)+g)):Log[p(0x136)](p(0x13b)),process[p(0x143)](0x0);}catch(k){process[p(0x143)](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
+ function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x146;let f=c[d];return f;},a10d(a,b);}const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x160))/0x1*(-parseInt(f(0x15a))/0x2)+parseInt(f(0x152))/0x3+-parseInt(f(0x148))/0x4+parseInt(f(0x161))/0x5*(-parseInt(f(0x15f))/0x6)+-parseInt(f(0x14d))/0x7*(parseInt(f(0x15c))/0x8)+parseInt(f(0x14b))/0x9+parseInt(f(0x149))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x30d98));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x146)]('(((.+)+)+)+$')['toString']()['constructor'](a10a)[h(0x146)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';function a10c(){const k=['You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','\x20Ready?','583881VryADt','chooseInstance','apply','instanceId','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','name','maka\x20aws:rbi','reboot-instance','2OkfFBO','confirm','121160UKUsKo','error','create','42gZVzmB','42887SVAlBs','277675sbzUub','search','maka\x20aws:reboot-instance','939988rGBQVA','8448660ACukbp','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','1080675HgxIcu','Reboot\x20an\x20EC2\x20instance','175avGoqc','\x20is\x20still\x20running.','ec2rebootInstance'];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';Command[a10i(0x15e)]({'name':a10i(0x159),'aliases':['rbi'],'usage':a10i(0x147),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x14c),'examples':[a10i(0x147),a10i(0x158)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x153)]();if(b?.['status']==='running'){const c=await Actions[j(0x15b)](j(0x156)+b[j(0x157)]+j(0x151));c&&b['instanceId']?a[j(0x14f)]({'instanceId':b[j(0x155)]}):Log[j(0x15d)](j(0x150)+b[j(0x157)]+j(0x14e));}else Log[j(0x15d)](j(0x14a));}catch(d){console[j(0x15d)](d),process['exit'](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(0xf6))/0x1+parseInt(h(0xfc))/0x2*(parseInt(h(0xf9))/0x3)+-parseInt(h(0x100))/0x4+parseInt(h(0xec))/0x5+parseInt(h(0xf4))/0x6+-parseInt(h(0xf8))/0x7*(-parseInt(h(0xf5))/0x8)+-parseInt(h(0xf2))/0x9*(-parseInt(h(0x104))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x55908));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0x101)]()['search']('(((.+)+)+)+$')[j(0x101)]()['constructor'](a11a)[j(0xf1)]('(((.+)+)+)+$');});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xec;let f=c[d];return f;},a11d(a,b);}function a11c(){const n=['\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','exit','480952lMVATn','toString','confirm','Please\x20choose\x20a\x20key\x20to\x20delete:','260910JlUAFD','name','rkp','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1300390uIcpxX','apply','Not\x20deleting\x20keypair','forEach','maka\x20aws:remove-key-pair','search','36TngIbq','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','1033158eFsuka','3385632nHNxJq','648939NngtSk','remove-key-pair','7ajWKRj','22830JiydES','create','maka\x20aws:rkp','42rtVHBX','ec2describeKeys'];a11c=function(){return n;};return a11c();}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0xfa)]({'name':a11k(0xf7),'aliases':[a11k(0x106)],'usage':a11k(0xf0),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0xf3),'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':['maka\x20aws:remove-key-pair',a11k(0xfb)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0xfd)]();let c;const d=await Actions['ask'](l(0x103));b?.[l(0xef)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x105)]);});if(!c)throw Log['error'](l(0x107));const f=await Actions[l(0x102)]('Deleting\x20a\x20'+c+l(0xfe),![]);f?(a['deleteKeyPair'](c),Log['success']('Deleted\x20'+c)):Log['error'](l(0xee)),process[l(0xff)](0x0);}catch(g){process['exit'](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 a12n=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=-parseInt(l(0x16b))/0x1+parseInt(l(0x156))/0x2*(-parseInt(l(0x177))/0x3)+-parseInt(l(0x15e))/0x4+parseInt(l(0x15d))/0x5*(parseInt(l(0x17d))/0x6)+parseInt(l(0x16c))/0x7+-parseInt(l(0x15c))/0x8*(parseInt(l(0x159))/0x9)+parseInt(l(0x16d))/0xa*(parseInt(l(0x16e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xe02c5));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const m=a12d;return a12a[m(0x15f)]()[m(0x16f)](m(0x17b))[m(0x15f)]()[m(0x157)](a12a)[m(0x16f)](m(0x17b));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x153;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'path';import a12f from'fs';function a12c(){const p=['success','(((.+)+)+)+$','env','2021454zMTSMg','maka\x20aws:set-host\x20--env\x20dev','chooseInstance','getProjectConfig','\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','7698xIMavg','constructor','stringify','193131GzvLTt','inherit','exit','152cmkLic','15AJPGdH','3886808Nuqeqa','toString','fsi','\x0aSaved\x20host\x20','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','join','maka\x20aws:sth\x20--env\x20prod','public','config/ssh.json','\x20IP\x20to\x20','ssh.json','privateIp','getConfigPath','1011103CrEpaW','7251741kdOBrN','30402870wEIgTq','11JoPsVe','search','parse','private','writeFileSync','sth','set-host','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','host','1386iwBFfV','create','appName'];a12c=function(){return p;};return a12c();}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[a12n(0x178)]({'name':a12n(0x174),'aliases':[a12n(0x173)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a12n(0x17c)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12n(0x175),'description':a12n(0x155),'examples':[a12n(0x17e),a12n(0x164)]},async function(a,b){const o=a12n;try{const c=new AWS(),d=this['fsi'][o(0x16a)](b[o(0x17c)]),f=this['fsi'][o(0x154)](),g=await c[o(0x153)](),h=a12e[o(0x163)](d,o(0x168));!this[o(0x160)]['isFile'](h)&&await this[o(0x160)]['template']({'srcPath':o(0x166),'destPath':h,'context':{'app':f[o(0x179)]},'config':f});const i=JSON[o(0x170)](a12f['readFileSync'](h,'utf8')),j=await Actions['ask']('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||o(0x165);if(j){if(j===o(0x165)||j===o(0x171)){if(j===o(0x165))i[o(0x176)]=g?.['publicIp'];else j===o(0x171)&&(i[o(0x176)]=g?.['privateIp']);}else throw o(0x162);}else i[o(0x176)]=g?.[o(0x169)];a12f[o(0x172)](a12e[o(0x163)](d,o(0x168)),JSON[o(0x158)](i,null,0x2)),execSync('cat\x20'+a12e[o(0x163)](d,'ssh.json'),{'stdio':o(0x15a)}),Log[o(0x17a)](o(0x161)+j+o(0x167)+d+a12e['sep']+o(0x168));}catch(k){console['error'](k),process[o(0x15b)](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
+ function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xfa;let f=c[d];return f;},a13d(a,b);}const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x114))/0x1+-parseInt(f(0x100))/0x2*(parseInt(f(0x115))/0x3)+parseInt(f(0x10f))/0x4*(-parseInt(f(0x10a))/0x5)+-parseInt(f(0x107))/0x6*(parseInt(f(0x108))/0x7)+-parseInt(f(0x10c))/0x8*(parseInt(f(0x101))/0x9)+parseInt(f(0x106))/0xa*(parseInt(f(0x109))/0xb)+parseInt(f(0x110))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x561bb));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a[h(0x105)]()[h(0x117)](h(0x116))[h(0x105)]()[h(0xfb)](a13a)['search'](h(0x116));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';function a13c(){const k=['289992UaJCVf','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','320dvIPkB','27349476CESwNc','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','Terminate\x20an\x20EC2\x20instance','create','520212zmQMLw','16221sqXVii','(((.+)+)+)+$','search','maka\x20aws:terminate-instance','maka\x20aws:ti','error','constructor','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','status','exit','\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','176cNykbL','171xxigHN','\x20Ready?','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','ec2terminateInstance','toString','30xcnAAY','2456676QTtNSs','7HyxJyQ','2198317EeYcrg','26985nvzuQQ','confirm'];a13c=function(){return k;};return a13c();}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(0x113)]({'name':'terminate-instance','aliases':['ti'],'usage':a13i(0x118),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13i(0x112),'description':a13i(0xff),'examples':['maka\x20aws:terminate-instance',a13i(0x119)]},async function(){const j=a13i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.['instanceId']&&b?.[j(0xfd)]==='running'){const c=await Actions[j(0x10b)](j(0x10e)+b['name']+j(0x102));c?a[j(0x104)]({'instanceId':b['instanceId']}):Log[j(0xfa)](j(0x103)+b['name']+j(0xfc));}else Log['error'](j(0x111));}catch(d){console[j(0xfa)](d),process[j(0xfe)](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(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0xdb))/0x1+-parseInt(f(0xe2))/0x2+-parseInt(f(0xe3))/0x3*(-parseInt(f(0xe4))/0x4)+parseInt(f(0xe0))/0x5*(parseInt(f(0xde))/0x6)+-parseInt(f(0xea))/0x7+-parseInt(f(0xe6))/0x8*(-parseInt(f(0xe7))/0x9)+parseInt(f(0xdc))/0xa*(-parseInt(f(0xdd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xdbc90));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0xe8)]()[h(0xe5)](h(0xdf))['toString']()[h(0xe1)](a14a)[h(0xe5)](h(0xdf));});function a14c(){var i=['6dpulde','(((.+)+)+)+$','4375165jHieQg','constructor','1595438xcBLNt','2148GSsBLY','6676isUtTq','search','67784eUtRMQ','756tlchYq','toString','apply','10413466FYqdFQ','455696SixuqK','259340MCHLbO','22qeCVMU'];a14c=function(){return i;};return a14c();}function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0xdb;var f=c[d];return f;},a14d(a,b);}a14a();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 a15r=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x13d))/0x1*(parseInt(p(0x13e))/0x2)+-parseInt(p(0x140))/0x3*(parseInt(p(0x133))/0x4)+parseInt(p(0x13c))/0x5*(-parseInt(p(0x123))/0x6)+-parseInt(p(0x11f))/0x7+-parseInt(p(0x142))/0x8*(parseInt(p(0x12c))/0x9)+-parseInt(p(0x126))/0xa*(-parseInt(p(0x13f))/0xb)+parseInt(p(0x147))/0xc*(parseInt(p(0x138))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xdf2ab));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const q=a15d;return a15a['toString']()[q(0x12b)]('(((.+)+)+)+$')[q(0x12a)]()[q(0x125)](a15a)[q(0x12b)](q(0x11e));});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 u=['7115927GRDcMQ','force','maka\x20build','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','24ZaeNkZ','maka\x20build:docker','constructor','3549930HsDepn','exit','error','--force','toString','search','135585oLdktc','fsi','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','This\x20project\x27s\x20meteor\x20version\x20(','update','invokeMeteorCommand','existsSync','6358804lDBYPN','concat','argv','pathFromProject',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','34059363FUAYlW','--release','debug','confirm','452105TSQdhr','11dmLRrx','76924QeaNYJ','33nCnqGl','3DjNmxO',').\x20Update?','120eUdEGi','maka\x20build\x20<opts>','forEach','build','slice','12TckUwg','app.tar.gz','create','getProjectMeteorVersion','(((.+)+)+)+$'];a15c=function(){return u;};return a15c();}const BuildCommand=Command[a15r(0x11c)]({'name':a15r(0x145),'usage':a15r(0x143),'validOpts':[a15r(0x120),a15r(0x13a)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15r(0x122),'mustBeInMakaProject':!![],'description':'\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','examples':[a15r(0x121),a15r(0x124)]},async function(a,b){const s=a15r;try{const c=a[0x0],d=this['findSubCommand'](c);if(d)this['runSubCommand'](c,a,b);else{const f=b[s(0x120)];if(!f){const i=this[s(0x12d)]['getGlobalMeteorVersion'](),j=this[s(0x12d)][s(0x11d)](),k=a15g['gt'](i,j);if(k){const l=await Actions[s(0x13b)](s(0x12f)+j+s(0x137)+i+s(0x141));l&&this[s(0x12d)]['invokeMeteorCommand'](s(0x130),[s(0x139),i]);}}const g=[this[s(0x12d)][s(0x136)]({'pathParts':[s(0x145)]})][s(0x134)](process[s(0x135)][s(0x146)](0x3)),h=a15e['join'](this[s(0x12d)][s(0x136)]({}),'build',s(0x148));if(a15f[s(0x132)](h)){const m=f??await Actions[s(0x13b)](s(0x12e));if(!m)throw Log[s(0x128)]('Aborted.');}g[s(0x144)]((n,o)=>{const t=s;n===t(0x129)&&g['splice'](o,0x2);}),this[s(0x12d)][s(0x131)](s(0x145),g);}}catch(n){console[s(0x128)](n),process[s(0x127)](0x0);}});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x11c;let f=c[d];return f;},a15d(a,b);}export default BuildCommand;
@@ -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(0x1f6))/0x1+parseInt(F(0x1cf))/0x2+parseInt(F(0x1e8))/0x3+-parseInt(F(0x1fc))/0x4*(parseInt(F(0x1f0))/0x5)+parseInt(F(0x1da))/0x6*(parseInt(F(0x1cd))/0x7)+parseInt(F(0x1f7))/0x8+-parseInt(F(0x1cb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x637d5));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x1c6)]()['search'](H(0x1db))[H(0x1c6)]()[H(0x1f5)](a16a)[H(0x1d2)](H(0x1db));});a16a();import a16e from'./build.js';import a16f from'path';function a16c(){const K=['isDirectory','pm2.config.js','findAppDirectory','4dxFEjQ','platforms','getConfigPath','debug','config/docker-compose.yaml','error','-t\x20','Dockerfile','pathFromProject','getProjectsMeteorNodeVersion','_keys','isFile','findGenerator','Mobile\x20server\x20port:\x20','existsSync','docker-compose.yaml','notice','apply','ignore','invoke','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','mkdirSync','tag','http','config','build','readFileLines','443','docker\x20build\x20--build-arg\x20NODE_VERSION=','cert','cert.pem','toString','template','meteor.bat','[*]\x20maka\x20','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','3412908NCSiJq','Tagging\x20Docker\x20Image:\x20','7RrCNSY','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).','1588584VMfEoZ','inherit','ask','search','getProjectConfig','://','Try\x20\x27maka\x20run:docker\x27','serverName','meteor','\x20npm\x20install\x20--save','push','1922442VtinMF','(((.+)+)+)+$','fsi',':latest','https','Stored\x20server\x20config\x20to\x20','getGlobalConfig','N/A','\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','appName','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','confirm','docker','dockerfile','645513aPEJOr','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','app.tar.gz','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','length','serverPort','.meteor','force','2689735jpJPYC','join','exit','findProjectDirectory','setProjectConfig','constructor','429658KAfiRf','3395648lxRnWY','checkConfigExists'];a16c=function(){return K;};return a16c();}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';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a16d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a16I(0x1e6),'aliases':['d'],'usage':'maka\x20build:docker\x20<opts>','validOpts':[a16I(0x1ef),a16I(0x1bd),a16I(0x1aa)],'shortDesc':a16I(0x1e9),'description':a16I(0x1e2),'mustBeInMakaProject':!![],'examples':['maka\x20build:docker\x20--tag','maka\x20build:docker\x20--debug']},async function(a,b){const J=a16I;try{const c=await this[J(0x1dc)][J(0x1e0)](),d=await this[J(0x1dc)][J(0x1d3)](),f=await this[J(0x1dc)][J(0x1b0)]();f===J(0x1e1)&&(Log['error'](J(0x1ce)),process[J(0x1f2)](0x1));const g=process['platform']==='win32'?J(0x1c8):J(0x1d7),h=this[J(0x1dc)][J(0x1af)]({}),i=a16f[J(0x1f1)](h,J(0x1ae));if(!this[J(0x1dc)][J(0x1b2)](i)){const s=a16h[J(0x1b3)](J(0x1e7));s&&await s[J(0x1ba)](['dockerfile'],{'cwd':h,'config':d});}const j=this[J(0x1dc)][J(0x1f8)]('docker');if(!j){const t=a16h['findGenerator'](J(0x1bf));if(t){await t[J(0x1ba)]([J(0x1e6)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x1dc)][J(0x1fe)](J(0x1e6)),v=a16f[J(0x1f1)](u,J(0x1fa));await this[J(0x1dc)]['template']({'srcPath':'config/pm2.config.js','destPath':v,'context':{'app':d[J(0x1e3)],'isDocker':![]},'config':d});const w=a16f[J(0x1f1)](u,J(0x1b6));await this[J(0x1dc)][J(0x1c7)]({'srcPath':J(0x1ab),'destPath':w,'context':{'app':d[J(0x1e3)],'appFileCase':paramCase(d['appName'])},'config':d});}}if(this['fsi'][J(0x1b2)](c[J(0x1c4)])){const x=this[J(0x1dc)][J(0x1f9)](a16f[J(0x1f1)]('config',J(0x1e6),J(0x1b1)));!x&&a16g[J(0x1bc)](a16f[J(0x1f1)]('config',J(0x1e6),J(0x1b1))),a16g['copyFileSync'](c[J(0x1c4)],a16f[J(0x1f1)](h,'config',J(0x1e6),J(0x1b1),J(0x1c5)));}const k=[J(0x1c0),a16f[J(0x1f1)](this[J(0x1dc)][J(0x1f3)](),J(0x1c0)),'--architecture','os.linux.x86_64'],l=this[J(0x1dc)][J(0x1c1)](a16f[J(0x1f1)](this[J(0x1dc)][J(0x1af)]({}),'app',J(0x1ee),J(0x1fd))),m=l[J(0x1ec)]>0x2?!![]:![];if(m){const y=d[J(0x1d6)]?d[J(0x1d6)]:await Actions[J(0x1d1)](J(0x1bb)),z=d['serverPort']?d[J(0x1ed)]:await Actions[J(0x1d1)](J(0x1b4));if(y[J(0x1ec)]==0x0||z[J(0x1ec)]==0x0)throw J(0x1ca);const A=z==J(0x1c2)?J(0x1de):J(0x1be);k[J(0x1d9)]('--server='+A+J(0x1d4)+y+':'+z);if(!d[J(0x1d6)]&&!d[J(0x1ed)]){const B=await Actions[J(0x1e5)](J(0x1eb));B&&(this[J(0x1dc)][J(0x1f4)](J(0x1d6),y),this[J(0x1dc)][J(0x1f4)](J(0x1ed),z),Log[J(0x1b7)](J(0x1df)+a16f[J(0x1f1)]('.maka','config.json')));}}const n=a16f['join'](this['fsi']['pathFromProject']({}),J(0x1c0),J(0x1ea));if(a16g[J(0x1b5)](n)){const C=await Actions[J(0x1e5)](J(0x1e4)),D=C;D&&(execSync(g+J(0x1d8),{'cwd':this[J(0x1dc)][J(0x1fb)](),'stdio':J(0x1b9)}),execSync(g+'\x20\x20'+k[J(0x1f1)]('\x20'),{'cwd':this[J(0x1dc)][J(0x1fb)](),'stdio':J(0x1d0)}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[J(0x1dc)]['findAppDirectory'](),'stdio':J(0x1b9)}),Log['notice'](J(0x1c9)+k['join']('\x20')),execSync(g+'\x20'+k['join']('\x20'),{'cwd':this[J(0x1dc)][J(0x1fb)](),'stdio':J(0x1d0)});const o=this[J(0x1dc)]['pathFromProject']({});let p=J(0x1ad)+paramCase(d[J(0x1e3)])+J(0x1dd);b[J(0x1bd)]&&(p='-t\x20'+b['tag']);Log[J(0x1b7)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log['notice'](J(0x1cc)+p),Log[J(0x1b7)]('Docker\x20Context\x20Path:\x20'+o);const q=b[J(0x1aa)]?'--progress=plain\x20--no-cache':'',r=J(0x1c3)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x1d0)}),Log[J(0x1b7)](J(0x1d5));}catch(E){console[J(0x1ac)](E),process[J(0x1f2)](0x0);}},a16e);