@maka/maka-cli 4.4.5 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/bundle/obf/package.json +5 -2
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/install.js +1 -1
  36. package/bundle/obf/src/commands/jsdoc.js +1 -1
  37. package/bundle/obf/src/commands/lint.js +1 -1
  38. package/bundle/obf/src/commands/login.js +1 -1
  39. package/bundle/obf/src/commands/logout.js +1 -1
  40. package/bundle/obf/src/commands/logs.js +1 -1
  41. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  42. package/bundle/obf/src/commands/murder.js +1 -1
  43. package/bundle/obf/src/commands/proxy.js +1 -1
  44. package/bundle/obf/src/commands/reconfig.js +1 -1
  45. package/bundle/obf/src/commands/run/_index.js +1 -1
  46. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  47. package/bundle/obf/src/commands/run/run.command.js +1 -1
  48. package/bundle/obf/src/commands/set/_index.js +1 -1
  49. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/set.command.js +1 -1
  52. package/bundle/obf/src/commands/ssh.js +1 -1
  53. package/bundle/obf/src/commands/ssl.js +1 -1
  54. package/bundle/obf/src/commands/test.js +1 -1
  55. package/bundle/obf/src/commands/version.js +1 -1
  56. package/bundle/obf/src/error.js +1 -1
  57. package/bundle/obf/src/generator.js +1 -1
  58. package/bundle/obf/src/generators/_index.js +1 -1
  59. package/bundle/obf/src/generators/api.js +1 -1
  60. package/bundle/obf/src/generators/collection.js +1 -1
  61. package/bundle/obf/src/generators/component.js +1 -1
  62. package/bundle/obf/src/generators/config.js +1 -1
  63. package/bundle/obf/src/generators/dbc.js +1 -1
  64. package/bundle/obf/src/generators/dockerfile.js +1 -1
  65. package/bundle/obf/src/generators/hook.js +1 -1
  66. package/bundle/obf/src/generators/kit.js +1 -1
  67. package/bundle/obf/src/generators/layout.js +1 -1
  68. package/bundle/obf/src/generators/maka.gen.js +1 -1
  69. package/bundle/obf/src/generators/methods.js +1 -1
  70. package/bundle/obf/src/generators/package.js +1 -1
  71. package/bundle/obf/src/generators/page.js +1 -1
  72. package/bundle/obf/src/generators/publish.js +1 -1
  73. package/bundle/obf/src/generators/route.js +1 -1
  74. package/bundle/obf/src/generators/service.js +1 -1
  75. package/bundle/obf/src/generators/services/_index.js +1 -1
  76. package/bundle/obf/src/generators/services/openssl.js +1 -1
  77. package/bundle/obf/src/generators/services/translation.js +1 -1
  78. package/bundle/obf/src/maka.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  83. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  85. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  87. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  88. package/bundle/obf/src/tools/https/https.class.js +1 -1
  89. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  90. package/bundle/obf/src/tools/log/log.class.js +1 -1
  91. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  93. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  95. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  96. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  97. package/package.json +5 -2
@@ -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.4.5",
4
+ "version": "4.5.1",
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.",
@@ -36,6 +36,8 @@
36
36
  "author": "Matthew Campbell <mjmcee@gmail.com>",
37
37
  "license": "LICENSED",
38
38
  "dependencies": {
39
+ "@aws-sdk/client-ec2": "^3.329.0",
40
+ "@aws-sdk/client-ecr": "^3.332.0",
39
41
  "change-case": "^4.1.2",
40
42
  "cli-color": "^2.0.3",
41
43
  "cli-cursor": "^4.0.0",
@@ -78,7 +80,7 @@
78
80
  "@types/react-dom": "^18.2.4",
79
81
  "@typescript-eslint/eslint-plugin": "^5.59.5",
80
82
  "@typescript-eslint/parser": "^5.59.5",
81
- "aws-sdk": "^2.1375.0",
83
+ "aws-sdk": "^2.1376.0",
82
84
  "chai": "^4.3.7",
83
85
  "chdir": "^0.0.0",
84
86
  "concat-stream": "^2.0.0",
@@ -91,6 +93,7 @@
91
93
  "mkdirp": "^3.0.1",
92
94
  "mocha": "^10.2.0",
93
95
  "pkg": "^5.8.1",
96
+ "typescript": "^5.0.4",
94
97
  "wait-on": "^7.0.1"
95
98
  },
96
99
  "keywords": [
@@ -1 +1 @@
1
- const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x11c))/0x1+parseInt(p(0x12f))/0x2+parseInt(p(0x131))/0x3*(-parseInt(p(0x13a))/0x4)+parseInt(p(0x10b))/0x5+-parseInt(p(0x113))/0x6+parseInt(p(0xf7))/0x7+-parseInt(p(0x12e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x87d03));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0xfd)]()[r(0x102)](r(0x10a))['toString']()['constructor'](a0a)[r(0x102)](r(0x10a));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xf1;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const E=['validateMeteorInstall','proCommands','runSubCommand','name','toString','Too\x20few\x20options','Command.create\x20requires\x20some\x20options!','minOptsLength','addCommand','search','splice','usage','length','notice','findCommand','Please\x20run\x20\x22maka\x20install\x20meteor\x22','murder','(((.+)+)+)+$','2134045OKchyb','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','assign','help','bright','includes','_commands','maxOptsLength','88344vvzSAX','create','proFlags','validateParams','Command\x20requires\x20a\x20name','aliases','To\x20use\x20these\x20pro\x20flags,\x20\x22','tableList','Command.create\x20requires\x20a\x20handler\x20function!','314062RyqoFq','validateMakaSubscription','Command\x20requires\x20a\x20handler\x20function','apply','domainLicense','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','options','exit','Too\x20many\x20options','keys','mustHaveMeteorInstalled','push','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','invoke','filter','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20not\x20found','validateMakaProject','12735016NDVjsF','2073454wwUiYk','match','620049oBHFBx','fsi','Description','bind','play','_handler','generate','minArgLength','Sub-Commands:','4nzaJyj','split','Name','Alias','Too\x20few\x20arguments','Too\x20many\x20arguments','forEach','roles','parent','join','call','sort','error','getPro','header','4143839PNNOQq','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{[a0s(0x122)];[a0s(0x111)];constructor(a,b){const t=a0s;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(t(0x117));if(typeof b!=='function')throw new Error(t(0x11e));this[t(0x122)]=Object[t(0x10d)]({},a),this[t(0xfc)]=this['options'][t(0xfc)],this[t(0x111)]=[],this['_handler']=b[t(0x134)](this);}static[a0s(0x114)](a,b,c){const u=a0s;if(!a)throw new Error(u(0xff));if(typeof b!=='function')throw new Error(u(0x11b));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[u(0x122)]?.[u(0xfc)]}),c[u(0x101)](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[v(0x111)][v(0x127)](a);}async[a0s(0x11d)](a,b){const w=a0s,c=this[w(0x107)](a[0x0]);if(c){const d=c?.[w(0xfc)]||a[0x0],e=c?.[w(0x142)]||'',f=c?.[w(0x122)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object['keys'](b),i=await this[w(0x132)][w(0xf5)]();!i&&(Log[w(0xf4)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const j=i?.[w(0xfa)][w(0x110)](d)||i?.[w(0xfa)][w(0x110)](e),k=i?.[w(0x141)][w(0x110)]('singleLicense')||i?.['roles'][w(0x110)](w(0x120)),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x128);if(h[w(0x105)]>0x0){const m=i?.[w(0x115)][w(0x12a)](n=>h[w(0x110)](n));if(m&&m[w(0x105)]>0x0&&l)throw w(0x119)+m?.[w(0xf1)](',\x20')+w(0x128);}if(g==='deploy'){const n=await this[w(0x132)][w(0xf5)](),o=n?.[w(0xfa)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x128);}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x11d)](a,b);}catch(c){Log[x(0xf4)](c),process[x(0x123)](0x0);}await this['invoke'](a,b);}catch(d){process[x(0x123)](0x1);}}async[a0s(0x129)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![]}=this['options'];try{if(this[y(0x122)]['name']!==y(0x137)){if(!isRoot){const d=(a[0x0]===_prevCmd||a[y(0x105)]===0x0)&&this[y(0x111)][y(0x105)]>=0x0;if(d&&b[y(0x10e)]){if(this['_commands'][y(0x105)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x10e)]){if(this['options']['mustBeInMakaProject']){const f=this[y(0x12d)]();if(!f)throw new MustBeInProjectError();}if(this[y(0x122)][y(0x126)]){const g=this[y(0xf9)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[y(0x122)][y(0x138)]==='number'){if(a[y(0x105)]<this[y(0x122)][y(0x138)]){Log[y(0xf4)](y(0x13e));throw new UsageError();}}if(typeof this[y(0x122)]['maxArgLength']==='number'){if(a[y(0x105)]>=this[y(0x122)]['maxArgLength']){Log[y(0xf4)](y(0x13f));throw new UsageError();}}if(typeof this[y(0x122)]['minOptsLength']==='number'){if(Object[y(0x125)](b)['length']<this['options'][y(0x100)]){Log['error'](y(0xfe));throw new UsageError();}}if(typeof this[y(0x122)]['maxOptsLength']==='number'){if(Object[y(0x125)](b)[y(0x105)]>=this['options'][y(0x112)]){Log[y(0xf4)](y(0x124));throw new UsageError();}}}}this[y(0x116)](a,b,this[y(0x122)]),_prevCmd=a[0x0];}await this[y(0x136)][y(0xf2)](this,a,b);}catch(h){Log[y(0x104)](description,examples,usage,c);if(h instanceof UsageErrorWithSubs)Log['notice'](y(0x139)),this[y(0x11a)](this[y(0x111)]),Log[y(0xf6)](y(0x10c));else{if(h instanceof MustBeInProjectError)Log['error'](y(0xf8));else{if(h instanceof NoMeteorFoundError)Log[y(0xf4)](y(0x121)),Log[y(0x106)](y(0x108));else{if(h instanceof NoMeteorAppFoundError)Log[y(0xf4)](y(0x12b));else throw h;}}}process[y(0x123)](0x1);}}['tableList'](a){const z=a0s,b=new a0e({});b[z(0x127)]([z(0x13c),z(0x13d),z(0x133)]),a[z(0xf3)]()[z(0x140)](c=>{const A=z;c[A(0xfc)]!==A(0x109)&&c[A(0xfc)]!==A(0x135)&&b[A(0x127)]([c['name'],c[A(0x118)](),c['shortDesc']()]);}),Log[z(0x10f)](b[z(0xfd)]());}[a0s(0x107)](a){const B=a0s;return this[B(0x111)]['find'](b=>b[B(0x130)](a));}['findSubCommand'](a){const C=a0s,b=a?.[C(0x13b)](':');if(b)return a=b[0x0],this[C(0x107)](a);else return;}async[a0s(0xfb)](a,b,c){const D=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[D(0x103)](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g['run'](b,c);else throw D(0x12c);}catch(h){throw Log[D(0xf4)](h);}}}
1
+ const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x101))/0x1+-parseInt(p(0x106))/0x2+parseInt(p(0x12c))/0x3*(-parseInt(p(0x14c))/0x4)+parseInt(p(0x12b))/0x5+parseInt(p(0x112))/0x6+parseInt(p(0x109))/0x7+parseInt(p(0x13d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x2307d));function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x101;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const q=a0d;return a0a[q(0x104)]()[q(0x111)](q(0x12d))[q(0x104)]()[q(0x13c)](a0a)['search']('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0c(){const C=['assign','proCommands','minOptsLength','proFlags','findCommand','mustHaveMeteorInstalled','split','roles','To\x20use\x20these\x20pro\x20flags,\x20\x22','Command\x20not\x20found','create','constructor','631872wZjoTz','match','runSubCommand','notice','push','bind','name','error','tableList','murder','find','header','minArgLength','getPro','options','158876LhiRXJ','validateMakaSubscription','play','usage','_commands','number','addCommand\x20requires\x20a\x20Command\x20instance','addCommand','run','265602CPfTaq','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Too\x20many\x20options','toString','Command\x20requires\x20a\x20handler\x20function','138540OFCnNa','keys','bright','839860BOBMyu','maxArgLength','Sub-Commands:','join','length','Command.create\x20requires\x20some\x20options!','deploy','maxOptsLength','search','1403502IVCdhL','To\x20use\x20this\x20command,\x20\x22','singleLicense','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Too\x20few\x20arguments','includes','Command.create\x20requires\x20a\x20handler\x20function!','Description','forEach','validateParams','help','call','Alias','aliases','disableAuthCheck','validateMeteorInstall','Command\x20requires\x20a\x20name','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','parent','fsi','_handler','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','exit','Name','425975HWkILx','3bBuymt','(((.+)+)+)+$','invoke','shortDesc','function'];a0c=function(){return C;};return a0c();}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];['_commands'];constructor(a,b){const r=a0d;super();if(!a)throw new Error(r(0x128));if(!a[r(0x143)])throw new Error(r(0x123));if(typeof b!==r(0x130))throw new Error(r(0x105));this['options']=Object['assign']({},a),this['name']=this[r(0x14b)][r(0x143)],this['_commands']=[],this[r(0x127)]=b[r(0x142)](this);}static[a0s(0x13b)](a,b,c){const t=a0s;if(!a)throw new Error(t(0x10e));if(typeof b!==t(0x130))throw new Error(t(0x119));const d=new Command(a,b);return c=c||a0f,Object[t(0x131)](d,{'parent':c?.['options']?.[t(0x143)]}),c[t(0x153)](d),d;}[a0s(0x153)](a){const u=a0s;if(!(a instanceof Command))throw new Error(u(0x152));this[u(0x150)][u(0x141)](a);}async[a0s(0x14d)](a,b){const v=a0s,c=this[v(0x135)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.[v(0x125)]||'',f=c?.['options'];if(f[v(0x121)])return;const g=a[0x0],h=Object[v(0x107)](b),i=await this[v(0x126)][v(0x14a)]();!i&&(Log[v(0x144)](v(0x116)),process[v(0x129)](0x1));const j=i?.[v(0x132)][v(0x118)](d)||i?.[v(0x132)]['includes'](e),k=i?.[v(0x138)][v(0x118)](v(0x114))||i?.['roles']['includes']('domainLicense'),l=!k;if(j&&l)throw v(0x113)+a[0x0]+v(0x115);if(h[v(0x10d)]>0x0){const m=i?.[v(0x134)]['filter'](n=>h[v(0x118)](n));if(m&&m['length']>0x0&&l)throw v(0x139)+m?.[v(0x10c)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g===v(0x10f)){const n=await this['fsi'][v(0x14a)](),o=n?.[v(0x132)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw v(0x113)+a[0x0]+v(0x115);}}}async['run'](a,b){const w=a0s;try{a=a||[],b=b||{};try{await this[w(0x14d)](a,b);}catch(c){Log[w(0x144)](c),process[w(0x129)](0x0);}await this['invoke'](a,b);}catch(d){process[w(0x129)](0x1);}}async[a0s(0x12e)](a,b){const x=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![]}=this[x(0x14b)];try{if(this[x(0x14b)][x(0x143)]!=='generate'){if(!isRoot){const d=(a[0x0]===_prevCmd||a[x(0x10d)]===0x0)&&this['_commands'][x(0x10d)]>=0x0;if(d&&b[x(0x11d)]){if(this['_commands'][x(0x10d)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b['help']){if(this['options']['mustBeInMakaProject']){const f=this['validateMakaProject']();if(!f)throw new MustBeInProjectError();}if(this['options'][x(0x136)]){const g=this[x(0x122)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[x(0x14b)][x(0x149)]===x(0x151)){if(a[x(0x10d)]<this[x(0x14b)][x(0x149)]){Log[x(0x144)](x(0x117));throw new UsageError();}}if(typeof this[x(0x14b)]['maxArgLength']==='number'){if(a[x(0x10d)]>=this['options'][x(0x10a)]){Log[x(0x144)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[x(0x14b)][x(0x133)]===x(0x151)){if(Object['keys'](b)[x(0x10d)]<this[x(0x14b)][x(0x133)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[x(0x14b)][x(0x110)]===x(0x151)){if(Object[x(0x107)](b)[x(0x10d)]>=this[x(0x14b)]['maxOptsLength']){Log[x(0x144)](x(0x103));throw new UsageError();}}}}this[x(0x11c)](a,b,this[x(0x14b)]),_prevCmd=a[0x0];}await this[x(0x127)][x(0x11e)](this,a,b);}catch(h){Log[x(0x14f)](description,examples,usage,c);if(h instanceof UsageErrorWithSubs)Log[x(0x140)](x(0x10b)),this['tableList'](this[x(0x150)]),Log[x(0x148)](x(0x102));else{if(h instanceof MustBeInProjectError)Log[x(0x144)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(h instanceof NoMeteorFoundError)Log[x(0x144)](x(0x124)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(h instanceof NoMeteorAppFoundError)Log[x(0x144)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw h;}}}process[x(0x129)](0x1);}}[a0s(0x145)](a){const y=a0s,b=new a0e({});b[y(0x141)]([y(0x12a),y(0x11f),y(0x11a)]),a['sort']()[y(0x11b)](c=>{const z=y;c[z(0x143)]!==z(0x146)&&c[z(0x143)]!==z(0x14e)&&b[z(0x141)]([c['name'],c[z(0x120)](),c[z(0x12f)]()]);}),Log[y(0x108)](b['toString']());}[a0s(0x135)](a){const A=a0s;return this[A(0x150)][A(0x147)](b=>b[A(0x13e)](a));}['findSubCommand'](a){const b=a?.['split'](':');if(b)return a=b[0x0],this['findCommand'](a);else return;}async[a0s(0x13f)](a,b,c){const B=a0s;try{const d=a[B(0x137)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this[B(0x135)](a);if(g)await g[B(0x154)](b,c);else throw B(0x13a);}catch(h){throw Log['error'](h);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xaa))/0x1*(parseInt(f(0xa0))/0x2)+parseInt(f(0xa7))/0x3*(parseInt(f(0xab))/0x4)+-parseInt(f(0xa9))/0x5+-parseInt(f(0x9f))/0x6*(-parseInt(f(0xa3))/0x7)+-parseInt(f(0xa2))/0x8*(parseInt(f(0xa8))/0x9)+-parseInt(f(0xa6))/0xa+-parseInt(f(0xa4))/0xb*(-parseInt(f(0xac))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x1fadb));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0xa1)]()[g(0xa5)]('(((.+)+)+)+$')[g(0xa1)]()['constructor'](a1a)[g(0xa5)]('(((.+)+)+)+$');});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';import'./create.js';import'./debug.js';function a1c(){var h=['91tTtveu','172117Kldsia','search','861170IecHUu','342AjuXAU','1089DIQIxd','967160thQdUE','23rhJzdf','1768VUoGpb','240VHnsSG','34152fmGkJm','2414dTYfWY','toString','3688pCwqkW'];a1c=function(){return h;};return a1c();}import'./deploy.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x9f;var f=c[d];return f;},a1d(a,b);}import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xf8))/0x1+-parseInt(f(0xf4))/0x2+-parseInt(f(0xfa))/0x3+-parseInt(f(0xf7))/0x4*(parseInt(f(0xf6))/0x5)+-parseInt(f(0xf1))/0x6+-parseInt(f(0xf3))/0x7+parseInt(f(0xf5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe3cd0));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xfb)]()[h(0xfc)]('(((.+)+)+)+$')[h(0xfb)]()[h(0xf9)](a1a)[h(0xfc)]('(((.+)+)+)+$');});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';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';function a1c(){var i=['4344381cIcjlh','toString','search','5129496cQqSYy','apply','1403479UbAMfH','2860260cpeBbt','32458120CbPkdA','305RHZiLU','58844oDXnLY','1706848rqYpRh','constructor'];a1c=function(){return i;};return a1c();}import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xf1;var f=c[d];return f;},a1d(a,b);}import'./lint.js';
@@ -1 +1 @@
1
- function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x117;var f=c[d];return f;},a2d(a,b);}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x122))/0x1+parseInt(f(0x11a))/0x2*(-parseInt(f(0x120))/0x3)+parseInt(f(0x11f))/0x4+-parseInt(f(0x117))/0x5*(parseInt(f(0x11d))/0x6)+-parseInt(f(0x123))/0x7+parseInt(f(0x11b))/0x8+parseInt(f(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xb4586));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(0x121)]()[g(0x118)](g(0x119))[g(0x121)]()[g(0x11e)](a2a)['search'](g(0x119));});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=['36658bSSJQc','58944rMftoE','16468929JAinFo','315102ynLiII','constructor','165444JUJDJK','15DVPDvU','toString','420645BEQlbA','1827175zsGeqf','115qYooAF','search','(((.+)+)+)+$'];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
+ function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x1a9;var f=c[d];return f;},a2d(a,b);}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=-parseInt(f(0x1b5))/0x1*(-parseInt(f(0x1aa))/0x2)+parseInt(f(0x1b2))/0x3*(-parseInt(f(0x1ab))/0x4)+parseInt(f(0x1ad))/0x5+-parseInt(f(0x1b0))/0x6+parseInt(f(0x1b1))/0x7+parseInt(f(0x1ac))/0x8+-parseInt(f(0x1ae))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x65675));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a['toString']()[h(0x1af)]('(((.+)+)+)+$')[h(0x1a9)]()[h(0x1b3)](a2a)[h(0x1af)]('(((.+)+)+)+$');});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';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';function a2c(){var i=['419652ZyrVGK','3555923WYJJbf','3YizRWk','constructor','apply','463939DKpcZN','toString','2ATtqEu','564DMRQhy','1184480TQVqeh','511535uIjSSn','6631767uuFYyy','search'];a2c=function(){return i;};return a2c();}import'./rkp.sub.cmd.js';
@@ -1 +1 @@
1
- function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x82;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(0x8a))/0x2*(parseInt(f(0x85))/0x3)+parseInt(f(0x8d))/0x4+-parseInt(f(0x8c))/0x5+-parseInt(f(0x8e))/0x6*(parseInt(f(0x8f))/0x7)+-parseInt(f(0x83))/0x8+parseInt(f(0x84))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x33e31));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x8b)]()[h(0x87)]('(((.+)+)+)+$')[h(0x8b)]()['constructor'](a3a)['search'](h(0x90));});a3a();import{Command}from'../../command.js';function a3c(){const k=['590298pXQMIA','7vBVlFL','(((.+)+)+)+$','findSubCommand','apply','3370576MBPUqy','5716305YJzQAf','387vSxxVH','create','search','162224UjCLGl','Sub\x20Command\x20not\x20found','536MXbkza','toString','1871815qmLtUZ','1098624xNjhFg'];a3c=function(){return k;};return a3c();}import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0x86)]({'name':'aws','usage':'maka\x20aws:<sub-command>','minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','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(0x91)](c);if(d)this['runSubCommand'](c,a,b);else{Log['error'](j(0x89));throw new UsageErrorWithSubs();}});export default AWSCommand;
1
+ const a3i=a3d;function a3c(){const k=['maka\x20aws:<sub-command>','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','Sub\x20Command\x20not\x20found','823962vXxHeO','1855QnYCfH','519436YDWFlu','search','aws','findSubCommand','error','constructor','5653385kgVquy','(((.+)+)+)+$','8480bWYhEK','654284GcNoao','toString','2MVdhMY','runSubCommand','5527080VBGFMf','892842JPwEQL','apply','create'];a3c=function(){return k;};return a3c();}(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0x100))/0x1+-parseInt(f(0x10b))/0x2*(parseInt(f(0xf8))/0x3)+-parseInt(f(0x109))/0x4+parseInt(f(0x106))/0x5+parseInt(f(0xfe))/0x6+-parseInt(f(0xff))/0x7*(parseInt(f(0x108))/0x8)+parseInt(f(0xf7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x9783b));function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xf7;let f=c[d];return f;},a3d(a,b);}const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a[h(0x10a)]()['search'](h(0x107))[h(0x10a)]()[h(0x105)](a3a)[h(0x101)](h(0x107));});a3a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0xfa)]({'name':a3i(0x102),'usage':a3i(0xfb),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3i(0xfc),'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(0x103)](c);if(d)this[j(0x10c)](c,a,b);else{Log[j(0x104)](j(0xfd));throw new UsageErrorWithSubs();}});export default AWSCommand;
@@ -1 +1 @@
1
- function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1db;let f=c[d];return f;},a4d(a,b);}const a4a9=a4d;(function(a,b){const a6=a4d,c=a();while(!![]){try{const d=-parseInt(a6(0x20e))/0x1+parseInt(a6(0x201))/0x2+-parseInt(a6(0x21a))/0x3*(parseInt(a6(0x204))/0x4)+parseInt(a6(0x237))/0x5*(-parseInt(a6(0x1e9))/0x6)+parseInt(a6(0x205))/0x7+parseInt(a6(0x241))/0x8+parseInt(a6(0x1fc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x8244a));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const a7=a4d;if(c){const e=c[a7(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const a8=a4d;return a4a[a8(0x209)]()[a8(0x213)](a8(0x1fe))['toString']()[a8(0x219)](a4a)[a8(0x213)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';function a4c(){const al=['4304sDQPEP','5877011bDXUUo','ImageID:','build\x20on\x20','getTime','toString','chooseVPC','\x20:\x20','Setting\x20the\x20key-pair\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','937636ZkXWTt','Security\x20Group\x20Name:\x20[','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','subnetId','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','search','string','maka\x20aws:ci\x20--env\x20prod','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','1:1','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','constructor','1128uNUHAu','ec2createSG','listSecurityGroups','push','create-instance','*\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','name','ask','alias','createFile','22,80,443','**\x20Available\x20AMIs\x20**','ec2describeKeys','**\x20Available\x20key-pairs\x20**','\x20CIDR:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','t3.micro','ec2create','Security\x20Group:\x20','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','subnet','readFileSync','No\x20instance\x20has\x20been\x20created.','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','cidr','\x20AZONE:\x20','Setting\x20SG\x20ID\x20to:\x20','forEach','amiId','35bGjFrb','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','exit','ID:\x20','\x20AMIID:\x20','create','Setting\x20AMI\x20ID\x20to\x20','sgId','createKeyPair','parse','7939728MMpaPK','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=*','getProjectConfig','apply','bright','Desc','}]\x22','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Create\x20new\x20AWS\x20instance','user-data','error','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','\x22Web\x20App\x22','join','Key-Pair:\x20','log','444552yVaTvB','env','Subnet:\x20','Instace\x20Type:\x20','confirm','desc','number','date','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','cider','maka\x20aws:create-instance\x20--env\x20dev','getConfigPath','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','fsi','User\x20Data:','success','split','389115bJvImN','\x20SUBNETID:\x20','(((.+)+)+)+$','\x20DESCRIPTION:\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','1038320crbOAy','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','notice'];a4c=function(){return al;};return a4c();}import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4a9(0x23c)]({'name':a4a9(0x21e),'aliases':['ci'],'usage':'maka\x20aws:create-instance\x20<opts>','examples':[a4a9(0x1f4),a4a9(0x215)],'mustBeInMakaProject':!![],'requiredOpts':[a4a9(0x1ea)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4a9(0x1e1),'description':a4a9(0x200)},async function(a,b){const aa=a4a9;try{const c=this[aa(0x1f8)][aa(0x1db)](),d=new AWS(),{appName:f}=c,g=this[aa(0x1f8)]['getConfigFromShorthand'](b['env']),h=this['fsi'][aa(0x1f5)](g),i=f+'-'+g,j=await Actions[aa(0x221)]('EC2\x20Name:\x20['+i+']\x20')||i;let k='',l='',m='',n='',o='',p='';const q=await Actions[aa(0x1ed)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let r='';q&&(r=await d[aa(0x23f)]({'env':g}));try{Log[aa(0x203)](aa(0x227));const w=r?r:j,x=d[aa(0x226)]({'suggestion':w}),y=await Actions[aa(0x221)](aa(0x1f7))||'-1';if(parseInt(y)<0x0){Log[aa(0x1e3)](aa(0x22d)),Log[aa(0x203)](aa(0x230));return;}x?.[aa(0x235)](function(z){const ab=aa;parseInt(y)===z['id']&&(k=z[ab(0x220)],Log['success'](ab(0x20c)+k));});}catch(z){Log['error'](z);}l=await d[aa(0x20a)]();const s=await Actions['confirm'](aa(0x229));let t;if(s){const A=l===''?d[aa(0x20a)]():l;t=await Actions[aa(0x221)](aa(0x20f)+j+']')||j;const B=await Actions[aa(0x221)](aa(0x1f2))||aa(0x224),C=B[aa(0x1fb)](',');d[aa(0x21b)]({'description':aa(0x1e5),'name':t,'vpcId':A,'sgPorts':C});}t=j;try{const D=await d[aa(0x21c)](t),E=await Actions['ask'](aa(0x202))||'0';D[aa(0x235)](function(F){const ac=aa;F['id']===parseInt(E)&&(m=F[ac(0x23e)],Log[ac(0x1fa)](ac(0x234)+m+'\x0a'));});if(m==='')throw Log[aa(0x1e3)](aa(0x231));}catch(F){Log[aa(0x1e3)](F);}try{const G=0x7e6;Log['notice'](aa(0x225));const H=execSync(aa(0x242)+G+aa(0x21f))['toString'](),I=JSON['parse'](H),J=[],K=[];I[aa(0x235)](function(M){const ad=aa;if(M[ad(0x222)]==='amazon'){const N=M['Desc']['split'](ad(0x207))[0x1];J[ad(0x21d)]({'amiId':M['ID'],'desc':M[ad(0x1de)],'date':N});}}),J['sort'](function(M,N){const ae=aa;return new Date(N[ae(0x1f0)])[ae(0x208)]()-new Date(M[ae(0x1f0)])[ae(0x208)]();}),J[aa(0x235)](function(M,N){const af=aa;K[af(0x21d)]({'id':N,'amiId':M[af(0x236)],'desc':M[af(0x1ee)]});}),K[aa(0x235)](function(M){const ag=aa;console[ag(0x1e8)](ag(0x23a)+M['id']+ag(0x23b)+M[ag(0x236)]+ag(0x1ff)+M['desc']);});const L=await Actions[aa(0x221)](aa(0x218))||'0';K[aa(0x235)](function(M){const ah=aa;M['id']===parseInt(L)&&(n=M['amiId'],Log[ah(0x1fa)](ah(0x23d)+n+ah(0x20b)+M[ah(0x1ee)]));});if(n==='')throw Log[aa(0x1e3)](aa(0x231));}catch(M){Log['error'](M);}try{Log[aa(0x203)]('**\x20Available\x20Subnets\x20**');const N=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[aa(0x209)](),O=JSON[aa(0x240)](N),P=[];O[aa(0x235)](function(R,S){const ai=aa;P[ai(0x21d)]({'id':S,'cidr':R[ai(0x1f3)],'az':R['az'],'subnetId':R[ai(0x211)]});}),P[aa(0x235)](function(R){const aj=aa;console[aj(0x1e8)]('ID:\x20'+R['id']+aj(0x228)+R[aj(0x232)]+aj(0x233)+R['az']+aj(0x1fd)+R[aj(0x211)]);});const Q=await Actions[aa(0x221)](aa(0x1f6))||'0';P[aa(0x235)](function(R){const ak=aa;R['id']===parseInt(Q)&&(p=R[ak(0x211)],Log[ak(0x1fa)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error'](aa(0x231));}catch(R){Log[aa(0x1e3)](R);}let u=aa(0x217);try{const S=await Actions[aa(0x221)](aa(0x1e0))||aa(0x217),T=S[aa(0x1fb)](':')[0x0],U=S[aa(0x1fb)](':')[0x1];typeof parseInt(T)===aa(0x1ef)&&typeof parseInt(U)===aa(0x1ef)&&(u=[T,U][aa(0x1e6)](':'),Log[aa(0x1fa)](aa(0x210)+u));}catch(V){Log[aa(0x1e3)](V);}try{const W=await Actions['ask']('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||aa(0x22a);typeof W===aa(0x214)&&(o=W);}catch(X){Log[aa(0x1e3)](X);}let v;try{const Y=await Actions[aa(0x1ed)](aa(0x1f1),![]);Y&&(v=a4f['join'](h,aa(0x1e2)),Log[aa(0x203)]('Creating\x20user\x20data\x20file\x20in\x20'+v),await this[aa(0x1f8)][aa(0x223)]({'filePath':v,'data':''}),await Actions['confirm'](aa(0x20d)));}catch(Z){Log[aa(0x1e3)](Z);}try{const a0=JSON[aa(0x240)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+aa(0x238))[aa(0x209)]())[0x0][aa(0x22e)];Log[aa(0x203)](aa(0x206)+n),Log[aa(0x203)]('Instance\x20Count:\x20'+u),Log['notice'](aa(0x1ec)+o),Log['notice'](aa(0x1e7)+k),Log['notice'](aa(0x22c)+m),Log[aa(0x203)](aa(0x1eb)+a0);if(v){Log[aa(0x203)](aa(0x1f9)+v);const a2=await a4g[aa(0x22f)](v);Log['notice'](a2);}const a1=await Actions[aa(0x1ed)](aa(0x212));if(a1){const a3=d[aa(0x22b)]({'imageId':n,'count':u,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':aa(0x1e4)+g+'},\x20{Key=Name,Value='+j+aa(0x1df),...v&&{'userData':v}});a3&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[aa(0x1dd)](aa(0x216)));}else Log[aa(0x203)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}catch(a4){console[aa(0x1e8)](a4),Log[aa(0x1e3)](a4);}}catch(a5){console[aa(0x1e3)](a5),process[aa(0x239)](0x0);}},a4e);
1
+ const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x196))/0x1+parseInt(ae(0x171))/0x2+-parseInt(ae(0x16d))/0x3+parseInt(ae(0x180))/0x4+parseInt(ae(0x184))/0x5+-parseInt(ae(0x174))/0x6+parseInt(ae(0x159))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd9636));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x1b2)]()[ag(0x19b)](ag(0x156))[ag(0x1b2)]()[ag(0x191)](a4a)['search'](ag(0x156));});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 a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x14c;let f=c[d];return f;},a4d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ah(0x1a1)]({'name':a4ah(0x172),'aliases':['ci'],'usage':a4ah(0x162),'examples':[a4ah(0x17d),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ah(0x18f),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a4ah;try{const c=this[ai(0x15d)][ai(0x19c)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi']['getConfigFromShorthand'](b[ai(0x163)]),i=this[ai(0x15d)][ai(0x18b)](h),j=g+'-'+h,k=await Actions[ai(0x192)](ai(0x18d)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x186),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x173)]({'env':h});r=y,s=z,Log['success'](ai(0x1a4)+r);}else try{Log[ai(0x160)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0x192)](ai(0x165))||'-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(0x160)](ai(0x195));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x188)],Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x199)](D);}l=await d['chooseVPC']();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x1a5)]():l;u=await Actions[ai(0x192)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x192)](ai(0x1ac))||ai(0x1a8),G=F[ai(0x19f)](',');await d[ai(0x170)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x197)](u);if(I===''){Log[ai(0x160)](ai(0x14e)),J[ai(0x17c)](function(L){const ak=ai;L['name']===u?Log['notice']('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x188)]+ak(0x18e)+L[ak(0x169)]):Log['bright'](ak(0x1af)+L['id']+ak(0x15c)+L[ak(0x188)]+ak(0x18e)+L['sgId']);});const K=await Actions[ai(0x192)](ai(0x19d)+H+']\x20')||H[ai(0x1b2)]();J[ai(0x17c)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log['success'](al(0x17a)+m+'\x0a'));});}else m=I,Log[ai(0x1a2)](ai(0x17a)+m+'\x0a');if(m==='')throw Log[ai(0x199)](ai(0x1a0));}catch(L){Log[ai(0x199)](L);}try{const M=0x7e6;Log[ai(0x160)](ai(0x14f));const N=execSync(ai(0x189)+M+ai(0x198))[ai(0x1b2)](),O=JSON[ai(0x176)](N),P=[],Q=[];O[ai(0x17c)](function(S){const am=ai;if(S[am(0x17e)]===am(0x177)){const T=S[am(0x16e)][am(0x19f)]('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x151)](function(S,T){const an=ai;return new Date(T[an(0x19e)])['getTime']()-new Date(S[an(0x19e)])[an(0x185)]();}),P[ai(0x17c)](function(S,T){const ao=ai;Q[ao(0x15b)]({'id':T,'amiId':S[ao(0x1a7)],'desc':S[ao(0x187)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x182)](ap(0x1af)+S['id']+ap(0x190)+S[ap(0x1a7)]+'\x20DESCRIPTION:\x20'+S[ap(0x187)]);});const R=await Actions[ai(0x192)](ai(0x158))||'0';Q[ai(0x17c)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log['success'](aq(0x175)+n+aq(0x166)+S['desc']));});if(n==='')throw Log['error'](ai(0x1a0));}catch(S){Log['error'](S);}try{Log[ai(0x160)]('**\x20Available\x20Subnets\x20**');const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x1b2)](),U=JSON[ai(0x176)](T),V=[];U[ai(0x17c)](function(X,Y){const ar=ai;V[ar(0x15b)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x153)]});}),V['forEach'](function(X){const as=ai;console[as(0x182)]('ID:\x20'+X['id']+'\x20CIDR:\x20'+X[as(0x15f)]+as(0x1a9)+X['az']+as(0x17b)+X[as(0x153)]);});const W=await Actions['ask'](ai(0x16f))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x153)],Log[at(0x1a2)](at(0x1ad)+p));});if(p==='')throw Log[ai(0x199)](ai(0x1a0));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ai(0x181))||ai(0x16c),Z=Y[ai(0x19f)](':')[0x0],a0=Y[ai(0x19f)](':')[0x1];typeof parseInt(Z)===ai(0x193)&&typeof parseInt(a0)===ai(0x193)&&Log[ai(0x1a2)](ai(0x168)+Z+':'+a0);}catch(a1){Log[ai(0x199)](a1);}try{const a2=await Actions[ai(0x192)](ai(0x1b0))||ai(0x167);typeof a2===ai(0x1a3)&&(o=a2);}catch(a3){Log[ai(0x199)](a3);}let x;try{const a4=await Actions[ai(0x17f)](ai(0x1ae),![]);a4&&(x=a4f[ai(0x155)](i,'user-data'),Log[ai(0x160)](ai(0x14d)+x),await this[ai(0x15d)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x17f)](ai(0x1ab)));}catch(a5){Log[ai(0x199)](a5);}try{const a6=JSON[ai(0x176)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x1b2)]())[0x0][ai(0x178)];Log[ai(0x160)](ai(0x161)+n),Log['notice'](ai(0x183)+v+':'+w),Log[ai(0x160)]('Instace\x20Type:\x20'+o),Log[ai(0x160)](ai(0x154)+r),Log[ai(0x160)](ai(0x194)+m),Log['notice'](ai(0x1b1)+a6);if(x){Log[ai(0x160)](ai(0x15e)+x);const a8=a4g[ai(0x150)](x);Log['notice'](a8);}const a7=await Actions[ai(0x17f)](ai(0x15a));if(a7){const a9=await d[ai(0x14c)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x152),'Value':ai(0x157)},{'Key':ai(0x179),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1a2)](ai(0x16b)),Log['bright']('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0x17f)](ai(0x1a6)+r+'\x20?',!![]);aa&&(d[ai(0x18c)](r),f[ai(0x16a)](s)&&a4g[ai(0x18a)](s));const ab=await Actions[ai(0x17f)](ai(0x164)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console[ai(0x182)](ac),Log[ai(0x199)](ac);}}catch(ad){console[ai(0x199)](ad),process[ai(0x19a)](0x0);}},a4e);function a4c(){const au=['notice','ImageID:','maka\x20aws:create-instance\x20<opts>','env','Remove\x20the\x20security\x20group\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','\x20:\x20','t3.micro','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','sgId','isFile','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','1:1','5094714ffKDYX','Desc','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ec2createSG','2524186hHJYoN','create-instance','createKeyPair','8106480zeaxmk','Setting\x20AMI\x20ID\x20to\x20','parse','amazon','subnet','environment','Setting\x20SG\x20ID\x20to:\x20','\x20SUBNETID:\x20','forEach','maka\x20aws:create-instance\x20--env\x20dev','alias','confirm','6421744VHLcvm','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','log','Instance\x20Count:\x20','4747410EcxtOK','getTime','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','desc','name','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=*','unlinkSync','getConfigPath','deleteKeyPair','EC2\x20Name:\x20[','\x20SGID:\x20','Create\x20new\x20AWS\x20instance','\x20AMIID:\x20','constructor','ask','number','Security\x20Group:\x20','No\x20instance\x20has\x20been\x20created.','1474302tbVjHo','getSecurityGroups','*\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','error','exit','search','getProjectConfig','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','date','split','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','create','success','string','Setting\x20the\x20key-pair\x20to:\x20','chooseVPC','Remove\x20the\x20keypair\x20','amiId','22,80,443','\x20AZONE:\x20','apply','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Setting\x20Subnet\x20ID\x20to\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','ID:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Subnet:\x20','toString','ec2create','Creating\x20user\x20data\x20file\x20in\x20','**\x20Available\x20Security\x20Groups\x20**','**\x20Available\x20AMIs\x20**','readFileSync','sort','created-by','subnetId','Key-Pair:\x20','join','(((.+)+)+)+$','maka-cli','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','11179217nEQESe','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','push','\x20SG\x20NAME:\x20','fsi','User\x20Data:','cidr'];a4c=function(){return au;};return a4c();}
@@ -1 +1 @@
1
- const a5i=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x147;let f=c[d];return f;},a5d(a,b);}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x15d))/0x1+parseInt(g(0x152))/0x2+-parseInt(g(0x161))/0x3*(-parseInt(g(0x15b))/0x4)+-parseInt(g(0x148))/0x5*(-parseInt(g(0x155))/0x6)+-parseInt(g(0x154))/0x7+-parseInt(g(0x15f))/0x8+parseInt(g(0x153))/0x9*(parseInt(g(0x14b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x9be13));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0x158)]()[h(0x162)](h(0x15e))[h(0x158)]()[h(0x14c)](a5a)[h(0x162)]('(((.+)+)+)+$');});a5a();function a5c(){const k=['create','maka\x20aws:create-key-pair\x20<opts>','\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','getConfigFromShorthand','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','461568njZoon','1413bHRlJj','6422381awmHZj','6qxZtOo','maka\x20aws:ckp\x20--env\x20prod','createKeyPair','toString','env','error','116MhMWQW','fsi','289309ehxanX','(((.+)+)+)+$','3103096XriHND','ckp','3972GWrovL','search','exit','776345JhdYML','create-key-pair','maka\x20aws:create-key-pair\x20--env\x20prod','78350RAIaaS','constructor'];a5c=function(){return k;};return a5c();}import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5i(0x14d)]({'name':a5i(0x149),'aliases':[a5i(0x160)],'usage':a5i(0x14e),'examples':[a5i(0x14a),a5i(0x156)],'mustBeInMakaProject':!![],'requiredOpts':[a5i(0x159)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5i(0x151),'description':a5i(0x14f)},async function(a,b){const j=a5i;try{const c=new AWS(),d=this[j(0x15c)][j(0x150)](b[j(0x159)]);c[j(0x157)]({'env':d});}catch(f){console[j(0x15a)](f),process[j(0x147)](0x0);}},a5e);
1
+ const a5i=a5d;function a5c(){const k=['6ShpsVQ','fsi','createKeyPair','maka\x20aws:ckp\x20--env\x20prod','1277596IkblrG','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','19486mXRsYo','exit','82Xzhsqx','maka\x20aws:create-key-pair\x20<opts>','(((.+)+)+)+$','search','\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','maka\x20aws:create-key-pair\x20--env\x20prod','2186910WrEOgh','create-key-pair','8406DFFSWl','4145827zhbsBJ','130110qxgoxI','5968cxdaUA','5579050PoTrjz','ckp','toString'];a5c=function(){return k;};return a5c();}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0xfe))/0x1*(-parseInt(g(0xfc))/0x2)+parseInt(g(0xf1))/0x3+parseInt(g(0xfa))/0x4+parseInt(g(0xed))/0x5+parseInt(g(0xf6))/0x6*(-parseInt(g(0xf0))/0x7)+parseInt(g(0xf2))/0x8*(parseInt(g(0xef))/0x9)+parseInt(g(0xf3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xa2051));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a['toString']()['search'](h(0x100))[h(0xf5)]()['constructor'](a5a)[h(0xea)](h(0x100));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xea;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5i(0xee),'aliases':[a5i(0xf4)],'usage':a5i(0xff),'examples':[a5i(0xec),a5i(0xf9)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5i(0xfb),'description':a5i(0xeb)},async function(a,b){const j=a5i;try{const c=new AWS(),d=this[j(0xf7)]['getConfigFromShorthand'](b['env']);c[j(0xf8)]({'env':d});}catch(f){console['error'](f),process[j(0xfd)](0x0);}},a5e);
@@ -1 +1 @@
1
- function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x79;let f=c[d];return f;},a6d(a,b);}const a6p=a6d;function a6c(){const s=['search','(((.+)+)+)+$','9778KmCGTU','maka\x20aws\x20create-security-group','apply','create-security-group','forEach','List\x20is\x20not\x20all\x20numbers','4864416ugplrB','fsi','ec2createSG','match','ask','1432396zBtFGC','392Xgtshw','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','error','\x22Web\x20App\x22','2539698HACTvw','378057VMPqnK','320QSWylU','8410jeOUlY','22,80,443','163908IroTeV','getProjectConfig','393jEoOYq'];a6c=function(){return s;};return a6c();}(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0x80))/0x1+-parseInt(m(0x89))/0x2*(-parseInt(m(0x86))/0x3)+parseInt(m(0x7a))/0x4*(-parseInt(m(0x82))/0x5)+parseInt(m(0x7f))/0x6+-parseInt(m(0x79))/0x7+parseInt(m(0x8f))/0x8+-parseInt(m(0x84))/0x9*(parseInt(m(0x81))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x535f1));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a['toString']()[o(0x87)]('(((.+)+)+)+$')['toString']()['constructor'](a6a)[o(0x87)](o(0x88));});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['create']({'name':a6p(0x8c),'aliases':[a6p(0x7b)],'usage':a6p(0x8a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a6p(0x7c),'examples':['maka\x20aws:create-secuirty-group','maka\x20aws:csg']},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x90)][q(0x85)](),{appName:f}=d,g=await c['chooseVPC'](),h=b['name']?b['name']:''+f,i=await Actions['ask']('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x93)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0x83),k=j['split'](',');k[q(0x8d)](l=>{const r=q;if(!l[r(0x92)](/^\d+$/))throw r(0x8e);}),c[q(0x91)]({'description':q(0x7e),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x7d)](l),process['exit'](0x1);}},a6e);
1
+ function a6c(){const s=['1003269jfhdzT','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\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','5LDqTqj','fsi','maka\x20aws\x20create-security-group','9jKczGx','csg','exit','190992DVXVlg','2035418CLSoGv','forEach','error','create','(((.+)+)+)+$','5795336LNnxFH','apply','name','180692VISzWW','ask','1160802AcGJiQ','getProjectConfig','maka\x20aws:csg','Security\x20Group\x20Name:\x20[','37108OWBoTZ','create-security-group','chooseVPC','ec2createSG','search','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','toString','List\x20is\x20not\x20all\x20numbers'];a6c=function(){return s;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a6d(a,b);}const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x1cd))/0x1+-parseInt(m(0x1e7))/0x2+-parseInt(m(0x1d5))/0x3+-parseInt(m(0x1de))/0x4+-parseInt(m(0x1d8))/0x5*(-parseInt(m(0x1e9))/0x6)+-parseInt(m(0x1df))/0x7+parseInt(m(0x1e4))/0x8*(parseInt(m(0x1db))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x2ecd5));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a['toString']()[o(0x1d1)](o(0x1e3))[o(0x1d3)]()['constructor'](a6a)[o(0x1d1)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6p(0x1e2)]({'name':a6p(0x1ce),'aliases':[a6p(0x1dc)],'usage':a6p(0x1da),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x1d2),'description':a6p(0x1d7),'examples':['maka\x20aws:create-secuirty-group',a6p(0x1eb)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x1d9)][q(0x1ea)](),{appName:f}=d,g=await c[q(0x1cf)](),h=b[q(0x1e6)]?b[q(0x1e6)]:''+f,i=await Actions[q(0x1e8)](q(0x1ec)+h+']')||h,j=await Actions[q(0x1e8)](q(0x1d6))||'22,80,443',k=j['split'](',');k[q(0x1e0)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x1d4);}),c[q(0x1d0)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x1e1)](l),process[q(0x1dd)](0x1);}},a6e);
@@ -1 +1 @@
1
- const a7h=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(0xc2))/0x1*(parseInt(f(0xc6))/0x2)+-parseInt(f(0xbf))/0x3*(parseInt(f(0xb4))/0x4)+parseInt(f(0xb8))/0x5*(-parseInt(f(0xc7))/0x6)+parseInt(f(0xbc))/0x7+parseInt(f(0xc1))/0x8+-parseInt(f(0xb7))/0x9+parseInt(f(0xbb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x2cc11));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['toString']()[g(0xc5)]('(((.+)+)+)+$')[g(0xc0)]()['constructor'](a7a)[g(0xc5)](g(0xbe));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xb4;let f=c[d];return f;},a7d(a,b);}function a7c(){const j=['3239630VLGalE','1041838eaKpdb','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','(((.+)+)+)+$','454959kZOvij','toString','17624FYjjQQ','122kQzxzX','describe-instances','maka\x20aws:describe-instances','search','2284uXRrNP','256806lUDlRC','\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','4nLOpJm','exit','maka\x20aws:di','1358595RAtNcu','15lRzrKp','create','ec2describeInstances'];a7c=function(){return j;};return a7c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a7h(0xb9)]({'name':a7h(0xc3),'aliases':['di'],'usage':a7h(0xc4),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7h(0xbd),'examples':['maka\x20aws:describe-instances',a7h(0xb6)],'description':a7h(0xc8)},async function(){const i=a7h;try{const a=new AWS();a[i(0xba)]();}catch(b){console['error'](b),process[i(0xb5)](0x0);}},a7e);
1
+ const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0xed))/0x1*(parseInt(f(0xdd))/0x2)+-parseInt(f(0xeb))/0x3*(-parseInt(f(0xe4))/0x4)+-parseInt(f(0xdb))/0x5+parseInt(f(0xe8))/0x6*(parseInt(f(0xe3))/0x7)+parseInt(f(0xea))/0x8+parseInt(f(0xde))/0x9*(parseInt(f(0xe7))/0xa)+-parseInt(f(0xda))/0xb*(parseInt(f(0xd9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x26869));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0xe1)]()['search'](h(0xd6))['toString']()[h(0xdf)](a7a)[h(0xd5)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xd5;let f=c[d];return f;},a7d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7c(){const k=['1164685mLnCHU','describe-instances','2TdEGCN','1107792npEtKN','constructor','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','toString','maka\x20aws:di','1181537uNVEcP','4rxEmxp','create','maka\x20aws:describe-instances','10kquzzk','6qjwIZb','ec2describeInstances','1394448ZUXtgk','368733AorVSC','error','130258fPoZkK','search','(((.+)+)+)+$','exit','apply','48vWKQKr','187275cnYRQS'];a7c=function(){return k;};return a7c();}Command[a7i(0xe5)]({'name':a7i(0xdc),'aliases':['di'],'usage':a7i(0xe6),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0xe0),'examples':[a7i(0xe6),a7i(0xe2)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const j=a7i;try{const a=new AWS();a[j(0xe9)]();}catch(b){console[j(0xec)](b),process[j(0xd7)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x18c))/0x1+-parseInt(f(0x188))/0x2+parseInt(f(0x17c))/0x3*(-parseInt(f(0x189))/0x4)+parseInt(f(0x186))/0x5+-parseInt(f(0x180))/0x6+parseInt(f(0x17b))/0x7+-parseInt(f(0x187))/0x8*(-parseInt(f(0x18b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x5b7f4));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x17a)]()[h(0x179)](h(0x181))[h(0x17a)]()[h(0x17d)](a8a)[h(0x179)](h(0x181));});a8a();import a8e from'./aws.command.js';function a8c(){const k=['(((.+)+)+)+$','exit','ec2describeKeys','describe-key-pairs','apply','2892955sPFofn','39664cLwwKp','458684xkYAGt','4ynkzih','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','1278LZyCkC','143368swOWYO','error','search','toString','565537VTmrvg','67131VNnUNY','constructor','maka\x20aws:describe-key-pairs','maka\x20aws:dkp','3561354TqmwEV'];a8c=function(){return k;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x179;let f=c[d];return f;},a8d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8i(0x184),'aliases':['dkp'],'usage':a8i(0x17e),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x18a),'examples':[a8i(0x17e),a8i(0x17f)]},async function(){const j=a8i;try{const a=new AWS();a[j(0x183)]();}catch(b){console[j(0x18d)](b),process[j(0x182)](0x0);}},a8e);
1
+ const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x6e))/0x1+parseInt(f(0x71))/0x2+parseInt(f(0x7c))/0x3+-parseInt(f(0x68))/0x4*(-parseInt(f(0x78))/0x5)+parseInt(f(0x77))/0x6+-parseInt(f(0x75))/0x7+parseInt(f(0x69))/0x8*(-parseInt(f(0x79))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x4598a));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x6c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x73)]()[h(0x76)](h(0x67))[h(0x73)]()[h(0x6b)](a8a)[h(0x76)](h(0x67));});a8a();function a8c(){const k=['6040qVUuCv','7439382jTIqjb','ec2describeKeys','maka\x20aws:dkp','1629249iviDjO','(((.+)+)+)+$','856cRmKNa','8HyhYlN','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','constructor','apply','maka\x20aws:describe-key-pairs','242942ODBVso','describe-key-pairs','error','291158faqeMt','create','toString','dkp','657818vALKtI','search','3008436MSKXAV'];a8c=function(){return k;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x67;let f=c[d];return f;},a8d(a,b);}import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8i(0x72)]({'name':a8i(0x6f),'aliases':[a8i(0x74)],'usage':a8i(0x6d),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x6a),'examples':[a8i(0x6d),a8i(0x7b)]},async function(){const j=a8i;try{const a=new AWS();a[j(0x7a)]();}catch(b){console[j(0x70)](b),process['exit'](0x0);}},a8e);
@@ -1 +1 @@
1
- const a9j=a9d;(function(a,b){const h=a9d,c=a();while(!![]){try{const d=parseInt(h(0x146))/0x1+-parseInt(h(0x155))/0x2+-parseInt(h(0x14a))/0x3*(parseInt(h(0x144))/0x4)+-parseInt(h(0x150))/0x5+parseInt(h(0x157))/0x6+-parseInt(h(0x148))/0x7+parseInt(h(0x140))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xf2984));function a9c(){const m=['sgId','Deleted\x20','success','exit','48842320eHjkXT','error','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','listSecurityGroups','4256gXGQdv','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','103739PxBflj','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','13728631xBZUmj','toString','2832kfwKsz','maka\x20aws:delete-sg','maka\x20aws:dsg','search','create','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','3591700kcSigp','(((.+)+)+)+$','Not\x20deleting\x20secuirty\x20group','constructor','delete-security-group','3322168PIzAou','deleteSecurityGroup','778272BxdXKE','forEach','confirm'];a9c=function(){return m;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const i=a9d;return a9a[i(0x149)]()[i(0x14d)](i(0x151))['toString']()[i(0x153)](a9a)[i(0x14d)](i(0x151));});a9a();import a9e 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 a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x13b;let f=c[d];return f;},a9d(a,b);}Command[a9j(0x14e)]({'name':a9j(0x154),'aliases':['dsg'],'usage':a9j(0x14b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9j(0x142),'examples':['maka\x20aws:delete-sg',a9j(0x14c)]},async function(){const k=a9j;try{const a=new AWS(),b=await a[k(0x143)]();let c;const d=await Actions['ask'](k(0x147));b[k(0x158)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x13c)]);});if(!c)throw Log[k(0x141)](k(0x14f));const f=await Actions[k(0x13b)]('Deleting\x20a\x20'+c+k(0x145),![]);f?(a[k(0x156)](c),Log[k(0x13e)](k(0x13d)+c)):Log[k(0x141)](k(0x152)),process[k(0x13f)](0x0);}catch(g){process[k(0x13f)](0x1);}},a9e);
1
+ function a9c(){const s=['toString','258207dToLDD','getSecurityGroups','sgId','2299896vgfUNl','Not\x20deleting\x20secuirty\x20group','notice','251720HMoYPr','maka\x20aws:delete-sg','492018VJiFWd','forEach','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','confirm','Deleting\x20a\x20','error','name','1295210MFTxKY','includes','(((.+)+)+)+$','557272aUJrXh','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','bright','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','apply','search','6qzamzC','\x20SGID:\x20','2045rwXNAK','11QiRDkH','3QfSVYV','deleteSecurityGroup','dsg','\x20SG\x20NAME:\x20','18XLieRj','exit','constructor','Deleted\x20','ID:\x20','appName','ask','8MkWfEz'];a9c=function(){return s;};return a9c();}const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=parseInt(l(0x165))/0x1+parseInt(l(0x16d))/0x2*(-parseInt(l(0x182))/0x3)+parseInt(l(0x163))/0x4*(-parseInt(l(0x180))/0x5)+-parseInt(l(0x17e))/0x6*(-parseInt(l(0x174))/0x7)+-parseInt(l(0x177))/0x8*(-parseInt(l(0x186))/0x9)+-parseInt(l(0x16b))/0xa*(-parseInt(l(0x181))/0xb)+-parseInt(l(0x168))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x2951a));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0x164)]()[n(0x17d)](n(0x176))[n(0x164)]()[n(0x188)](a9a)[n(0x17d)](n(0x176));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x15f;let f=c[d];return f;},a9d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':'delete-security-group','aliases':[a9o(0x184)],'usage':a9o(0x16c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x16f),'examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b['getProjectConfig']();d=j[p(0x161)];}const {sgList:f}=await a[p(0x166)]();f[p(0x16e)](function(k){const q=p;c&&k[q(0x173)][q(0x175)](d)?Log[q(0x16a)](q(0x160)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x173)]+'\x20SGID:\x20'+k['sgId']):Log[q(0x179)](q(0x160)+k['id']+q(0x185)+k[q(0x173)]+q(0x17f)+k['sgId']);});let g='';const h=await Actions[p(0x162)](p(0x178));f[p(0x16e)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x167)]);});if(!g)throw Log[p(0x172)](p(0x17b));const i=await Actions[p(0x170)](p(0x171)+g+p(0x17a),![]);i?(await a[p(0x183)](g),Log['success'](p(0x15f)+g)):Log[p(0x172)](p(0x169)),process[p(0x187)](0x0);}catch(k){process[p(0x187)](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1c0))/0x1*(-parseInt(f(0x1b1))/0x2)+parseInt(f(0x1cb))/0x3*(parseInt(f(0x1bd))/0x4)+parseInt(f(0x1b9))/0x5*(-parseInt(f(0x1c5))/0x6)+-parseInt(f(0x1b8))/0x7+-parseInt(f(0x1b6))/0x8*(parseInt(f(0x1b2))/0x9)+-parseInt(f(0x1b4))/0xa+parseInt(f(0x1ce))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xeb45e));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1bc)]()['search']('(((.+)+)+)+$')[h(0x1bc)]()[h(0x1c7)](a10a)[h(0x1b7)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a10d(a,b);}function a10c(){const k=['Reboot\x20an\x20EC2\x20instance','create','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','355578idpUYp','apply','constructor','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','\x20Ready?','error','526656XBKAzT','maka\x20aws:reboot-instance','confirm','38851428FlSgMb','ec2rebootInstance','status','name','67440aTiBLY','222219UKHxlG','\x20is\x20still\x20running.','9590090LJoWKf','rbi','328Ohthtp','search','4370555lIVxqZ','95zmtnWM','maka\x20aws:rbi','instanceId','toString','4qHqbXG','reboot-instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','29KyIZBg','chooseInstance'];a10c=function(){return k;};return a10c();}Command[a10i(0x1c3)]({'name':a10i(0x1be),'aliases':[a10i(0x1b5)],'usage':a10i(0x1cc),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x1c2),'examples':['maka\x20aws:reboot-instance',a10i(0x1ba)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x1c1)]();if(b?.[j(0x1d0)]==='running'){const c=await Actions[j(0x1cd)](j(0x1c8)+b[j(0x1d1)]+j(0x1c9));c?a[j(0x1cf)]({'instanceId':b[j(0x1bb)]}):Log[j(0x1ca)](j(0x1c4)+b['name']+j(0x1b3));}else Log['error'](j(0x1bf));}catch(d){console[j(0x1ca)](d),process['exit'](0x0);}},a10e);
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xa9))/0x1*(parseInt(f(0x92))/0x2)+-parseInt(f(0x94))/0x3+-parseInt(f(0x8f))/0x4+parseInt(f(0xa3))/0x5*(-parseInt(f(0x96))/0x6)+-parseInt(f(0x9c))/0x7*(parseInt(f(0x8d))/0x8)+-parseInt(f(0xa6))/0x9+-parseInt(f(0xa8))/0xa*(-parseInt(f(0x9b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x64953));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x8b)]()[h(0xa2)]('(((.+)+)+)+$')[h(0x8b)]()[h(0x99)](a10a)['search']('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';function a10c(){const k=['1444328zMuOlW','instanceId','reboot-instance','2EtZFEB','Reboot\x20an\x20EC2\x20instance','26076uKZvZL','maka\x20aws:reboot-instance','684hSggvf','name','\x20is\x20still\x20running.','constructor','\x20Ready?','11thVcxh','85673YlNKZj','create','apply','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','running','exit','search','21975EJjYzs','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','rbi','5193810jsVpoC','status','19284290EumpQC','7353rgCiAM','chooseInstance','confirm','error','toString','ec2rebootInstance','40xYebfl','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'];a10c=function(){return k;};return a10c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x88;let f=c[d];return f;},a10d(a,b);}Command[a10i(0x9d)]({'name':a10i(0x91),'aliases':[a10i(0xa5)],'usage':a10i(0x95),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x93),'examples':[a10i(0x95),'maka\x20aws:rbi']},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x88)]();if(b?.[j(0xa7)]===j(0xa0)){const c=await Actions[j(0x89)](j(0xa4)+b['name']+j(0x9a));c&&b[j(0x90)]?a[j(0x8c)]({'instanceId':b[j(0x90)]}):Log[j(0x8a)](j(0x8e)+b[j(0x97)]+j(0x98));}else Log[j(0x8a)](j(0x9f));}catch(d){console[j(0x8a)](d),process[j(0xa1)](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0xcf))/0x1+parseInt(h(0xc7))/0x2*(parseInt(h(0xc8))/0x3)+-parseInt(h(0xd5))/0x4*(-parseInt(h(0xc3))/0x5)+-parseInt(h(0xcd))/0x6*(-parseInt(h(0xc5))/0x7)+-parseInt(h(0xd3))/0x8*(-parseInt(h(0xc6))/0x9)+-parseInt(h(0xd0))/0xa+-parseInt(h(0xd1))/0xb*(parseInt(h(0xd9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xd3a2e));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0xc4)]()[j(0xcc)]('(((.+)+)+)+$')[j(0xc4)]()['constructor'](a11a)[j(0xcc)](j(0xdb));});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xbe;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const n=['Not\x20deleting\x20keypair','\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','Deleted\x20','search','12jOVetZ','maka\x20aws:rkp','1091953rMMOiX','12914470WvkjJp','29191393fyOZrh','remove-key-pair','169816jhhHBd','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1043012trJYmp','exit','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','create','12HYaqWo','maka\x20aws:remove-key-pair','(((.+)+)+)+$','ec2describeKeys','error','apply','rkp','ask','name','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','25BhVFov','toString','670439KfvAEN','243WjccHL','378gGCfAa','26217iddHIS'];a11c=function(){return n;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11k(0xd8)]({'name':a11k(0xd2),'aliases':[a11k(0xbf)],'usage':a11k(0xda),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0xc2),'description':a11k(0xca),'examples':[a11k(0xda),a11k(0xce)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0xdc)]();let c;const d=await Actions[l(0xc0)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.['forEach'](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xc1)]);});if(!c)throw Log['error'](l(0xd4));const f=await Actions['confirm']('Deleting\x20a\x20'+c+l(0xd7),![]);f?(a['deleteKeyPair'](c),Log['success'](l(0xcb)+c)):Log[l(0xdd)](l(0xc9)),process[l(0xd6)](0x0);}catch(g){process[l(0xd6)](0x1);}},a11e);
1
+ const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x144))/0x1+parseInt(h(0x14d))/0x2*(-parseInt(h(0x15f))/0x3)+parseInt(h(0x14c))/0x4+-parseInt(h(0x162))/0x5*(-parseInt(h(0x15c))/0x6)+-parseInt(h(0x153))/0x7+-parseInt(h(0x15a))/0x8+-parseInt(h(0x145))/0x9*(parseInt(h(0x159))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xeea0b));function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x144;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a[j(0x164)]()[j(0x14f)](j(0x155))[j(0x164)]()[j(0x157)](a11a)[j(0x14f)]('(((.+)+)+)+$');});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11c(){const n=['698sUloQd','maka\x20aws:rkp','search','apply','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','908992lQCRUy','Please\x20choose\x20a\x20key\x20to\x20delete:','(((.+)+)+)+$','forEach','constructor','name','460YiFwPk','6741224SVCiil','create','127122ushWVN','ec2describeKeys','ask','13443mNlfzj','exit','success','130jtUhnt','confirm','toString','error','1799737BWnRYR','143721GvVWvd','deleteKeyPair','Deleted\x20','Not\x20deleting\x20keypair','remove-key-pair','maka\x20aws:remove-key-pair','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','7591088QzIHdK'];a11c=function(){return n;};return a11c();}import{Log}from'../../tools/log/log.class.js';Command[a11k(0x15b)]({'name':a11k(0x149),'aliases':['rkp'],'usage':a11k(0x14a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x152),'description':a11k(0x14b),'examples':[a11k(0x14a),a11k(0x14e)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0x15d)]();let c;const d=await Actions[l(0x15e)](l(0x154));b?.[l(0x156)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x158)]);});if(!c)throw Log[l(0x165)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x163)]('Deleting\x20a\x20'+c+l(0x151),![]);f?(a[l(0x146)](c),Log[l(0x161)](l(0x147)+c)):Log[l(0x165)](l(0x148)),process['exit'](0x0);}catch(g){process[l(0x160)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12n=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=-parseInt(l(0x1da))/0x1*(parseInt(l(0x1de))/0x2)+parseInt(l(0x1c1))/0x3*(parseInt(l(0x1db))/0x4)+parseInt(l(0x1c3))/0x5+-parseInt(l(0x1dc))/0x6+-parseInt(l(0x1e5))/0x7*(-parseInt(l(0x1c2))/0x8)+-parseInt(l(0x1d0))/0x9*(-parseInt(l(0x1c5))/0xa)+-parseInt(l(0x1e4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xc7ed0));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a12d(a,b);}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(0x1e1)]()[m(0x1be)](m(0x1d2))[m(0x1e1)]()[m(0x1c6)](a12a)[m(0x1be)](m(0x1d2));});a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';function a12c(){const p=['Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','fsi','chooseInstance','readFileSync','error','maka\x20aws:set-host\x20--env\x20dev','public','set-host','getProjectConfig','153aSCYdZ','template','(((.+)+)+)+$','exit','success','inherit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','config/ssh.json','utf8','ask','7vOBDAN','28YqvPGn','1777518GKanJO','writeFileSync','113818FYCmYW','maka\x20aws\x20set-host','isFile','toString','ssh.json','parse','18416123gpkehd','897526oMmUDi','privateIp','maka\x20aws:sth\x20--env\x20prod','cat\x20','join','appName','stringify','env','search','getConfigPath','sth','29091mDgNZs','80SXPNzp','4670735wbnRBg','host','531470fMXArH','constructor'];a12c=function(){return p;};return a12c();}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':a12n(0x1ce),'aliases':[a12n(0x1c0)],'usage':a12n(0x1df),'mustBeInMakaProject':!![],'requiredOpts':[a12n(0x1bd)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12n(0x1c7),'description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':[a12n(0x1cc),a12n(0x1e7)]},async function(a,b){const o=a12n;try{const c=new AWS(),d=this['fsi'][o(0x1bf)](b[o(0x1bd)]),f=this[o(0x1c8)][o(0x1cf)](),g=await c[o(0x1c9)](),h=a12e[o(0x1ba)](d,'ssh.json');!this[o(0x1c8)][o(0x1e0)](h)&&await this[o(0x1c8)][o(0x1d1)]({'srcPath':o(0x1d7),'destPath':h,'context':{'app':f[o(0x1bb)]},'config':f});const i=JSON[o(0x1e3)](a12f[o(0x1ca)](h,o(0x1d8))),j=await Actions[o(0x1d9)](o(0x1d6))||o(0x1cd);if(j){if(j==='public'||j==='private'){if(j==='public')i[o(0x1c4)]=g?.['publicIp'];else j==='private'&&(i['host']=g?.[o(0x1e6)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[o(0x1c4)]=g?.['privateIp'];a12f[o(0x1dd)](a12e[o(0x1ba)](d,o(0x1e2)),JSON[o(0x1bc)](i,null,0x2)),execSync(o(0x1e8)+a12e[o(0x1ba)](d,o(0x1e2)),{'stdio':o(0x1d5)}),Log[o(0x1d4)]('\x0aSaved\x20host\x20'+j+'\x20IP\x20to\x20'+d+a12e['sep']+'ssh.json');}catch(k){console[o(0x1cb)](k),process[o(0x1d3)](0x0);}},a12g);
1
+ const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0x1f9))/0x1*(-parseInt(l(0x1fd))/0x2)+parseInt(l(0x1ec))/0x3+-parseInt(l(0x206))/0x4*(-parseInt(l(0x1f0))/0x5)+-parseInt(l(0x217))/0x6*(parseInt(l(0x20d))/0x7)+parseInt(l(0x1ef))/0x8*(-parseInt(l(0x205))/0x9)+-parseInt(l(0x1f8))/0xa*(parseInt(l(0x1f6))/0xb)+parseInt(l(0x202))/0xc*(parseInt(l(0x219))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x2cab9));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x21a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x1fa)]()[n(0x200)](n(0x20f))[n(0x1fa)]()[n(0x1f1)](a12a)['search'](n(0x20f));});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';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a12o(0x1f4)]({'name':'set-host','aliases':[a12o(0x1ea)],'usage':a12o(0x20c),'mustBeInMakaProject':!![],'requiredOpts':[a12o(0x1f2)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x203),'description':a12o(0x1f5),'examples':[a12o(0x207),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x1ed)]['getConfigPath'](b[p(0x1f2)]),f=this[p(0x1ed)][p(0x1fc)](),g=await c[p(0x215)](),h=a12e['join'](d,'ssh.json');!this[p(0x1ed)][p(0x1fe)](h)&&await this[p(0x1ed)][p(0x201)]({'srcPath':p(0x218),'destPath':h,'context':{'app':f[p(0x1eb)]},'config':f});const i=JSON[p(0x1ee)](a12f[p(0x1f3)](h,p(0x1fb))),j=await Actions[p(0x20b)](p(0x210))||p(0x20a);if(j){if(j===p(0x20a)||j===p(0x214)){if(j===p(0x20a))i['host']=g?.['publicIp'];else j==='private'&&(i[p(0x211)]=g?.['privateIp']);}else throw p(0x208);}else i[p(0x211)]=g?.[p(0x204)];a12f[p(0x216)](a12e['join'](d,p(0x20e)),JSON['stringify'](i,null,0x2)),execSync(p(0x1ff)+a12e['join'](d,p(0x20e)),{'stdio':p(0x1f7)}),Log[p(0x1e8)](p(0x1e9)+j+p(0x209)+d+a12e[p(0x213)]+p(0x20e));}catch(k){console[p(0x212)](k),process[p(0x1e7)](0x0);}},a12g);function a12c(){const q=['appName','580860EEQlNJ','fsi','parse','10424QQhive','650630gjrcAL','constructor','env','readFileSync','create','\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','22ymsNNL','inherit','1216090XwtLAt','1Jetrrn','toString','utf8','getProjectConfig','378238OPhUoS','isFile','cat\x20','search','template','36396fdnoJN','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','privateIp','2223gHZePS','4rnSKWX','maka\x20aws:set-host\x20--env\x20dev','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','\x20IP\x20to\x20','public','ask','maka\x20aws\x20set-host','350xtvyCM','ssh.json','(((.+)+)+)+$','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','host','error','sep','private','chooseInstance','writeFileSync','16290hzMyRg','config/ssh.json','3211YoihoZ','apply','exit','success','\x0aSaved\x20host\x20','sth'];a12c=function(){return q;};return a12c();}
@@ -1 +1 @@
1
- function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x145;let f=c[d];return f;},a13d(a,b);}const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x15b))/0x1+parseInt(f(0x156))/0x2+parseInt(f(0x147))/0x3*(parseInt(f(0x158))/0x4)+-parseInt(f(0x15e))/0x5+parseInt(f(0x14c))/0x6+parseInt(f(0x155))/0x7*(parseInt(f(0x15d))/0x8)+parseInt(f(0x154))/0x9*(-parseInt(f(0x14a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x2f063));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const g=a13d;return a13a[g(0x14b)]()[g(0x159)](g(0x160))[g(0x14b)]()[g(0x15a)](a13a)[g(0x159)](g(0x160));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a13c(){const j=['4SzcGed','search','constructor','263556pwcCvz','maka\x20aws:terminate-instance','782656vtCrvI','672780FmUYIo','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','(((.+)+)+)+$','maka\x20aws:ti','\x20Ready?','197259oQbvSU','ec2terminateInstance','chooseInstance','10uvgCYx','toString','2208666hyJDas','confirm','exit','terminate-instance','name','status','create','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','663633KtUjpS','14MavGER','69864EhaLYS','error'];a13c=function(){return j;};return a13c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a13h(0x152)]({'name':a13h(0x14f),'aliases':['ti'],'usage':a13h(0x15c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','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':[a13h(0x15c),a13h(0x145)]},async function(){const i=a13h;try{const a=new AWS(),b=await a[i(0x149)]();if(b?.[i(0x151)]==='running'){const c=await Actions[i(0x14d)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0x150)]+i(0x146));c?a[i(0x148)]({'instanceId':b['instanceId']}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[i(0x150)]+i(0x15f));}else Log[i(0x157)](i(0x153));}catch(d){console['error'](d),process[i(0x14e)](0x0);}},a13e);
1
+ const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=parseInt(f(0x70))/0x1*(-parseInt(f(0x87))/0x2)+-parseInt(f(0x7c))/0x3+-parseInt(f(0x73))/0x4*(-parseInt(f(0x8a))/0x5)+-parseInt(f(0x81))/0x6+-parseInt(f(0x8b))/0x7*(-parseInt(f(0x74))/0x8)+-parseInt(f(0x79))/0x9*(parseInt(f(0x78))/0xa)+parseInt(f(0x82))/0xb*(parseInt(f(0x84))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xa6533));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const g=a13d;return a13a[g(0x77)]()[g(0x76)]('(((.+)+)+)+$')[g(0x77)]()['constructor'](a13a)[g(0x76)](g(0x8c));});a13a();import a13e from'./aws.command.js';function a13c(){const j=['create','Terminate\x20an\x20EC2\x20instance','85775nEkyNH','427Lnwaka','(((.+)+)+)+$','388881zYBegg','exit','terminate-instance','108tkwkWA','144312gvMiaL','error','search','toString','73630DWKsde','63MyWCoe','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','instanceId','1874868ZLlEgv','maka\x20aws:terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','\x20Ready?','1803606ctTHKa','11eLfEeg','confirm','15137328QpApPC','running','name','6oUrBKf'];a13c=function(){return j;};return a13c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x70;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13h(0x88)]({'name':a13h(0x72),'aliases':['ti'],'usage':a13h(0x7d),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13h(0x89),'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':[a13h(0x7d),'maka\x20aws:ti']},async function(){const i=a13h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[i(0x7b)]&&b?.['status']===i(0x85)){const c=await Actions[i(0x83)](i(0x7e)+b['name']+i(0x80));c?a['ec2terminateInstance']({'instanceId':b[i(0x7b)]}):Log['error'](i(0x7f)+b[i(0x86)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[i(0x75)](i(0x7a));}catch(d){console['error'](d),process[i(0x71)](0x0);}},a13e);
@@ -1 +1 @@
1
- (function(a,b){var f=a14d,c=a();while(!![]){try{var d=-parseInt(f(0x1e2))/0x1*(-parseInt(f(0x1e6))/0x2)+-parseInt(f(0x1e8))/0x3*(-parseInt(f(0x1e0))/0x4)+-parseInt(f(0x1de))/0x5*(parseInt(f(0x1eb))/0x6)+-parseInt(f(0x1e9))/0x7*(-parseInt(f(0x1df))/0x8)+-parseInt(f(0x1e5))/0x9*(parseInt(f(0x1ed))/0xa)+-parseInt(f(0x1e1))/0xb+parseInt(f(0x1e7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x896d0));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x1ec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x1e3)]()[h(0x1dd)](h(0x1e4))[h(0x1e3)]()[h(0x1ea)](a14a)[h(0x1dd)](h(0x1e4));});a14a();function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x1dd;var f=c[d];return f;},a14d(a,b);}import'./build.js';function a14c(){var i=['apply','1884910liRePH','search','245OgIVcR','901728EbeenF','4GlBYxG','4800070Aznkiw','1gnVJxo','toString','(((.+)+)+)+$','9WDApUN','1519006ssBmSi','3122868ysJdWA','217104BYxRdo','21AGHJKH','constructor','29694GRtNzs'];a14c=function(){return i;};return a14c();}import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x185))/0x1+-parseInt(f(0x186))/0x2+-parseInt(f(0x181))/0x3*(parseInt(f(0x184))/0x4)+-parseInt(f(0x18b))/0x5+parseInt(f(0x17e))/0x6+-parseInt(f(0x180))/0x7*(parseInt(f(0x189))/0x8)+parseInt(f(0x17f))/0x9*(parseInt(f(0x182))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xc716a));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x187)]()['search']('(((.+)+)+)+$')[h(0x187)]()[h(0x18a)](a14a)[h(0x17d)](h(0x188));});a14a();function a14c(){var i=['619017DSqKQK','2345390ubRyAp','apply','20hdzdux','848558cBQhYy','65018Gsafzc','toString','(((.+)+)+)+$','8ZkRKnH','constructor','2982545XMpnDj','search','8603898SKPZfo','45zlvoQS','6853399aCkDXd'];a14c=function(){return i;};return a14c();}import'./build.js';function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x17d;var f=c[d];return f;},a14d(a,b);}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x183))/0x1*(parseInt(p(0x190))/0x2)+parseInt(p(0x17b))/0x3+-parseInt(p(0x18c))/0x4+-parseInt(p(0x18f))/0x5+parseInt(p(0x196))/0x6*(parseInt(p(0x18b))/0x7)+-parseInt(p(0x19c))/0x8+parseInt(p(0x195))/0x9*(parseInt(p(0x17d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd7f8d));function a15c(){const v=['argv','100srBAwd','(((.+)+)+)+$','findSubCommand','toString','splice','build','24197BlVPVr','invokeMeteorCommand','create','app.tar.gz','search',').\x20Update?','maka\x20build','fsi','10576153ppkixj','6792012pxArAz','--release','confirm','3616870eJsooo','2qIeZtp','Aborted.','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','maka\x20build:docker','join','1015317FUTMmh','6oZppUp','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','forEach','--force','update','apply','2228944gfbQxy','getProjectMeteorVersion','error','This\x20project\x27s\x20meteor\x20version\x20(','pathFromProject','maka\x20build\x20<opts>','force','getGlobalMeteorVersion',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','2764230yTHEDD'];a15c=function(){return v;};return a15c();}const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x180)]()[r(0x187)]('(((.+)+)+)+$')[r(0x180)]()['constructor'](a15a)[r(0x187)](r(0x17e));});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x17b;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a15s(0x185)]({'name':a15s(0x182),'usage':a15s(0x1a1),'validOpts':[a15s(0x1a2),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x197),'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':[a15s(0x189),a15s(0x193)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x17f)](c);if(d)this['runSubCommand'](c,a,b);else{const f=b['force'];if(!f){const i=this[t(0x18a)][t(0x1a3)](),j=this[t(0x18a)][t(0x19d)](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x18e)](t(0x19f)+j+t(0x1a4)+i+t(0x188));l&&this[t(0x18a)]['invokeMeteorCommand'](t(0x19a),[t(0x18d),i]);}}const g=[this[t(0x18a)][t(0x1a0)]({'pathParts':[t(0x182)]})]['concat'](process[t(0x17c)]['slice'](0x3)),h=a15e[t(0x194)](this[t(0x18a)][t(0x1a0)]({}),t(0x182),t(0x186));if(a15f['existsSync'](h)){const m=f??await Actions[t(0x18e)](t(0x192));if(!m)throw Log[t(0x19e)](t(0x191));}g[t(0x198)]((n,o)=>{const u=t;n===u(0x199)&&g[u(0x181)](o,0x2);}),this[t(0x18a)][t(0x184)]('build',g);}}catch(n){console['error'](n),process['exit'](0x0);}});export default BuildCommand;
1
+ const a15s=a15d;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a15d(a,b);}function a15c(){const v=['--release','4523088tNClVB','slice','search','82EKGZPo','constructor','(((.+)+)+)+$','maka\x20build\x20<opts>','apply','11pIXACX',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','maka\x20build:docker','--force','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','18XVuvUM','forEach','splice','invokeMeteorCommand','391612GaXkSc','29262pptIfP','error','3LGHsOL','getGlobalMeteorVersion','Aborted.','concat','780ZTuQBu','fsi','1572HtcUSX','This\x20project\x27s\x20meteor\x20version\x20(','9336243UUzMYn','argv','\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','confirm','6650020NzWfhI','runSubCommand','pathFromProject','build','13443YFXzgo','toString','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','force','1020204hBurmd'];a15c=function(){return v;};return a15c();}(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x1fb))/0x1*(parseInt(p(0x204))/0x2)+-parseInt(p(0x1eb))/0x3*(-parseInt(p(0x1ff))/0x4)+-parseInt(p(0x1ef))/0x5*(-parseInt(p(0x1e9))/0x6)+parseInt(p(0x1f3))/0x7+-parseInt(p(0x201))/0x8*(-parseInt(p(0x1e4))/0x9)+-parseInt(p(0x1f7))/0xa*(-parseInt(p(0x1df))/0xb)+parseInt(p(0x1f1))/0xc*(-parseInt(p(0x1e8))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xb72e1));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x1fc)]()[r(0x203)](r(0x1dc))['toString']()[r(0x205)](a15a)[r(0x203)]('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a15s(0x1fa),'usage':a15s(0x1dd),'validOpts':[a15s(0x1fe),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0x1e3),'mustBeInMakaProject':!![],'description':a15s(0x1f5),'examples':['maka\x20build',a15s(0x1e1)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this['findSubCommand'](c);if(d)this[t(0x1f8)](c,a,b);else{const f=b[t(0x1fe)];if(!f){const i=this['fsi'][t(0x1ec)](),j=this[t(0x1f0)]['getProjectMeteorVersion'](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0x1f6)](t(0x1f2)+j+t(0x1e0)+i+').\x20Update?');l&&this[t(0x1f0)][t(0x1e7)]('update',[t(0x200),i]);}}const g=[this[t(0x1f0)][t(0x1f9)]({'pathParts':['build']})][t(0x1ee)](process[t(0x1f4)][t(0x202)](0x3)),h=a15e['join'](this[t(0x1f0)]['pathFromProject']({}),t(0x1fa),'app.tar.gz');if(a15f['existsSync'](h)){const m=f??await Actions[t(0x1f6)](t(0x1fd));if(!m)throw Log['error'](t(0x1ed));}g[t(0x1e5)]((n,o)=>{const u=t;n===u(0x1e2)&&g[u(0x1e6)](o,0x2);}),this[t(0x1f0)][t(0x1e7)]('build',g);}}catch(n){console[t(0x1ea)](n),process['exit'](0x0);}});export default BuildCommand;
@@ -1 +1 @@
1
- const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=-parseInt(F(0x110))/0x1*(parseInt(F(0x127))/0x2)+-parseInt(F(0x12c))/0x3*(parseInt(F(0xf0))/0x4)+parseInt(F(0xfe))/0x5+parseInt(F(0xf9))/0x6*(parseInt(F(0x119))/0x7)+-parseInt(F(0xee))/0x8+parseInt(F(0x121))/0x9*(parseInt(F(0xea))/0xa)+parseInt(F(0x10b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x77d9e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0xff)]()[H(0x11d)]('(((.+)+)+)+$')[H(0xff)]()[H(0xf7)](a16a)[H(0x11d)](H(0xfb));});a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xd8;let f=c[d];return f;},a16d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a16I(0x132)]({'name':a16I(0xdf),'aliases':['d'],'usage':'maka\x20build:docker\x20<opts>','validOpts':[a16I(0xe6),a16I(0xf2),a16I(0xe5)],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':'\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','mustBeInMakaProject':!![],'examples':[a16I(0xe0),a16I(0x124)]},async function(a,b){const J=a16I;try{const c=await this['fsi'][J(0xdc)](),d=await this[J(0x11b)][J(0x11e)](),f=await this[J(0x11b)][J(0xe3)]();f===J(0x12e)&&(Log[J(0x108)](J(0xfc)),process[J(0x109)](0x1));const g=process[J(0xec)]===J(0x12d)?J(0x10c):J(0xdb),h=this['fsi']['pathFromProject']({}),i=a16f[J(0xeb)](h,J(0xd8));if(!this[J(0x11b)][J(0x11a)](i)){const s=a16h['findGenerator'](J(0x11c));s&&await s[J(0x115)](['dockerfile'],{'cwd':h,'config':d});}const j=this[J(0x11b)][J(0x106)]('docker');if(!j){const t=a16h['findGenerator'](J(0x111));if(t){await t[J(0x115)]([J(0xdf)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x11b)]['getConfigPath']('docker'),v=a16f[J(0xeb)](u,J(0x131));await this[J(0x11b)]['template']({'srcPath':J(0x104),'destPath':v,'context':{'app':d[J(0x116)],'isDocker':![]},'config':d});const w=a16f['join'](u,J(0x107));await this[J(0x11b)][J(0xef)]({'srcPath':'config/docker-compose.yaml','destPath':w,'context':{'app':d[J(0x116)],'appFileCase':paramCase(d[J(0x116)])},'config':d});}}if(this[J(0x11b)][J(0x11a)](c['cert'])){const x=this[J(0x11b)][J(0x10f)](a16f[J(0xeb)]('config',J(0xdf),'_keys'));!x&&a16g['mkdirSync'](a16f[J(0xeb)](J(0x111),J(0xdf),'_keys')),a16g[J(0xdd)](c[J(0xf4)],a16f[J(0xeb)](h,'config',J(0xdf),J(0x112),J(0x103)));}const k=[J(0x11f),a16f[J(0xeb)](this[J(0x11b)][J(0xe9)](),J(0x11f)),J(0x125),J(0x10e)],l=this[J(0x11b)][J(0xf8)](a16f[J(0xeb)](this[J(0x11b)][J(0xf5)]({}),J(0xda),J(0xe2),J(0x123))),m=l[J(0xfd)]>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0xe7)]:await Actions[J(0xf6)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[J(0xfa)]?d['serverPort']:await Actions[J(0xf6)](J(0x117));if(y[J(0xfd)]==0x0||z[J(0xfd)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z==J(0xe1)?J(0x105):J(0x102);k[J(0x122)](J(0x128)+A+J(0x10d)+y+':'+z);if(!d['serverName']&&!d[J(0xfa)]){const B=await Actions['confirm'](J(0x126));B&&(this[J(0x11b)][J(0x12b)]('serverName',y),this[J(0x11b)][J(0x12b)](J(0xfa),z),Log['notice'](J(0xe4)+a16f['join'](J(0x129),'config.json')));}}const n=a16f[J(0xeb)](this[J(0x11b)][J(0xf5)]({}),J(0x11f),J(0x12f));if(a16g[J(0xed)](n)){const C=await Actions['confirm'](J(0x101)),D=C;D&&(execSync(g+J(0x113),{'cwd':this[J(0x11b)][J(0xde)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[J(0xeb)]('\x20'),{'cwd':this[J(0x11b)][J(0xde)](),'stdio':'inherit'}));}else execSync(g+J(0x113),{'cwd':this[J(0x11b)]['findAppDirectory'](),'stdio':J(0xf1)}),Log['notice'](J(0x100)+k[J(0xeb)]('\x20')),execSync(g+'\x20'+k[J(0xeb)]('\x20'),{'cwd':this[J(0x11b)][J(0xde)](),'stdio':J(0x120)});const o=this['fsi'][J(0xf5)]({});let p=J(0xd9)+paramCase(d[J(0x116)])+J(0x12a);b[J(0xf2)]&&(p=J(0xd9)+b['tag']);Log['notice']('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log['notice'](J(0xf3)+p),Log['notice'](J(0x130)+o);const q=b['debug']?J(0x10a):'',r=J(0x114)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x120)}),Log['notice'](J(0x118));}catch(E){console[J(0x108)](E),process['exit'](0x0);}},a16e);function a16c(){const K=['docker\x20build\x20--build-arg\x20NODE_VERSION=','invoke','appName','Mobile\x20server\x20port:\x20','Try\x20\x27maka\x20run:docker\x27','2373651qzkEDu','isFile','fsi','dockerfile','search','getProjectConfig','build','inherit','324wvcMVS','push','platforms','maka\x20build:docker\x20--debug','--architecture','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','1495522GPGVsh','--server=','.maka',':latest','setProjectConfig','3zacRkq','win32','N/A','app.tar.gz','Docker\x20Context\x20Path:\x20','pm2.config.js','create','Dockerfile','-t\x20','app','meteor','getGlobalConfig','copyFileSync','findAppDirectory','docker','maka\x20build:docker\x20--tag','443','.meteor','getProjectsMeteorNodeVersion','Stored\x20server\x20config\x20to\x20','debug','force','serverName','apply','findProjectDirectory','106790nVOebU','join','platform','existsSync','598688niOMBD','template','933748CVFNvv','ignore','tag','Tagging\x20Docker\x20Image:\x20','cert','pathFromProject','ask','constructor','readFileLines','6NiAffr','serverPort','(((.+)+)+)+$','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).','length','2459690KWnEAX','toString','[*]\x20maka\x20','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','http','cert.pem','config/pm2.config.js','https','checkConfigExists','docker-compose.yaml','error','exit','--progress=plain\x20--no-cache','3646159PQGatl','meteor.bat','://','os.linux.x86_64','isDirectory','1agnKJh','config','_keys','\x20npm\x20install\x20--save'];a16c=function(){return K;};return a16c();}
1
+ const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0xa8))/0x1+parseInt(F(0x79))/0x2+-parseInt(F(0x74))/0x3+parseInt(F(0x8e))/0x4*(-parseInt(F(0xaf))/0x5)+-parseInt(F(0xb7))/0x6+-parseInt(F(0xac))/0x7+parseInt(F(0x80))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x60ddb));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a['toString']()['search']('(((.+)+)+)+$')['toString']()[H(0x96)](a16a)[H(0x7f)]('(((.+)+)+)+$');});a16a();import a16e from'./build.js';import a16f from'path';function a16c(){const K=['config.json','-t\x20','invoke','://','443','getGlobalConfig','error','exit','getConfigPath','\x20npm\x20install\x20--save','202052tRhgcN','config','maka\x20build:docker\x20<opts>','apply','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','docker\x20build\x20--build-arg\x20NODE_VERSION=','pathFromProject','[*]\x20maka\x20','constructor','os.linux.x86_64','findProjectDirectory','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).','inherit','platform','getProjectConfig','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','create','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','Dockerfile','docker-compose.yaml','mkdirSync','isFile','getProjectsMeteorNodeVersion','findAppDirectory','--progress=plain\x20--no-cache','fsi','505200ixWLAL','confirm','https','readFileLines','3615920vKdIOg','Try\x20\x27maka\x20run:docker\x27','cert','10gUzgUM','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','join','cert.pem','findGenerator','config/pm2.config.js','appName','build','518160MoHpGO','template','Stored\x20server\x20config\x20to\x20','.meteor','notice','http','_keys','Tagging\x20Docker\x20Image:\x20',':latest','copyFileSync','docker','platforms','app.tar.gz','pm2.config.js','dockerfile','tag','--architecture','1348113fHbuod','ask','config/docker-compose.yaml','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','existsSync','37518UKDlin','serverPort','ignore','debug','meteor.bat','maka\x20build:docker\x20--tag','search','8208968ozfLsr','length','meteor','serverName'];a16c=function(){return K;};return a16c();}import a16g from'fs';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x6f;let f=c[d];return f;},a16d(a,b);}import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a16I(0x9e)]({'name':'docker','aliases':['d'],'usage':a16I(0x90),'validOpts':['force',a16I(0x72),a16I(0x7c)],'shortDesc':a16I(0x9f),'description':'\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','mustBeInMakaProject':!![],'examples':[a16I(0x7e),'maka\x20build:docker\x20--debug']},async function(a,b){const J=a16I;try{const c=await this['fsi'][J(0x89)](),d=await this['fsi'][J(0x9c)](),f=await this[J(0xa7)][J(0xa4)]();f==='N/A'&&(Log['error'](J(0x99)),process[J(0x8b)](0x1));const g=process[J(0x9b)]==='win32'?J(0x7d):J(0x82),h=this[J(0xa7)][J(0x94)]({}),i=a16f[J(0xb1)](h,J(0xa0));if(!this[J(0xa7)][J(0xa3)](i)){const s=a16h[J(0xb3)](J(0x71));s&&await s['invoke']([J(0x71)],{'cwd':h,'config':d});}const j=this[J(0xa7)]['checkConfigExists'](J(0xc1));if(!j){const t=a16h[J(0xb3)](J(0x8f));if(t){await t[J(0x86)]([J(0xc1)],{'cwd':h,'config':d,'isDocker':!![]});const u=this['fsi'][J(0x8c)]('docker'),v=a16f[J(0xb1)](u,J(0x70));await this[J(0xa7)][J(0xb8)]({'srcPath':J(0xb4),'destPath':v,'context':{'app':d['appName'],'isDocker':![]},'config':d});const w=a16f[J(0xb1)](u,J(0xa1));await this[J(0xa7)][J(0xb8)]({'srcPath':J(0x76),'destPath':w,'context':{'app':d[J(0xb5)],'appFileCase':paramCase(d[J(0xb5)])},'config':d});}}if(this[J(0xa7)][J(0xa3)](c[J(0xae)])){const x=this[J(0xa7)]['isDirectory'](a16f[J(0xb1)](J(0x8f),J(0xc1),'_keys'));!x&&a16g[J(0xa2)](a16f[J(0xb1)](J(0x8f),J(0xc1),J(0xbd))),a16g[J(0xc0)](c[J(0xae)],a16f[J(0xb1)](h,J(0x8f),'docker',J(0xbd),J(0xb2)));}const k=[J(0xb6),a16f['join'](this[J(0xa7)][J(0x98)](),J(0xb6)),J(0x73),J(0x97)],l=this[J(0xa7)][J(0xab)](a16f[J(0xb1)](this[J(0xa7)][J(0x94)]({}),'app',J(0xba),J(0xc2))),m=l['length']>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0x83)]:await Actions[J(0x75)](J(0xb0)),z=d[J(0x7a)]?d[J(0x7a)]:await Actions['ask']('Mobile\x20server\x20port:\x20');if(y['length']==0x0||z[J(0x81)]==0x0)throw J(0x77);const A=z==J(0x88)?J(0xaa):J(0xbc);k['push']('--server='+A+J(0x87)+y+':'+z);if(!d[J(0x83)]&&!d[J(0x7a)]){const B=await Actions['confirm'](J(0x9d));B&&(this[J(0xa7)]['setProjectConfig'](J(0x83),y),this[J(0xa7)]['setProjectConfig']('serverPort',z),Log[J(0xbb)](J(0xb9)+a16f['join']('.maka',J(0x84))));}}const n=a16f[J(0xb1)](this['fsi']['pathFromProject']({}),J(0xb6),J(0x6f));if(a16g[J(0x78)](n)){const C=await Actions[J(0xa9)](J(0x92)),D=C;D&&(execSync(g+'\x20npm\x20install\x20--save',{'cwd':this['fsi'][J(0xa5)](),'stdio':J(0x7b)}),execSync(g+'\x20\x20'+k[J(0xb1)]('\x20'),{'cwd':this[J(0xa7)][J(0xa5)](),'stdio':J(0x9a)}));}else execSync(g+J(0x8d),{'cwd':this[J(0xa7)][J(0xa5)](),'stdio':'ignore'}),Log[J(0xbb)](J(0x95)+k[J(0xb1)]('\x20')),execSync(g+'\x20'+k['join']('\x20'),{'cwd':this[J(0xa7)][J(0xa5)](),'stdio':J(0x9a)});const o=this[J(0xa7)][J(0x94)]({});let p='-t\x20'+paramCase(d[J(0xb5)])+J(0xbf);b['tag']&&(p=J(0x85)+b[J(0x72)]);Log[J(0xbb)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log['notice'](J(0xbe)+p),Log[J(0xbb)]('Docker\x20Context\x20Path:\x20'+o);const q=b[J(0x7c)]?J(0xa6):'',r=J(0x93)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x9a)}),Log[J(0xbb)](J(0xad));}catch(E){console[J(0x8a)](E),process['exit'](0x0);}},a16e);