@maka/maka-cli 4.5.3 → 4.5.6

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 (112) hide show
  1. package/README.md +4 -0
  2. package/bundle/obf/package.json +1 -1
  3. package/bundle/obf/src/command.js +1 -1
  4. package/bundle/obf/src/commands/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/build/_index.js +1 -1
  18. package/bundle/obf/src/commands/build/build.js +1 -1
  19. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/create.js +1 -1
  21. package/bundle/obf/src/commands/debug.js +1 -1
  22. package/bundle/obf/src/commands/deploy.js +1 -1
  23. package/bundle/obf/src/commands/game/_index.js +1 -1
  24. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/game/play.command.js +1 -1
  26. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/generate.js +1 -1
  30. package/bundle/obf/src/commands/get/_index.js +1 -1
  31. package/bundle/obf/src/commands/get/get.command.js +1 -1
  32. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/help.js +1 -1
  36. package/bundle/obf/src/commands/install.js +1 -1
  37. package/bundle/obf/src/commands/jsdoc.js +1 -1
  38. package/bundle/obf/src/commands/lint.js +1 -1
  39. package/bundle/obf/src/commands/login.js +1 -1
  40. package/bundle/obf/src/commands/logout.js +1 -1
  41. package/bundle/obf/src/commands/logs.js +1 -1
  42. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  43. package/bundle/obf/src/commands/murder.js +1 -1
  44. package/bundle/obf/src/commands/proxy.js +1 -1
  45. package/bundle/obf/src/commands/reconfig.js +1 -1
  46. package/bundle/obf/src/commands/run/_index.js +1 -1
  47. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  48. package/bundle/obf/src/commands/run/run.command.js +1 -1
  49. package/bundle/obf/src/commands/set/_index.js +1 -1
  50. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  52. package/bundle/obf/src/commands/set/set.command.js +1 -1
  53. package/bundle/obf/src/commands/ssh.js +1 -1
  54. package/bundle/obf/src/commands/ssl.js +1 -1
  55. package/bundle/obf/src/commands/test.js +1 -1
  56. package/bundle/obf/src/commands/version.js +1 -1
  57. package/bundle/obf/src/error.js +1 -1
  58. package/bundle/obf/src/generator.js +1 -1
  59. package/bundle/obf/src/generators/_index.js +1 -1
  60. package/bundle/obf/src/generators/api.js +1 -1
  61. package/bundle/obf/src/generators/collection.js +1 -1
  62. package/bundle/obf/src/generators/component.js +1 -1
  63. package/bundle/obf/src/generators/config.js +1 -1
  64. package/bundle/obf/src/generators/dbc.js +1 -1
  65. package/bundle/obf/src/generators/dockerfile.js +1 -1
  66. package/bundle/obf/src/generators/hook.js +1 -1
  67. package/bundle/obf/src/generators/kit.js +1 -1
  68. package/bundle/obf/src/generators/layout.js +1 -1
  69. package/bundle/obf/src/generators/maka.gen.js +1 -1
  70. package/bundle/obf/src/generators/methods.js +1 -1
  71. package/bundle/obf/src/generators/package.js +1 -1
  72. package/bundle/obf/src/generators/page.js +1 -1
  73. package/bundle/obf/src/generators/publish.js +1 -1
  74. package/bundle/obf/src/generators/route.js +1 -1
  75. package/bundle/obf/src/generators/service.js +1 -1
  76. package/bundle/obf/src/generators/services/_index.js +1 -1
  77. package/bundle/obf/src/generators/services/openssl.js +1 -1
  78. package/bundle/obf/src/generators/services/translation.js +1 -1
  79. package/bundle/obf/src/maka.js +1 -1
  80. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +20 -6
  81. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +21 -7
  82. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +10 -0
  83. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +10 -0
  84. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +25 -14
  85. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +25 -13
  86. package/bundle/obf/src/templates/meteor/template/template.js.jsx +1 -1
  87. package/bundle/obf/src/templates/meteor/template/template.js.tsx +1 -1
  88. package/bundle/obf/src/templates/react/component/component.js.jsx +2 -6
  89. package/bundle/obf/src/templates/react/component/component.js.tsx +2 -6
  90. package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -5
  91. package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -5
  92. package/bundle/obf/src/tool.js +1 -1
  93. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  94. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  95. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  96. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  97. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  98. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  99. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  100. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  101. package/bundle/obf/src/tools/https/https.class.js +1 -1
  102. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  103. package/bundle/obf/src/tools/log/log.class.js +1 -1
  104. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  105. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  106. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  107. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  108. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  109. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  110. package/jest.config.js +11 -0
  111. package/package.json +5 -4
  112. package/tsconfig.json +1 -1
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
3
+ </p>
4
+
1
5
  ## About
2
6
  Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
3
7
  (i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
@@ -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.3",
4
+ "version": "4.5.5",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(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
+ const a0s=a0d;function a0c(){const E=['proFlags','6WKjFJq','includes','help','murder','validateMakaSubscription','Too\x20few\x20options','singleLicense','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','minOptsLength','validateParams','Name','validateMakaProject','_commands','Command\x20not\x20found','8sYtvGI','find','findSubCommand','function','roles','validateMeteorInstall','length','findCommand','runSubCommand','Too\x20few\x20arguments','84785jugvZb','assign','filter','mustHaveMeteorInstalled','shortDesc','options','90690hbswsF','call','usage','tableList','11rqWvkr','header','Command\x20requires\x20a\x20name','invoke','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','error','4255727VkVuRQ','fsi','maxArgLength','match','bright','bind','12698860LMwQFt','To\x20use\x20these\x20pro\x20flags,\x20\x22','getPro','6848523yEEemV','create','toString','split','parent','256gACERC','Description','keys','name','play','number','apply','join','Command.create\x20requires\x20a\x20handler\x20function!','notice','To\x20use\x20this\x20command,\x20\x22','push','run','forEach','search','There\x20is\x20no\x20Meteor\x20application\x20here','(((.+)+)+)+$','minArgLength','maxOptsLength','mustBeInMakaProject','Command\x20requires\x20a\x20handler\x20function','proCommands','exit','aliases','Too\x20many\x20arguments','Too\x20many\x20options','2424894rMuAgL','6832416WHTkYZ','Sub-Commands:','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'];a0c=function(){return E;};return a0c();}(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x249))/0x1*(-parseInt(p(0x231))/0x2)+parseInt(p(0x22b))/0x3+-parseInt(p(0x211))/0x4*(-parseInt(p(0x1f9))/0x5)+parseInt(p(0x22c))/0x6+-parseInt(p(0x203))/0x7*(parseInt(p(0x23f))/0x8)+-parseInt(p(0x20c))/0x9+parseInt(p(0x209))/0xa*(-parseInt(p(0x1fd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb09e3));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x217)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x20e)]()['search'](r(0x221))[r(0x20e)]()['constructor'](a0a)[r(0x21f)]('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{['options'];[a0s(0x23d)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x22e));if(!a[t(0x214)])throw new Error(t(0x1ff));if(typeof b!=='function')throw new Error(t(0x225));this[t(0x1f8)]=Object['assign']({},a),this['name']=this[t(0x1f8)]['name'],this['_commands']=[],this['_handler']=b[t(0x208)](this);}static[a0s(0x20d)](a,b,c){const u=a0s;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==u(0x242))throw new Error(u(0x219));const d=new Command(a,b);return c=c||a0f,Object[u(0x1f4)](d,{'parent':c?.[u(0x1f8)]?.['name']}),c['addCommand'](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][v(0x21c)](a);}async[a0s(0x235)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x214)]||a[0x0],e=c?.[w(0x210)]||'',f=c?.[w(0x1f8)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object[w(0x213)](b),i=await this['fsi'][w(0x20b)]();!i&&(Log[w(0x202)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[w(0x227)](0x1));const j=i?.['proCommands'][w(0x232)](d)||i?.[w(0x226)][w(0x232)](e),k=i?.[w(0x243)][w(0x232)](w(0x237))||i?.[w(0x243)][w(0x232)]('domainLicense'),l=!k;if(j&&l)throw w(0x21b)+a[0x0]+w(0x201);if(h[w(0x245)]>0x0){const m=i?.[w(0x230)][w(0x1f5)](n=>h[w(0x232)](n));if(m&&m[w(0x245)]>0x0&&l)throw w(0x20a)+m?.[w(0x218)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g==='deploy'){const n=await this[w(0x204)][w(0x20b)](),o=n?.[w(0x226)][w(0x232)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this['validateMakaSubscription'](a,b);}catch(c){Log[x(0x202)](c),process[x(0x227)](0x0);}await this['invoke'](a,b);}catch(d){process['exit'](0x1);}}async[a0s(0x200)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x1f8)];try{if(this[y(0x1f8)][y(0x214)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[y(0x23d)][y(0x245)]>=0x0;if(f&&b['help']){if(this['_commands'][y(0x245)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x233)]){if(this[y(0x1f8)][y(0x224)]){const g=this[y(0x23c)]();if(!g)throw new MustBeInProjectError();}if(this[y(0x1f8)][y(0x1f6)]){const h=this[y(0x244)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x1f8)][y(0x222)]===y(0x216)){if(a['length']<this[y(0x1f8)][y(0x222)]){Log[y(0x202)](y(0x248));throw new UsageError();}}if(typeof this[y(0x1f8)][y(0x205)]===y(0x216)){if(a['length']>=this[y(0x1f8)][y(0x205)]){Log['error'](y(0x229));throw new UsageError();}}if(typeof this[y(0x1f8)][y(0x239)]===y(0x216)){if(Object[y(0x213)](b)[y(0x245)]<this['options'][y(0x239)]){Log['error'](y(0x236));throw new UsageError();}}if(typeof this['options'][y(0x223)]===y(0x216)){if(Object[y(0x213)](b)[y(0x245)]>=this['options'][y(0x223)]){Log['error'](y(0x22a));throw new UsageError();}}}}this[y(0x23a)](a,b,this[y(0x1f8)]),_prevCmd=a[0x0];}await this['_handler'][y(0x1fa)](this,a,b);}catch(i){Log[y(0x1fb)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0x21a)](y(0x22d)),this[y(0x1fc)](this[y(0x23d)]),Log[y(0x1fe)](y(0x238));else{if(i instanceof MustBeInProjectError)Log[y(0x202)](y(0x22f));else{if(i instanceof NoMeteorFoundError)Log[y(0x202)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[y(0x21a)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(i instanceof NoMeteorAppFoundError)Log[y(0x202)](y(0x220));else throw i;}}}process[y(0x227)](0x1);}}[a0s(0x1fc)](a){const z=a0s,b=new a0e({});b[z(0x21c)]([z(0x23b),'Alias',z(0x212)]),a['sort']()[z(0x21e)](c=>{const A=z;c['name']!==A(0x234)&&c[A(0x214)]!==A(0x215)&&b[A(0x21c)]([c[A(0x214)],c[A(0x228)](),c[A(0x1f7)]()]);}),Log[z(0x207)](b[z(0x20e)]());}[a0s(0x246)](a){const B=a0s;return this[B(0x23d)][B(0x240)](b=>b[B(0x206)](a));}[a0s(0x241)](a){const C=a0s,b=a?.[C(0x20f)](':');if(b)return a=b[0x0],this[C(0x246)](a);else return;}async[a0s(0x247)](a,b,c){const D=a0s;try{const d=a[D(0x20f)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g[D(0x21d)](b,c);else throw D(0x23e);}catch(h){throw Log[D(0x202)](h);}}}
@@ -1 +1 @@
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
+ function a1c(){var i=['3377YwaGbb','12650oCMQpx','9577080TBQpTv','apply','8aDDzaj','17idprgg','40012SEJXIg','2224zehUeE','constructor','toString','14665vForcI','(((.+)+)+)+$','69khBDpe','search','70675KtXahZ','330OYhaZd','2122524gYaVHf'];a1c=function(){return i;};return a1c();}(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0xa0))/0x1*(-parseInt(f(0x90))/0x2)+-parseInt(f(0x96))/0x3*(parseInt(f(0x91))/0x4)+-parseInt(f(0x98))/0x5+-parseInt(f(0x99))/0x6*(-parseInt(f(0x94))/0x7)+-parseInt(f(0x9f))/0x8*(-parseInt(f(0x9a))/0x9)+parseInt(f(0x9c))/0xa*(parseInt(f(0x9b))/0xb)+-parseInt(f(0x9d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x3e229));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x93)]()[h(0x97)](h(0x95))[h(0x93)]()[h(0x92)](a1a)['search']('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x90;var f=c[d];return f;},a1d(a,b);}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';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(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
+ function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x172;var f=c[d];return f;},a2d(a,b);}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x179))/0x1+parseInt(f(0x180))/0x2+-parseInt(f(0x175))/0x3*(parseInt(f(0x17d))/0x4)+parseInt(f(0x174))/0x5*(-parseInt(f(0x177))/0x6)+parseInt(f(0x176))/0x7+-parseInt(f(0x17c))/0x8*(-parseInt(f(0x172))/0x9)+-parseInt(f(0x178))/0xa*(parseInt(f(0x17e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x264f8));var a2b=(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;};}()),a2a=a2b(this,function(){var g=a2d;return a2a[g(0x17b)]()[g(0x17a)]('(((.+)+)+)+$')['toString']()[g(0x17f)](a2a)[g(0x17a)](g(0x173));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';function a2c(){var h=['518874XFbAyU','378351egvcoV','(((.+)+)+)+$','348605kbDglT','9ClEfgS','283437edAWmx','12ptOGry','10yTWasT','11421jNSNcu','search','toString','16PGPzuA','74632HPWTlg','474001HSjFKA','constructor'];a2c=function(){return h;};return a2c();}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
@@ -1 +1 @@
1
- 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
+ const a3i=a3d;function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x113;let f=c[d];return f;},a3d(a,b);}(function(a,b){const f=a3d,c=a();while(!![]){try{const d=parseInt(f(0x11e))/0x1+parseInt(f(0x11b))/0x2*(parseInt(f(0x117))/0x3)+parseInt(f(0x118))/0x4+parseInt(f(0x126))/0x5+-parseInt(f(0x123))/0x6+-parseInt(f(0x113))/0x7+parseInt(f(0x11a))/0x8*(parseInt(f(0x124))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xe0ec0));function a3c(){const k=['apply','8jsGPsy','59638qJDlwz','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','aws','424823ETDTnv','runSubCommand','maka\x20aws:<sub-command>','(((.+)+)+)+$','Sub\x20Command\x20not\x20found','4458498dxssuJ','10208799yxmRFP','\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','2322720TPLXXL','6812379fdeQVI','toString','findSubCommand','search','45opeiFd','666388nKzrgl'];a3c=function(){return k;};return a3c();}const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x114)]()['search']('(((.+)+)+)+$')[h(0x114)]()['constructor'](a3a)[h(0x116)](h(0x121));});a3a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command['create']({'name':a3i(0x11d),'usage':a3i(0x120),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0x11c),'description':a3i(0x125)},async function(a,b){const j=a3i,c=a[0x0],d=this[j(0x115)](c);if(d)this[j(0x11f)](c,a,b);else{Log['error'](j(0x122));throw new UsageErrorWithSubs();}});export default AWSCommand;
@@ -1 +1 @@
1
- const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=parseInt(ae(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
+ const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x10c))/0x1*(-parseInt(ae(0xc0))/0x2)+-parseInt(ae(0xc4))/0x3*(parseInt(ae(0xd3))/0x4)+parseInt(ae(0xc1))/0x5*(parseInt(ae(0xe6))/0x6)+parseInt(ae(0xdb))/0x7+parseInt(ae(0xde))/0x8*(-parseInt(ae(0x120))/0x9)+parseInt(ae(0xd8))/0xa+parseInt(ae(0xda))/0xb*(-parseInt(ae(0x10d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xf0fc6));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x11d)]()[ag(0xcf)](ag(0x11c))[ag(0x11d)]()[ag(0x11f)](a4a)['search'](ag(0x11c));});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 au=['env','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','getConfigPath','Setting\x20AMI\x20ID\x20to\x20','1:1','subnetId','**\x20Available\x20AMIs\x20**','\x20SGID:\x20','Create\x20new\x20AWS\x20instance','getConfigFromShorthand','getTime','**\x20Available\x20Security\x20Groups\x20**','\x20CIDR:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','split','fsi','forEach','18tToqZU','34111692xxIuRf','user-data','error','Instance\x20Count:\x20','Setting\x20SG\x20ID\x20to:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','alias','Name','\x20DESCRIPTION:\x20','sgId','Instace\x20Type:\x20','**\x20Available\x20key-pairs\x20**','notice','created-by','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','(((.+)+)+)+$','toString','getSecurityGroups','constructor','1769814HwXtbz','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','\x20AZONE:\x20','createKeyPair','ID:\x20','ImageID:','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Web\x20App','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','121438gysEsy','1966495lLytyi','confirm','ask','116646YiZjQj','createFile','maka\x20aws:create-instance\x20<opts>','deleteSecurityGroup','cidr','Remove\x20the\x20keypair\x20','exit','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','name','apply','Subnet:\x20','search','environment','cider','Remove\x20the\x20security\x20group\x20','28zugfsN','*\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','success','**\x20Available\x20Subnets\x20**','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','4920100oBEiWD','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','11YadYdw','10735732lHXUeE','amiId','chooseVPC','40bFjvuH','maka-cli','push','build\x20on\x20','ec2describeKeys','\x20SG\x20NAME:\x20','sort','date','30oLFlDt','parse','bright','log','desc','readFileSync','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','number','\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','Key-Pair:\x20','Desc','Setting\x20the\x20key-pair\x20to:\x20','t3.micro','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=*','create-instance','deleteKeyPair','\x20AMIID:\x20','Security\x20Group:\x20','join','Security\x20Group\x20Name:\x20['];a4c=function(){return au;};return a4c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xbb;let f=c[d];return f;},a4d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a4ah(0xf4),'aliases':['ci'],'usage':a4ah(0xc6),'examples':['maka\x20aws:create-instance\x20--env\x20dev','maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ah(0x102),'description':a4ah(0xee)},async function(a,b){const ai=a4ah;try{const c=this[ai(0x10a)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ai(0x103)](b[ai(0xfa)]),i=this[ai(0x10a)][ai(0xfc)](h),j=g+'-'+h,k=await Actions['ask']('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x108),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x123)]({'env':h});r=y,s=z,Log[ai(0xd5)](ai(0xf1)+r);}else try{Log[ai(0x119)](ai(0x118));const A=r?r:k,B=await d[ai(0xe2)]({'suggestion':A}),C=await Actions[ai(0xc3)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log['error']('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(0x119)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x10b)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xcc)],Log[aj(0xd5)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x10f)](D);}l=await d[ai(0xdd)]();const t=await Actions[ai(0xc2)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0xdd)]():l;u=await Actions[ai(0xc3)](ai(0xf9)+k+']')||k;const F=await Actions[ai(0xc3)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F['split'](',');await d['ec2createSG']({'description':ai(0xbe),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x11e)](u);if(I===''){Log[ai(0x119)](ai(0x105)),J[ai(0x10b)](function(L){const ak=ai;L[ak(0xcc)]===u?Log[ak(0x119)](ak(0xbb)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xcc)]+ak(0x101)+L[ak(0x116)]):Log['bright'](ak(0xbb)+L['id']+ak(0xe3)+L[ak(0xcc)]+ak(0x101)+L[ak(0x116)]);});const K=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x11d)]();J[ai(0x10b)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x116)],Log[al(0xd5)](al(0x111)+m+'\x0a'));});}else m=I,Log['success'](ai(0x111)+m+'\x0a');if(m==='')throw Log[ai(0x10f)](ai(0xbf));}catch(L){Log[ai(0x10f)](L);}try{const M=0x7e6;Log[ai(0x119)](ai(0x100));const N=execSync(ai(0xf3)+M+ai(0xd4))['toString'](),O=JSON[ai(0xe7)](N),P=[],Q=[];O[ai(0x10b)](function(S){const am=ai;if(S[am(0x113)]==='amazon'){const T=S[am(0xf0)][am(0x109)](am(0xe1))[0x1];P[am(0xe0)]({'amiId':S['ID'],'desc':S[am(0xf0)],'date':T});}}),P[ai(0xe4)](function(S,T){const an=ai;return new Date(T[an(0xe5)])[an(0x104)]()-new Date(S[an(0xe5)])['getTime']();}),P[ai(0x10b)](function(S,T){const ao=ai;Q[ao(0xe0)]({'id':T,'amiId':S[ao(0xdc)],'desc':S['desc']});}),Q[ai(0x10b)](function(S){const ap=ai;console[ap(0xe9)]('ID:\x20'+S['id']+ap(0xf6)+S[ap(0xdc)]+ap(0x115)+S[ap(0xea)]);});const R=await Actions['ask'](ai(0xd7))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xdc)],Log['success'](aq(0xfd)+n+'\x20:\x20'+S[aq(0xea)]));});if(n==='')throw Log[ai(0x10f)](ai(0xbf));}catch(S){Log[ai(0x10f)](S);}try{Log[ai(0x119)](ai(0xd6));const T=execSync(ai(0xfb))[ai(0x11d)](),U=JSON[ai(0xe7)](T),V=[];U[ai(0x10b)](function(X,Y){const ar=ai;V[ar(0xe0)]({'id':Y,'cidr':X[ar(0xd1)],'az':X['az'],'subnetId':X['subnetId']});}),V['forEach'](function(X){const as=ai;console[as(0xe9)]('ID:\x20'+X['id']+as(0x106)+X[as(0xc8)]+as(0x122)+X['az']+'\x20SUBNETID:\x20'+X[as(0xff)]);});const W=await Actions[ai(0xc3)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x10b)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xff)],Log[at(0xd5)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x10f)](ai(0xbf));}catch(X){Log[ai(0x10f)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xc3)](ai(0x121))||ai(0xfe),Z=Y[ai(0x109)](':')[0x0],a0=Y[ai(0x109)](':')[0x1];typeof parseInt(Z)===ai(0xed)&&typeof parseInt(a0)===ai(0xed)&&Log[ai(0xd5)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x10f)](a1);}try{const a2=await Actions[ai(0xc3)](ai(0x11b))||ai(0xf2);typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x10f)](a3);}let x;try{const a4=await Actions[ai(0xc2)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a4f[ai(0xf8)](i,ai(0x10e)),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+x),await this['fsi'][ai(0xc5)]({'filePath':x,'data':''}),await Actions[ai(0xc2)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xe7)](execSync(ai(0xcb)+p+ai(0x112))[ai(0x11d)]())[0x0]['subnet'];Log[ai(0x119)](ai(0xbc)+n),Log[ai(0x119)](ai(0x110)+v+':'+w),Log['notice'](ai(0x117)+o),Log[ai(0x119)](ai(0xef)+r),Log[ai(0x119)](ai(0xf7)+m),Log[ai(0x119)](ai(0xce)+a6);if(x){Log[ai(0x119)]('User\x20Data:'+x);const a8=a4g[ai(0xeb)](x);Log['notice'](a8);}const a7=await Actions[ai(0xc2)](ai(0x107));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x11a),'Value':ai(0xdf)},{'Key':ai(0xd0),'Value':h},{'Key':ai(0x114),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xd5)](ai(0xec)),Log[ai(0xe8)](ai(0xd9)));}else{Log[ai(0x119)](ai(0xbd));const aa=await Actions[ai(0xc2)](ai(0xc9)+r+'\x20?',!![]);aa&&(d[ai(0xf5)](r),f['isFile'](s)&&a4g['unlinkSync'](s));const ab=await Actions['confirm'](ai(0xd2)+m+'\x20?',!![]);ab&&d[ai(0xc7)](m);}}catch(ac){console[ai(0xe9)](ac),Log[ai(0x10f)](ac);}}catch(ad){console[ai(0x10f)](ad),process[ai(0xca)](0x0);}},a4e);
@@ -1 +1 @@
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
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x118))/0x1*(parseInt(g(0x12f))/0x2)+parseInt(g(0x11e))/0x3+parseInt(g(0x122))/0x4+parseInt(g(0x126))/0x5*(-parseInt(g(0x129))/0x6)+parseInt(g(0x117))/0x7+-parseInt(g(0x11d))/0x8+parseInt(g(0x128))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x620f1));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x12a)]()[i(0x12c)](i(0x12b))['toString']()['constructor'](a5a)[i(0x12c)](i(0x12b));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const l=['ckp','maka\x20aws:ckp\x20--env\x20prod','exit','3563448qDrMXB','1950228vwVIjK','error','createKeyPair','env','552788zDWvjH','maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:create-key-pair\x20<opts>','fsi','2729395EGQlba','create-key-pair','7863939basYcb','6MLdzIw','toString','(((.+)+)+)+$','search','create','apply','1442796tvumxG','getConfigFromShorthand','3166191OlqGKv','1LwHztF','\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();}import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x117;let f=c[d];return f;},a5d(a,b);}Command[a5j(0x12d)]({'name':a5j(0x127),'aliases':[a5j(0x11a)],'usage':a5j(0x124),'examples':[a5j(0x123),a5j(0x11b)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x121)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a5j(0x119)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x125)][k(0x130)](b[k(0x121)]);c[k(0x120)]({'env':d});}catch(f){console[k(0x11f)](f),process[k(0x11c)](0x0);}},a5e);
@@ -1 +1 @@
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
+ function a6c(){const s=['4108644wAysLk','getProjectConfig','maka\x20aws:csg','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','22tdtqxb','330747ssUilK','Security\x20Group\x20Name:\x20[','20DwHidc','8025RnDNrq','exit','create','10GboMBR','error','4755112WrxPTQ','22,80,443','search','match','toString','List\x20is\x20not\x20all\x20numbers','maka\x20aws\x20create-security-group','Web\x20App','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','(((.+)+)+)+$','ask','csg','apply','maka\x20aws:create-secuirty-group','create-security-group','1588867MyfxWK','name','split','75485AKLygI','8561538IKKFdr'];a6c=function(){return s;};return a6c();}const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0x110))/0x1+-parseInt(m(0x12d))/0x2*(-parseInt(m(0x12e))/0x3)+parseInt(m(0x10f))/0x4*(parseInt(m(0x127))/0x5)+-parseInt(m(0x129))/0x6+-parseInt(m(0x124))/0x7+-parseInt(m(0x115))/0x8+parseInt(m(0x128))/0x9*(parseInt(m(0x113))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xb1159));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x119)]()[o(0x117)]('(((.+)+)+)+$')[o(0x119)]()['constructor'](a6a)[o(0x117)](o(0x11e));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x10e;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(0x112)]({'name':a6p(0x123),'aliases':[a6p(0x120)],'usage':a6p(0x11b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x12c),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a6p(0x122),a6p(0x12b)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this['fsi'][q(0x12a)](),{appName:f}=d,g=await c['chooseVPC'](),h=b['name']?b[q(0x125)]:''+f,i=await Actions[q(0x11f)](q(0x10e)+h+']')||h,j=await Actions[q(0x11f)](q(0x11d))||q(0x116),k=j[q(0x126)](',');k['forEach'](l=>{const r=q;if(!l[r(0x118)](/^\d+$/))throw r(0x11a);}),await c['ec2createSG']({'description':q(0x11c),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x114)](l),process[q(0x111)](0x1);}},a6e);
@@ -1 +1 @@
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
+ const a7h=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0x1d7))/0x1+-parseInt(f(0x1e0))/0x2+parseInt(f(0x1e3))/0x3*(-parseInt(f(0x1db))/0x4)+parseInt(f(0x1dd))/0x5+parseInt(f(0x1e2))/0x6*(-parseInt(f(0x1de))/0x7)+parseInt(f(0x1e6))/0x8*(parseInt(f(0x1df))/0x9)+parseInt(f(0x1d8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x29c45));const a7b=(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;};}()),a7a=a7b(this,function(){const g=a7d;return a7a[g(0x1d6)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a7a)['search']('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7h(0x1da)]({'name':a7h(0x1e1),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7h(0x1e5),'examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':a7h(0x1d9)},async function(){const i=a7h;try{const a=new AWS();a[i(0x1e4)]();}catch(b){console['error'](b),process[i(0x1dc)](0x0);}},a7e);function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a7d(a,b);}function a7c(){const j=['101034qxWVaB','9usGQXR','ec2describeInstances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','16gKPPEw','toString','240848RwZBkP','1873410ZmnDft','\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','create','14940kMjfPe','exit','1271045CjggTM','21RVOVSA','1464219wFFNOO','586570GflnGd','describe-instances'];a7c=function(){return j;};return a7c();}
@@ -1 +1 @@
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
+ const a8i=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x12a;let f=c[d];return f;},a8d(a,b);}(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x12c))/0x1*(parseInt(f(0x135))/0x2)+parseInt(f(0x138))/0x3+parseInt(f(0x12e))/0x4+parseInt(f(0x132))/0x5+-parseInt(f(0x13a))/0x6+-parseInt(f(0x131))/0x7+-parseInt(f(0x12d))/0x8*(-parseInt(f(0x133))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x890ea));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x12a)]()[h(0x13b)](h(0x13c))[h(0x12a)]()[h(0x12f)](a8a)['search'](h(0x13c));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const k=['apply','2035554MABmlh','describe-key-pairs','4226166JTiZEf','search','(((.+)+)+)+$','toString','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','15878PhhzDZ','173248rgRvYU','4195480gCcmCs','constructor','exit','2171715ZiFLBk','1834000HEAZYE','9xbNhvg','maka\x20aws:describe-key-pairs','68BVPRCB','create'];a8c=function(){return k;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0x136)]({'name':a8i(0x139),'aliases':['dkp'],'usage':a8i(0x134),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x12b),'examples':['maka\x20aws:describe-key-pairs','maka\x20aws:dkp']},async function(){const j=a8i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){console['error'](b),process[j(0x130)](0x0);}},a8e);
@@ -1 +1 @@
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
+ const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=-parseInt(l(0x70))/0x1+parseInt(l(0x6e))/0x2+parseInt(l(0x6f))/0x3+parseInt(l(0x81))/0x4*(parseInt(l(0x8a))/0x5)+-parseInt(l(0x7a))/0x6+-parseInt(l(0x93))/0x7+parseInt(l(0x76))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x1b509));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a['toString']()[n(0x71)](n(0x8b))[n(0x89)]()[n(0x8c)](a9a)['search']('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x6d;let f=c[d];return f;},a9d(a,b);}function a9c(){const r=['maka\x20aws:dsg','name','toString','1865MCcqiH','(((.+)+)+)+$','constructor','\x20SGID:\x20','sgId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','getProjectConfig','includes','error','516236PFEfYF','isMakaProject','getSecurityGroups','201764CBNBxi','45540lkrLee','86534GVlfft','search','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','appName','success','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','1143992nBjcMu','Not\x20deleting\x20secuirty\x20group','bright','Deleting\x20a\x20','40002gUSGdJ','delete-security-group','apply','exit','ask','forEach','notice','212gHGXcD','maka\x20aws:delete-sg','ID:\x20','deleteSecurityGroup','create','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC'];a9c=function(){return r;};return a9c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a9o(0x85)]({'name':a9o(0x7b),'aliases':['dsg'],'usage':a9o(0x82),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x86),'examples':[a9o(0x82),a9o(0x87)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b[p(0x94)]();let d='';if(c){const j=b[p(0x90)]();d=j[p(0x73)];}const {sgList:f}=await a[p(0x6d)]();f[p(0x7f)](function(k){const q=p;c&&k[q(0x88)][q(0x91)](d)?Log[q(0x80)](q(0x83)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+q(0x8d)+k[q(0x8e)]):Log[q(0x78)](q(0x83)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x88)]+q(0x8d)+k['sgId']);});let g='';const h=await Actions[p(0x7e)](p(0x75));f[p(0x7f)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x92)](p(0x8f));const i=await Actions['confirm'](p(0x79)+g+p(0x72),![]);i?(await a[p(0x84)](g),Log[p(0x74)]('Deleted\x20'+g)):Log[p(0x92)](p(0x77)),process[p(0x7d)](0x0);}catch(k){process['exit'](0x1);}},a9e);
@@ -1 +1 @@
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
+ function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xc8;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(0xe2))/0x1*(parseInt(f(0xd2))/0x2)+-parseInt(f(0xe5))/0x3+-parseInt(f(0xd3))/0x4*(parseInt(f(0xca))/0x5)+-parseInt(f(0xdc))/0x6*(-parseInt(f(0xce))/0x7)+-parseInt(f(0xd7))/0x8+parseInt(f(0xcc))/0x9+parseInt(f(0xe7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xe40ab));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xdd)]()[h(0xd5)](h(0xd9))[h(0xdd)]()[h(0xe1)](a10a)[h(0xd5)](h(0xd9));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10c(){const k=['749225OywgUd','\x20Ready?','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','4413138zlZAdC','ec2rebootInstance','27355500TOnxsm','exit','maka\x20aws:reboot-instance','5LlEyZo','Reboot\x20an\x20EC2\x20instance','8708166xURLdS','maka\x20aws:rbi','448NhTNQC','error','status','confirm','2YtArSn','2350956guGVZa','name','search','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','12574088GQVrSd','instanceId','(((.+)+)+)+$','reboot-instance','apply','10524BEGWqH','toString','chooseInstance','running','\x20is\x20still\x20running.','constructor'];a10c=function(){return k;};return a10c();}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['create']({'name':a10i(0xda),'aliases':['rbi'],'usage':a10i(0xc9),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xcb),'examples':[a10i(0xc9),a10i(0xcd)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0xde)]();if(b?.[j(0xd0)]===j(0xdf)){const c=await Actions[j(0xd1)](j(0xe4)+b[j(0xd4)]+j(0xe3));c&&b['instanceId']?a[j(0xe6)]({'instanceId':b[j(0xd8)]}):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0xd4)]+j(0xe0));}else Log[j(0xcf)](j(0xd6));}catch(d){console['error'](d),process[j(0xc8)](0x0);}},a10e);
@@ -1 +1 @@
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
+ const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x13d))/0x1+-parseInt(h(0x137))/0x2*(-parseInt(h(0x13e))/0x3)+-parseInt(h(0x146))/0x4+parseInt(h(0x140))/0x5*(-parseInt(h(0x141))/0x6)+-parseInt(h(0x13b))/0x7*(-parseInt(h(0x142))/0x8)+-parseInt(h(0x139))/0x9*(parseInt(h(0x14d))/0xa)+parseInt(h(0x149))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x67d7f));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0x14e)]()['search'](j(0x134))[j(0x14e)]()['constructor'](a11a)[j(0x148)](j(0x134));});a11a();import a11e from'./aws.command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x134;let f=c[d];return f;},a11d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0x147)]({'name':a11k(0x14a),'aliases':[a11k(0x14b)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x145),'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','maka\x20aws:rkp']},async function(){const l=a11k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c;const d=await Actions['ask'](l(0x135));b?.[l(0x136)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x14f)](l(0x13f));const f=await Actions[l(0x144)](l(0x138)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a['deleteKeyPair'](c),Log[l(0x14c)](l(0x150)+c)):Log[l(0x14f)](l(0x13a)),process[l(0x143)](0x0);}catch(g){process['exit'](0x1);}},a11e);function a11c(){const m=['success','16230cSNNOs','toString','error','Deleted\x20','(((.+)+)+)+$','Please\x20choose\x20a\x20key\x20to\x20delete:','forEach','2pvshef','Deleting\x20a\x20','387LWsNHD','Not\x20deleting\x20keypair','49ArDQqD','apply','114960aKeGfG','1652283bYaUtx','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','25amRJJM','924162XFsSVr','894224MEXZrW','exit','confirm','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','2678624WAWWWn','create','search','5354316teiYwB','remove-key-pair','rkp'];a11c=function(){return m;};return a11c();}
@@ -1 +1 @@
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
+ const a12o=a12d;function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xf8;let f=c[d];return f;},a12d(a,b);}function a12c(){const q=['5305428Kpzxlj','ask','private','join','writeFileSync','privateIp','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','template','maka\x20aws:sth\x20--env\x20prod','isFile','error','public','parse','maka\x20aws:set-host\x20--env\x20dev','730452YbWeun','5664730zgIvBA','3305208xocjpp','toString','stringify','host','apply','\x0aSaved\x20host\x20','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','2OQbxWJ','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','inherit','ssh.json','chooseInstance','appName','5322472jZPMIS','30xCbJVA','fsi','set-host','cat\x20','exit','search','3335292ceFgpI','maka\x20aws\x20set-host','\x20IP\x20to\x20','346563UAvOba','readFileSync','\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','70NpTFII','(((.+)+)+)+$'];a12c=function(){return q;};return a12c();}(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0xff))/0x1+parseInt(l(0x108))/0x2*(parseInt(l(0x115))/0x3)+parseInt(l(0x101))/0x4+parseInt(l(0x100))/0x5+parseInt(l(0x10f))/0x6*(parseInt(l(0x118))/0x7)+parseInt(l(0x10e))/0x8+parseInt(l(0x11d))/0x9*(-parseInt(l(0x11b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x8f862));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x102)]()[n(0x114)](n(0x11c))['toString']()['constructor'](a12a)[n(0x114)](n(0x11c));});a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12o(0x111),'aliases':['sth'],'usage':a12o(0x116),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x123),'description':a12o(0x11a),'examples':[a12o(0xfe),a12o(0xf9)]},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x110)]['getConfigPath'](b['env']),f=this['fsi']['getProjectConfig'](),g=await c[p(0x10c)](),h=a12e[p(0x120)](d,p(0x10b));!this[p(0x110)][p(0xfa)](h)&&await this[p(0x110)][p(0xf8)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x10d)]},'config':f});const i=JSON[p(0xfd)](a12f[p(0x119)](h,'utf8')),j=await Actions[p(0x11e)](p(0x107))||'public';if(j){if(j===p(0xfc)||j===p(0x11f)){if(j===p(0xfc))i[p(0x104)]=g?.['publicIp'];else j===p(0x11f)&&(i['host']=g?.[p(0x122)]);}else throw p(0x109);}else i[p(0x104)]=g?.[p(0x122)];a12f[p(0x121)](a12e[p(0x120)](d,p(0x10b)),JSON[p(0x103)](i,null,0x2)),execSync(p(0x112)+a12e[p(0x120)](d,p(0x10b)),{'stdio':p(0x10a)}),Log['success'](p(0x106)+j+p(0x117)+d+a12e['sep']+p(0x10b));}catch(k){console[p(0xfb)](k),process[p(0x113)](0x0);}},a12g);
@@ -1 +1 @@
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
+ const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x1fa))/0x1*(parseInt(f(0x1f6))/0x2)+parseInt(f(0x1fc))/0x3+parseInt(f(0x1f9))/0x4+-parseInt(f(0x1eb))/0x5*(parseInt(f(0x201))/0x6)+-parseInt(f(0x1f1))/0x7+parseInt(f(0x1e9))/0x8+-parseInt(f(0x1e6))/0x9*(-parseInt(f(0x1f4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x8e786));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a['toString']()[h(0x1fd)](h(0x1ed))[h(0x1f7)]()[h(0x1e3)](a13a)['search'](h(0x1ed));});a13a();function a13c(){const k=['terminate-instance','24UEgyVl','Terminate\x20an\x20EC2\x20instance','ec2terminateInstance','constructor','instanceId','error','57483lKvwTM','maka\x20aws:ti','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','6811104SmkyVe','\x20Ready?','1269925AEbmia','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','(((.+)+)+)+$','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','maka\x20aws:terminate-instance','name','2154768AFTaVu','chooseInstance','apply','610UeNJVA','create','8sfGOhY','toString','confirm','4290276oVjFyq','112448kYqHpk','exit','130650ceJfOb','search','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','running'];a13c=function(){return k;};return a13c();}import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a13d(a,b);}Command[a13i(0x1f5)]({'name':a13i(0x200),'aliases':['ti'],'usage':a13i(0x1ef),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13i(0x202),'description':'\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','examples':[a13i(0x1ef),a13i(0x1e7)]},async function(){const j=a13i;try{const a=new AWS(),b=await a[j(0x1f2)]();if(b?.[j(0x1e4)]&&b?.['status']===j(0x1ff)){const c=await Actions[j(0x1f8)](j(0x1ee)+b[j(0x1f0)]+j(0x1ea));c?a[j(0x1e2)]({'instanceId':b['instanceId']}):Log['error'](j(0x1fe)+b[j(0x1f0)]+j(0x1ec));}else Log[j(0x1e5)](j(0x1e8));}catch(d){console['error'](d),process[j(0x1fb)](0x0);}},a13e);
@@ -1 +1 @@
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
+ (function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x1b9))/0x1+-parseInt(f(0x1b8))/0x2+-parseInt(f(0x1b7))/0x3*(parseInt(f(0x1b4))/0x4)+parseInt(f(0x1bb))/0x5*(-parseInt(f(0x1ba))/0x6)+parseInt(f(0x1b6))/0x7+parseInt(f(0x1bd))/0x8*(parseInt(f(0x1c1))/0x9)+parseInt(f(0x1bc))/0xa*(parseInt(f(0x1b5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x886e7));function a14c(){var h=['537HoBQPT','793926IOcIUd','408482wZxtGm','12hgflCg','1262020uNrcJi','11670860geHfkJ','1824104UiKBWS','constructor','(((.+)+)+)+$','toString','18EXtJeC','15728RoqLmm','11FhBsEp','929796aXQpTc'];a14c=function(){return h;};return a14c();}var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var g=a14d;return a14a['toString']()['search'](g(0x1bf))[g(0x1c0)]()[g(0x1be)](a14a)['search'](g(0x1bf));});function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x1b4;var f=c[d];return f;},a14d(a,b);}a14a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a15r=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(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
+ const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=-parseInt(p(0x141))/0x1*(-parseInt(p(0x12d))/0x2)+parseInt(p(0x136))/0x3*(parseInt(p(0x12b))/0x4)+-parseInt(p(0x129))/0x5*(parseInt(p(0x13c))/0x6)+parseInt(p(0x120))/0x7*(-parseInt(p(0x133))/0x8)+parseInt(p(0x13b))/0x9*(parseInt(p(0x123))/0xa)+-parseInt(p(0x140))/0xb+parseInt(p(0x13e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x253f8));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a['toString']()['search']('(((.+)+)+)+$')[r(0x138)]()['constructor'](a15a)['search'](r(0x145));});a15a();import a15e from'path';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x11f;let f=c[d];return f;},a15d(a,b);}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=['1065336oZcdmO','invokeMeteorCommand','544555uNufSb','3WABvyn','getProjectMeteorVersion','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','apply','(((.+)+)+)+$','force','build','maka\x20build\x20<opts>','356538rTKgOs','existsSync','exit','16010FdfSIM','maka\x20build:docker','Aborted.','--force','pathFromProject',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','215QAAYxJ','app.tar.gz','28592PXJEaC','splice','48434rbTptK','concat','findSubCommand','runSubCommand','update','forEach','16sWPStT','error','fsi','123yeWlyE','create','toString','confirm','debug','27clOscB','21678tEIfyx','getGlobalMeteorVersion'];a15c=function(){return v;};return a15c();}const BuildCommand=Command[a15s(0x137)]({'name':a15s(0x147),'usage':a15s(0x11f),'validOpts':['force',a15s(0x13a)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x143),'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':['maka\x20build',a15s(0x124)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x12f)](c);if(d)this[t(0x130)](c,a,b);else{const f=b[t(0x146)];if(!f){const i=this[t(0x135)][t(0x13d)](),j=this[t(0x135)][t(0x142)](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x139)]('This\x20project\x27s\x20meteor\x20version\x20('+j+t(0x128)+i+').\x20Update?');l&&this[t(0x135)][t(0x13f)](t(0x131),['--release',i]);}}const g=[this[t(0x135)]['pathFromProject']({'pathParts':['build']})][t(0x12e)](process['argv']['slice'](0x3)),h=a15e['join'](this[t(0x135)][t(0x127)]({}),t(0x147),t(0x12a));if(a15f[t(0x121)](h)){const m=f??await Actions[t(0x139)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!m)throw Log[t(0x134)](t(0x125));}g[t(0x132)]((n,o)=>{const u=t;n===u(0x126)&&g[u(0x12c)](o,0x2);}),this[t(0x135)]['invokeMeteorCommand']('build',g);}}catch(n){console[t(0x134)](n),process[t(0x122)](0x0);}});export default BuildCommand;
@@ -1 +1 @@
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);
1
+ function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x183;let f=c[d];return f;},a16d(a,b);}const a16H=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=-parseInt(F(0x1d4))/0x1*(-parseInt(F(0x1c8))/0x2)+-parseInt(F(0x194))/0x3*(parseInt(F(0x1af))/0x4)+parseInt(F(0x1aa))/0x5*(-parseInt(F(0x18b))/0x6)+parseInt(F(0x1b6))/0x7+-parseInt(F(0x1a6))/0x8*(parseInt(F(0x1bb))/0x9)+-parseInt(F(0x184))/0xa*(-parseInt(F(0x18c))/0xb)+parseInt(F(0x1d7))/0xc*(parseInt(F(0x1c9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x31cb4));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a['toString']()[G(0x1bd)]('(((.+)+)+)+$')['toString']()[G(0x18e)](a16a)[G(0x1bd)](G(0x183));});a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16c(){const J=['cert','config/docker-compose.yaml','N/A','://','Docker\x20Context\x20Path:\x20','maka\x20build:docker\x20<opts>','56VXoXfO','length','error','-t\x20','95xcHmLq','--architecture','confirm','appName','platform','292niLGCd','build','getGlobalConfig','findGenerator','[*]\x20maka\x20','.maka','pm2.config.js','1902257VPhvxX','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','invoke','join','https','378630DGYFJU','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','search','inherit','debug','setProjectConfig','force','docker\x20build\x20--build-arg\x20NODE_VERSION=','docker','push','meteor','mkdirSync','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','306906JQykDp','1282606tcdfwC','maka\x20build:docker\x20--tag','--server=','exit','http','findAppDirectory','docker-compose.yaml','cert.pem','ask','tag','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','1iGuRUv','config','win32','12tQUAnH','serverName','os.linux.x86_64','(((.+)+)+)+$','1810HMAPXO','app','_keys','app.tar.gz','.meteor','Stored\x20server\x20config\x20to\x20','serverPort','32226XuWrfC','7381fpjUGN','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','constructor','\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','isDirectory','dockerfile','isFile','copyFileSync','1842bdkIaO','readFileLines','Dockerfile','notice','template','ignore','pathFromProject','checkConfigExists','\x20npm\x20install\x20--save','Try\x20\x27maka\x20run:docker\x27','fsi','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!'];a16c=function(){return J;};return a16c();}Command['create']({'name':'docker','aliases':['d'],'usage':a16H(0x1a5),'validOpts':[a16H(0x1c1),a16H(0x1d2),'debug'],'shortDesc':a16H(0x1bc),'description':a16H(0x18f),'mustBeInMakaProject':!![],'examples':[a16H(0x1ca),'maka\x20build:docker\x20--debug']},async function(a,b){const I=a16H;try{const c=await this['fsi'][I(0x1b1)](),d=await this[I(0x19e)]['getProjectConfig'](),f=await this[I(0x19e)]['getProjectsMeteorNodeVersion']();f===I(0x1a2)&&(Log['error']('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).'),process[I(0x1cc)](0x1));const g=process[I(0x1ae)]===I(0x1d6)?'meteor.bat':I(0x1c5),h=this['fsi'][I(0x19a)]({}),i=a16f['join'](h,I(0x196));if(!this[I(0x19e)][I(0x192)](i)){const s=a16h[I(0x1b2)](I(0x191));s&&await s['invoke']([I(0x191)],{'cwd':h,'config':d});}const j=this[I(0x19e)][I(0x19b)]('docker');if(!j){const t=a16h[I(0x1b2)](I(0x1d5));if(t){await t[I(0x1b8)]([I(0x1c3)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[I(0x19e)]['getConfigPath'](I(0x1c3)),v=a16f[I(0x1b9)](u,I(0x1b5));await this[I(0x19e)][I(0x198)]({'srcPath':'config/pm2.config.js','destPath':v,'context':{'app':d[I(0x1ad)],'isDocker':![]},'config':d});const w=a16f[I(0x1b9)](u,I(0x1cf));await this[I(0x19e)][I(0x198)]({'srcPath':I(0x1a1),'destPath':w,'context':{'app':d[I(0x1ad)],'appFileCase':paramCase(d[I(0x1ad)])},'config':d});}}if(this[I(0x19e)]['isFile'](c['cert'])){const x=this[I(0x19e)][I(0x190)](a16f[I(0x1b9)](I(0x1d5),'docker','_keys'));!x&&a16g[I(0x1c6)](a16f[I(0x1b9)](I(0x1d5),'docker',I(0x186))),a16g[I(0x193)](c[I(0x1a0)],a16f[I(0x1b9)](h,I(0x1d5),I(0x1c3),I(0x186),I(0x1d0)));}const k=[I(0x1b0),a16f[I(0x1b9)](this['fsi']['findProjectDirectory'](),'build'),I(0x1ab),I(0x1d9)],l=this[I(0x19e)][I(0x195)](a16f[I(0x1b9)](this[I(0x19e)][I(0x19a)]({}),I(0x185),I(0x188),'platforms')),m=l[I(0x1a7)]>0x2?!![]:![];if(m){const y=d[I(0x1d8)]?d[I(0x1d8)]:await Actions[I(0x1d1)](I(0x1d3)),z=d[I(0x18a)]?d[I(0x18a)]:await Actions[I(0x1d1)]('Mobile\x20server\x20port:\x20');if(y[I(0x1a7)]==0x0||z['length']==0x0)throw I(0x19f);const A=z=='443'?I(0x1ba):I(0x1cd);k[I(0x1c4)](I(0x1cb)+A+I(0x1a3)+y+':'+z);if(!d['serverName']&&!d[I(0x18a)]){const B=await Actions[I(0x1ac)](I(0x1b7));B&&(this[I(0x19e)][I(0x1c0)](I(0x1d8),y),this[I(0x19e)][I(0x1c0)](I(0x18a),z),Log['notice'](I(0x189)+a16f[I(0x1b9)](I(0x1b4),'config.json')));}}const n=a16f[I(0x1b9)](this[I(0x19e)][I(0x19a)]({}),I(0x1b0),I(0x187));if(a16g['existsSync'](n)){const C=await Actions['confirm'](I(0x18d)),D=C;D&&(execSync(g+I(0x19c),{'cwd':this[I(0x19e)][I(0x1ce)](),'stdio':I(0x199)}),execSync(g+'\x20\x20'+k[I(0x1b9)]('\x20'),{'cwd':this[I(0x19e)][I(0x1ce)](),'stdio':I(0x1be)}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[I(0x19e)][I(0x1ce)](),'stdio':I(0x199)}),Log[I(0x197)](I(0x1b3)+k[I(0x1b9)]('\x20')),execSync(g+'\x20'+k[I(0x1b9)]('\x20'),{'cwd':this[I(0x19e)]['findAppDirectory'](),'stdio':I(0x1be)});const o=this[I(0x19e)]['pathFromProject']({});let p=I(0x1a9)+paramCase(d[I(0x1ad)])+':latest';b[I(0x1d2)]&&(p=I(0x1a9)+b[I(0x1d2)]);Log[I(0x197)](I(0x1c7)+f),Log[I(0x197)]('Tagging\x20Docker\x20Image:\x20'+p),Log['notice'](I(0x1a4)+o);const q=b[I(0x1bf)]?'--progress=plain\x20--no-cache':'',r=I(0x1c2)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':I(0x1be)}),Log['notice'](I(0x19d));}catch(E){console[I(0x1a8)](E),process['exit'](0x0);}},a16e);