@maka/maka-cli 4.5.14 → 4.5.16
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.
- package/bundle/obf/package.json +5 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/door.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/items.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/player.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/puzzles.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/room.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/rooms.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/eventBus.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +5 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
3
|
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
-
"version": "4.5.
|
|
4
|
+
"version": "4.5.16",
|
|
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.",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@aws-sdk/client-ec2": "^3.329.0",
|
|
40
40
|
"@aws-sdk/client-ecr": "^3.332.0",
|
|
41
|
+
"blessed": "^0.1.81",
|
|
41
42
|
"change-case": "^4.1.2",
|
|
42
43
|
"cli-color": "^2.0.3",
|
|
43
44
|
"cli-cursor": "^4.0.0",
|
|
@@ -59,10 +60,12 @@
|
|
|
59
60
|
"single-line-log2": "^1.1.3",
|
|
60
61
|
"slash": "^5.1.0",
|
|
61
62
|
"spawn-args": "0.2.0",
|
|
63
|
+
"uuid": "^9.0.0",
|
|
62
64
|
"xtend": "^4.0.2"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
67
|
"@aws-sdk/types": "^3.329.0",
|
|
68
|
+
"@types/blessed": "^0.1.22",
|
|
66
69
|
"@types/chai": "^4.3.5",
|
|
67
70
|
"@types/change-case": "^2.3.1",
|
|
68
71
|
"@types/cli-color": "^2.0.2",
|
|
@@ -79,6 +82,7 @@
|
|
|
79
82
|
"@types/node": "^20.1.1",
|
|
80
83
|
"@types/react": "^18.2.6",
|
|
81
84
|
"@types/react-dom": "^18.2.4",
|
|
85
|
+
"@types/uuid": "^9.0.2",
|
|
82
86
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
83
87
|
"@typescript-eslint/parser": "^5.59.5",
|
|
84
88
|
"aws-sdk": "^2.1376.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0t=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0xa1))/0x1+-parseInt(p(0xdb))/0x2*(-parseInt(p(0xee))/0x3)+parseInt(p(0xb4))/0x4*(-parseInt(p(0xd5))/0x5)+parseInt(p(0x9c))/0x6+-parseInt(p(0xc8))/0x7*(-parseInt(p(0xd9))/0x8)+-parseInt(p(0xd8))/0x9*(-parseInt(p(0xd4))/0xa)+-parseInt(p(0xaa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x788b9));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0xab)]()[r(0xb5)](r(0xbe))['toString']()[r(0xa5)](a0a)['search'](r(0xbe));});a0a();import a0e from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x9c;let f=c[d];return f;},a0d(a,b);}import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const E=['Description','maxOptsLength','murder','notice','roles','function','play','validateMakaProject','Alias','There\x20is\x20no\x20Meteor\x20application\x20here','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','includes','minArgLength','21chMwrh','addCommand','Too\x20few\x20options','create','_handler','proCommands','1735998aaeHgY','keys','exit','split','tableList','128610ywRtzd','To\x20use\x20this\x20command,\x20\x22','splice','run','constructor','Too\x20many\x20options','getPro','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','apply','9481054wEHEMS','toString','aliases','shortDesc','Command\x20requires\x20a\x20handler\x20function','disableAuthCheck','validateMeteorInstall','options','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','singleLicense','500SbbqMD','search','_commands','fsi','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Command\x20requires\x20a\x20name','usage','parent','Command\x20not\x20found','minOptsLength','(((.+)+)+)+$','deploy','header','length','error','call','match','To\x20use\x20these\x20pro\x20flags,\x20\x22','findSubCommand','addCommand\x20requires\x20a\x20Command\x20instance','191142SORQGg','number','invoke','maxArgLength','Too\x20many\x20arguments','push','Command.create\x20requires\x20a\x20handler\x20function!','help','name','findCommand','join','mustBeInMakaProject','20GZpwOo','25125DFdeFl','find','validateParams','3317886nDQZHl','72cWDvlT','validateMakaSubscription','240002JSvJom','proFlags','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','generate','domainLicense','mustHaveMeteorInstalled'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{['options'];['_commands'];constructor(a,b){const s=a0d;super();if(!a)throw new Error(s(0xb2));if(!a[s(0xd0)])throw new Error(s(0xb9));if(typeof b!==s(0xe6))throw new Error(s(0xae));this['options']=Object['assign']({},a),this[s(0xd0)]=this[s(0xb1)][s(0xd0)],this[s(0xb6)]=[],this[s(0xf2)]=b['bind'](this);}static[a0t(0xf1)](a,b,c){const u=a0t;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==u(0xe6))throw new Error(u(0xce));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[u(0xb1)]?.['name']}),c[u(0xef)](d),d;}[a0t(0xef)](a){const v=a0t;if(!(a instanceof Command))throw new Error(v(0xc7));this[v(0xb6)][v(0xcd)](a);}async[a0t(0xda)](a,b){const w=a0t,c=this[w(0xd1)](a[0x0]);if(c){const d=c?.[w(0xd0)]||a[0x0],e=c?.[w(0xbb)]||'',f=c?.[w(0xb1)];if(f[w(0xaf)])return;const g=a[0x0],h=Object[w(0x9d)](b),i=await this[w(0xb7)][w(0xa7)]();!i&&(Log[w(0xc2)](w(0xeb)),process[w(0x9e)](0x1));const j=i?.[w(0xf3)][w(0xec)](d)||i?.[w(0xf3)][w(0xec)](e),k=i?.[w(0xe5)][w(0xec)](w(0xb3))||i?.[w(0xe5)][w(0xec)](w(0xdf)),l=!k;if(j&&l)throw w(0xa2)+a[0x0]+w(0xb8);if(h[w(0xc1)]>0x0){const m=i?.[w(0xdc)]['filter'](n=>h['includes'](n));if(m&&m[w(0xc1)]>0x0&&l)throw w(0xc5)+m?.[w(0xd2)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g===w(0xbf)){const n=await this['fsi']['getPro'](),o=n?.['proCommands']['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0xa2)+a[0x0]+w(0xb8);}}}async['run'](a,b){const x=a0t;try{a=a||[],b=b||{};try{await this[x(0xda)](a,b);}catch(c){Log[x(0xc2)](c),process[x(0x9e)](0x0);}await this[x(0xca)](a,b);}catch(d){process[x(0x9e)](0x1);}}async['invoke'](a,b){const y=a0t,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0xb1)];try{if(this[y(0xb1)][y(0xd0)]!==y(0xde)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0xc1)]===0x0)&&this['_commands'][y(0xc1)]>=0x0;if(f&&b[y(0xcf)]){if(this[y(0xb6)][y(0xc1)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0xcf)]){if(this['options'][y(0xd3)]){const g=this[y(0xe8)]();if(!g)throw new MustBeInProjectError();}if(this[y(0xb1)][y(0xe0)]){const h=this[y(0xb0)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0xb1)][y(0xed)]===y(0xc9)){if(a[y(0xc1)]<this['options'][y(0xed)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[y(0xb1)]['maxArgLength']===y(0xc9)){if(a[y(0xc1)]>=this[y(0xb1)][y(0xcb)]){Log['error'](y(0xcc));throw new UsageError();}}if(typeof this[y(0xb1)][y(0xbd)]===y(0xc9)){if(Object['keys'](b)[y(0xc1)]<this[y(0xb1)][y(0xbd)]){Log[y(0xc2)](y(0xf0));throw new UsageError();}}if(typeof this[y(0xb1)][y(0xe2)]==='number'){if(Object[y(0x9d)](b)[y(0xc1)]>=this[y(0xb1)][y(0xe2)]){Log[y(0xc2)](y(0xa6));throw new UsageError();}}}}this[y(0xd7)](a,b,this[y(0xb1)]),_prevCmd=a[0x0];}await this[y(0xf2)][y(0xc3)](this,a,b);}catch(i){Log[y(0xba)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0xe4)]('Sub-Commands:'),this[y(0xa0)](this['_commands']),Log[y(0xc0)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(i instanceof MustBeInProjectError)Log[y(0xc2)](y(0xdd));else{if(i instanceof NoMeteorFoundError)Log[y(0xc2)](y(0xa8)),Log[y(0xe4)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(i instanceof NoMeteorAppFoundError)Log[y(0xc2)](y(0xea));else throw i;}}}process['exit'](0x1);}}['tableList'](a){const z=a0t,b=new a0e({});b['push'](['Name',z(0xe9),z(0xe1)]),a['sort']()['forEach'](c=>{const A=z;c[A(0xd0)]!==A(0xe3)&&c[A(0xd0)]!==A(0xe7)&&b['push']([c[A(0xd0)],c[A(0xac)](),c[A(0xad)]()]);}),Log['bright'](b[z(0xab)]());}[a0t(0xd1)](a){const B=a0t;return this[B(0xb6)][B(0xd6)](b=>b[B(0xc4)](a));}[a0t(0xc6)](a){const C=a0t,b=a?.[C(0x9f)](':');if(b)return a=b[0x0],this[C(0xd1)](a);else return;}async['runSubCommand'](a,b,c){const D=a0t;try{const d=a[D(0x9f)](':');a=d[0x0];const f=d[0x1];f&&b[D(0xa3)](0x0,0x0,f);const g=this[D(0xd1)](a);if(g)await g[D(0xa4)](b,c);else throw D(0xbc);}catch(h){throw Log[D(0xc2)](h);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x121))/0x1*(-parseInt(f(0x11d))/0x2)+-parseInt(f(0x128))/0x3+-parseInt(f(0x12b))/0x4+parseInt(f(0x11e))/0x5*(-parseInt(f(0x129))/0x6)+-parseInt(f(0x12a))/0x7*(-parseInt(f(0x125))/0x8)+parseInt(f(0x122))/0x9*(parseInt(f(0x123))/0xa)+parseInt(f(0x124))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x7b1be));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x120)]()[h(0x127)](h(0x126))[h(0x120)]()[h(0x11f)](a1a)['search'](h(0x126));});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';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x11c;var f=c[d];return f;},a1d(a,b);}import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';function a1c(){var i=['1eoKPXe','3321xJKmop','24790xnaIxr','16340225ebMKpR','488ijIdJq','(((.+)+)+)+$','search','1862319qPdUop','1395006mNlVFR','8687bNefIf','2763880rAIVVM','apply','854858TTlfKv','5CULPtU','constructor','toString'];a1c=function(){return i;};return a1c();}import'./proxy.js';import'./lint.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a2c(){var i=['2779XYZfjB','171678OLmNuH','(((.+)+)+)+$','3344424oyEDgv','9jhTrwF','15880oroshx','3277284EadOoj','931968slqyRu','search','4oluODk','323270dcrbME','apply','15040010BPGeEz'];a2c=function(){return i;};return a2c();}(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x17e))/0x1*(-parseInt(f(0x179))/0x2)+parseInt(f(0x184))/0x3+-parseInt(f(0x183))/0x4+parseInt(f(0x17a))/0x5+parseInt(f(0x180))/0x6+parseInt(f(0x17d))/0x7*(-parseInt(f(0x182))/0x8)+-parseInt(f(0x181))/0x9*(-parseInt(f(0x17c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x76a69));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a['toString']()['search'](h(0x17f))['toString']()['constructor'](a2a)[h(0x185)](h(0x17f));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x179;var f=c[d];return f;},a2d(a,b);}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d
|
|
1
|
+
const a3i=a3d;(function(a,b){const f=a3d,c=a();while(!![]){try{const d=-parseInt(f(0xd1))/0x1+parseInt(f(0xc2))/0x2*(-parseInt(f(0xc5))/0x3)+parseInt(f(0xc9))/0x4*(-parseInt(f(0xcf))/0x5)+parseInt(f(0xce))/0x6*(-parseInt(f(0xd4))/0x7)+parseInt(f(0xcd))/0x8*(-parseInt(f(0xc0))/0x9)+parseInt(f(0xd2))/0xa+-parseInt(f(0xc6))/0xb*(-parseInt(f(0xd5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x5b43a));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a3d;if(c){const e=c[g(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const h=a3d;return a3a['toString']()[h(0xc3)](h(0xca))[h(0xc7)]()[h(0xc1)](a3a)[h(0xc3)](h(0xca));});function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xbf;let f=c[d];return f;},a3d(a,b);}a3a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a3c(){const k=['toString','error','256852xIgYQt','(((.+)+)+)+$','apply','\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','501856xQtbFQ','1173462LYQTEQ','45wwDNPW','maka\x20aws:<sub-command>','705652AIvGRQ','4604140IveUIw','Sub\x20Command\x20not\x20found','7CDEAMK','108nMSCln','runSubCommand','81wGMRzK','constructor','895990QUWMwT','search','create','3BbyaKm','2939607SvBZrL'];a3c=function(){return k;};return a3c();}import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3i(0xc4)]({'name':'aws','usage':a3i(0xd0),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a3i(0xcc)},async function(a,b){const j=a3i,c=a[0x0],d=this['findSubCommand'](c);if(d)this[j(0xbf)](c,a,b);else{Log[j(0xc8)](j(0xd3));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4ag=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x11f;let f=c[d];return f;},a4d(a,b);}(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x17b))/0x1+-parseInt(ae(0x147))/0x2+parseInt(ae(0x185))/0x3*(parseInt(ae(0x15c))/0x4)+parseInt(ae(0x136))/0x5*(-parseInt(ae(0x13c))/0x6)+-parseInt(ae(0x17f))/0x7*(parseInt(ae(0x172))/0x8)+parseInt(ae(0x145))/0x9*(parseInt(ae(0x121))/0xa)+-parseInt(ae(0x13b))/0xb*(-parseInt(ae(0x129))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x4e821));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const af=a4d;return a4a[af(0x126)]()['search'](af(0x130))[af(0x126)]()['constructor'](a4a)[af(0x173)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';function a4c(){const at=['split','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','252421jygyws','ID:\x20','unlinkSync','env','7pbgAIj','1:1','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Web\x20App','Desc','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','228BhlaoO','\x20:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Instance\x20Count:\x20','Create\x20new\x20AWS\x20instance','Remove\x20the\x20security\x20group\x20','string','environment','date','60USogOb','\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','**\x20Available\x20AMIs\x20**','ec2createSG','\x20SGID:\x20','toString','log','Key-Pair:\x20','8076hhpIME','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Subnet:\x20','notice','\x20DESCRIPTION:\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','desc','(((.+)+)+)+$','cider','bright','Remove\x20the\x20keypair\x20','amazon','parse','10XXSgxT','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','sort','deleteKeyPair','exit','10483wlVyRZ','1179498gayLqg','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','success','ImageID:','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','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','Setting\x20AMI\x20ID\x20to\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','220122XfUSpm','Security\x20Group:\x20','296180voYgNL','t3.micro','deleteSecurityGroup','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','maka\x20aws:create-instance\x20--env\x20dev','error','\x20AZONE:\x20','Name','Security\x20Group\x20Name:\x20[','No\x20instance\x20has\x20been\x20created.','Setting\x20SG\x20ID\x20to:\x20','22,80,443','createKeyPair','ec2describeKeys','\x20SG\x20NAME:\x20','created-by','alias','maka\x20aws:create-instance\x20<opts>','Setting\x20the\x20key-pair\x20to:\x20','confirm','ask','27532yfxyze','getProjectConfig','sgId','push','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Creating\x20user\x20data\x20file\x20in\x20','number','name','subnetId','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','readFileSync','ec2create','amiId','getConfigFromShorthand','fsi','cidr','getTime','user-data','build\x20on\x20','Setting\x20Subnet\x20ID\x20to\x20','\x20SUBNETID:\x20','1567832AtoOri','search','join','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','forEach','chooseVPC'];a4c=function(){return at;};return a4c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':'create-instance','aliases':['ci'],'usage':a4ag(0x158),'examples':[a4ag(0x14b),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a4ag(0x17e)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ag(0x189),'description':a4ag(0x122)},async function(a,b){const ah=a4ag;try{const c=this[ah(0x16b)][ah(0x15d)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x16b)][ah(0x16a)](b[ah(0x17e)]),i=this[ah(0x16b)]['getConfigPath'](h),j=g+'-'+h,k=await Actions['ask']('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x15a)](ah(0x187),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x153)]({'env':h});r=y,s=z,Log[ah(0x13e)](ah(0x159)+r);}else try{Log[ah(0x12c)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ah(0x154)]({'suggestion':A}),C=await Actions['ask'](ah(0x165))||'-1';if(parseInt(C)<0x0){Log[ah(0x14c)](ah(0x142)),Log[ah(0x12c)](ah(0x150));return;}B?.['forEach'](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x163)],Log['success'](ai(0x159)+r));});}catch(D){Log[ah(0x14c)](D);}l=await d['chooseVPC']();const t=await Actions[ah(0x15a)](ah(0x141),!![]);let u;if(t){const E=l===''?await d[ah(0x177)]():l;u=await Actions[ah(0x15b)](ah(0x14f)+k+']')||k;const F=await Actions['ask'](ah(0x181))||ah(0x152),G=F['split'](',');await d[ah(0x124)]({'description':ah(0x182),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x12c)]('**\x20Available\x20Security\x20Groups\x20**'),J['forEach'](function(L){const aj=ah;L[aj(0x163)]===u?Log[aj(0x12c)](aj(0x17c)+L['id']+aj(0x155)+L[aj(0x163)]+aj(0x125)+L['sgId']):Log[aj(0x132)]('ID:\x20'+L['id']+aj(0x155)+L[aj(0x163)]+aj(0x125)+L[aj(0x15e)]);});const K=await Actions[ah(0x15b)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ah(0x126)]();J[ah(0x176)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L['sgId'],Log['success'](ak(0x151)+m+'\x0a'));});}else m=I,Log[ah(0x13e)](ah(0x151)+m+'\x0a');if(m==='')throw Log[ah(0x14c)](ah(0x160));}catch(L){Log[ah(0x14c)](L);}try{const M=0x7e6;Log[ah(0x12c)](ah(0x123));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ah(0x14a))[ah(0x126)](),O=JSON[ah(0x135)](N),P=[],Q=[];O[ah(0x176)](function(S){const al=ah;if(S[al(0x157)]===al(0x134)){const T=S[al(0x183)][al(0x178)](al(0x16f))[0x1];P[al(0x15f)]({'amiId':S['ID'],'desc':S[al(0x183)],'date':T});}}),P[ah(0x138)](function(S,T){const am=ah;return new Date(T[am(0x120)])[am(0x16d)]()-new Date(S[am(0x120)])['getTime']();}),P['forEach'](function(S,T){const an=ah;Q['push']({'id':T,'amiId':S['amiId'],'desc':S[an(0x12f)]});}),Q[ah(0x176)](function(S){const ao=ah;console[ao(0x127)](ao(0x17c)+S['id']+'\x20AMIID:\x20'+S[ao(0x169)]+ao(0x12d)+S[ao(0x12f)]);});const R=await Actions[ah(0x15b)](ah(0x137))||'0';Q[ah(0x176)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S['amiId'],Log[ap(0x13e)](ap(0x143)+n+ap(0x186)+S[ap(0x12f)]));});if(n==='')throw Log[ah(0x14c)](ah(0x160));}catch(S){Log[ah(0x14c)](S);}try{Log[ah(0x12c)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x184))[ah(0x126)](),U=JSON[ah(0x135)](T),V=[];U[ah(0x176)](function(X,Y){const aq=ah;V[aq(0x15f)]({'id':Y,'cidr':X[aq(0x131)],'az':X['az'],'subnetId':X[aq(0x164)]});}),V[ah(0x176)](function(X){const ar=ah;console['log'](ar(0x17c)+X['id']+'\x20CIDR:\x20'+X[ar(0x16c)]+ar(0x14d)+X['az']+ar(0x171)+X[ar(0x164)]);});const W=await Actions[ah(0x15b)](ah(0x166))||'0';V['forEach'](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x164)],Log[as(0x13e)](as(0x170)+p));});if(p==='')throw Log[ah(0x14c)](ah(0x160));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x15b)](ah(0x140))||ah(0x180),Z=Y[ah(0x178)](':')[0x0],a0=Y[ah(0x178)](':')[0x1];typeof parseInt(Z)===ah(0x162)&&typeof parseInt(a0)===ah(0x162)&&Log['success'](ah(0x13d)+Z+':'+a0);}catch(a1){Log[ah(0x14c)](a1);}try{const a2=await Actions['ask']('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ah(0x148);typeof a2===ah(0x18b)&&(o=a2);}catch(a3){Log[ah(0x14c)](a3);}let x;try{const a4=await Actions[ah(0x15a)](ah(0x144),![]);a4&&(x=a4f[ah(0x174)](i,ah(0x16e)),Log['notice'](ah(0x161)+x),await this[ah(0x16b)]['createFile']({'filePath':x,'data':''}),await Actions[ah(0x15a)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ah(0x14c)](a5);}try{const a6=JSON[ah(0x135)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ah(0x175))[ah(0x126)]())[0x0]['subnet'];Log['notice'](ah(0x13f)+n),Log['notice'](ah(0x188)+v+':'+w),Log['notice']('Instace\x20Type:\x20'+o),Log['notice'](ah(0x128)+r),Log['notice'](ah(0x146)+m),Log[ah(0x12c)](ah(0x12b)+a6);if(x){Log[ah(0x12c)]('User\x20Data:'+x);const a8=a4g[ah(0x167)](x);Log['notice'](a8);}const a7=await Actions[ah(0x15a)](ah(0x17a));if(a7){const a9=await d[ah(0x168)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x156),'Value':'maka-cli'},{'Key':ah(0x11f),'Value':h},{'Key':ah(0x14e),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x13e)](ah(0x179)),Log[ah(0x132)](ah(0x12e)));}else{Log[ah(0x12c)](ah(0x12a));const aa=await Actions[ah(0x15a)](ah(0x133)+r+'\x20?',!![]);aa&&(d[ah(0x139)](r),f['isFile'](s)&&a4g[ah(0x17d)](s));const ab=await Actions[ah(0x15a)](ah(0x18a)+m+'\x20?',!![]);ab&&d[ah(0x149)](m);}}catch(ac){console[ah(0x127)](ac),Log[ah(0x14c)](ac);}}catch(ad){console['error'](ad),process[ah(0x13a)](0x0);}},a4e);
|
|
1
|
+
const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=parseInt(ae(0x1cd))/0x1+parseInt(ae(0x21d))/0x2*(-parseInt(ae(0x218))/0x3)+-parseInt(ae(0x1bc))/0x4+parseInt(ae(0x1d7))/0x5*(parseInt(ae(0x207))/0x6)+parseInt(ae(0x1d0))/0x7*(-parseInt(ae(0x1ee))/0x8)+-parseInt(ae(0x1cb))/0x9+parseInt(ae(0x220))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x6aa1f));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x20a)]()[ag(0x202)](ag(0x1dc))[ag(0x20a)]()[ag(0x1e1)](a4a)[ag(0x202)](ag(0x1dc));});function a4c(){const au=['Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','22,80,443','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','12EgzLCI','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka-cli','toString','forEach','bright','unlinkSync','**\x20Available\x20Security\x20Groups\x20**','name','Setting\x20SG\x20ID\x20to:\x20','\x20:\x20','maka\x20aws:create-instance\x20--env\x20dev','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','**\x20Available\x20AMIs\x20**','number','success','Remove\x20the\x20security\x20group\x20','4449gjsIab','Remove\x20the\x20keypair\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','isFile','date','1170FYbfEG','push','ec2create','9011440PNikNG','subnet','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','notice','ImageID:','desc','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getSecurityGroups','cidr','1734756hhQlfy','*\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','ec2createSG','Would\x20you\x20like\x20to\x20include\x20user\x20data?','ask','deleteSecurityGroup','string','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Create\x20new\x20AWS\x20instance','join','split','cider','sgId','Instace\x20Type:\x20','apply','537840sHKswv','maka\x20aws:ci\x20--env\x20prod','309626ujfeUe','sort','subnetId','33019bEbDUq','Name','ID:\x20','Creating\x20user\x20data\x20file\x20in\x20','**\x20Available\x20Subnets\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','environment','1974580kBhIqo','\x20CIDR:\x20','user-data','amazon','error','(((.+)+)+)+$','1:1','\x20SUBNETID:\x20','\x20AZONE:\x20','User\x20Data:','constructor','getTime','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','build\x20on\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','confirm','\x20SGID:\x20','Setting\x20AMI\x20ID\x20to\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Security\x20Group\x20Name:\x20[','createKeyPair','fsi','t3.micro','344cYpJJi','alias','**\x20Available\x20key-pairs\x20**','readFileSync','Desc','Instance\x20Count:\x20','create','exit','Setting\x20the\x20key-pair\x20to:\x20','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=*','Security\x20Group:\x20','maka\x20aws:create-instance\x20<opts>','Setting\x20Subnet\x20ID\x20to\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','log','create-instance','parse','env','\x20DESCRIPTION:\x20','search','chooseVPC'];a4c=function(){return au;};return a4c();}a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a4d(a,b);}import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ah(0x1f4)]({'name':a4ah(0x1fe),'aliases':['ci'],'usage':a4ah(0x1f9),'examples':[a4ah(0x212),a4ah(0x1cc)],'mustBeInMakaProject':!![],'requiredOpts':[a4ah(0x200)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4ah(0x1c4),'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(0x1ec)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1ec)]['getConfigFromShorthand'](b[ai(0x200)]),i=this[ai(0x1ec)]['getConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1c0)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1e6)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1eb)]({'env':h});r=y,s=z,Log[ai(0x216)](ai(0x1f6)+r);}else try{Log[ai(0x1b6)](ai(0x1f0));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask'](ai(0x1fb))||'-1';if(parseInt(C)<0x0){Log[ai(0x1db)](ai(0x1d5)),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x20f)],Log[aj(0x216)](aj(0x1f6)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x203)]();const t=await Actions[ai(0x1e6)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0x1c0)](ai(0x1ea)+k+']')||k;const F=await Actions[ai(0x1c0)](ai(0x1fc))||ai(0x205),G=F[ai(0x1c6)](',');await d[ai(0x1be)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1ba)](u);if(I===''){Log[ai(0x1b6)](ai(0x20e)),J['forEach'](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x1d2)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x20f)]+ak(0x1e7)+L[ak(0x1c8)]):Log[ak(0x20c)](ak(0x1d2)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x20f)]+ak(0x1e7)+L['sgId']);});const K=await Actions[ai(0x1c0)](ai(0x1c3)+H+']\x20')||H[ai(0x20a)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x216)](al(0x210)+m+'\x0a'));});}else m=I,Log[ai(0x216)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1db)](ai(0x208));}catch(L){Log[ai(0x1db)](L);}try{const M=0x7e6;Log['notice'](ai(0x214));const N=execSync(ai(0x1f7)+M+ai(0x1bd))[ai(0x20a)](),O=JSON[ai(0x1ff)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x1ef)]===am(0x1da)){const T=S[am(0x1f2)][am(0x1c6)](am(0x1e4))[0x1];P[am(0x21e)]({'amiId':S['ID'],'desc':S[am(0x1f2)],'date':T});}}),P[ai(0x1ce)](function(S,T){const an=ai;return new Date(T[an(0x21c)])['getTime']()-new Date(S[an(0x21c)])[an(0x1e2)]();}),P[ai(0x20b)](function(S,T){const ao=ai;Q[ao(0x21e)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0x1b8)]});}),Q[ai(0x20b)](function(S){const ap=ai;console[ap(0x1fd)]('ID:\x20'+S['id']+'\x20AMIID:\x20'+S['amiId']+ap(0x201)+S[ap(0x1b8)]);});const R=await Actions[ai(0x1c0)](ai(0x1b9))||'0';Q[ai(0x20b)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x216)](aq(0x1e8)+n+aq(0x211)+S[aq(0x1b8)]));});if(n==='')throw Log['error'](ai(0x208));}catch(S){Log[ai(0x1db)](S);}try{Log[ai(0x1b6)](ai(0x1d4));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x20a)](),U=JSON['parse'](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x21e)]({'id':Y,'cidr':X[ar(0x1c7)],'az':X['az'],'subnetId':X[ar(0x1cf)]});}),V['forEach'](function(X){const as=ai;console[as(0x1fd)]('ID:\x20'+X['id']+as(0x1d8)+X[as(0x1bb)]+as(0x1df)+X['az']+as(0x1de)+X[as(0x1cf)]);});const W=await Actions[ai(0x1c0)](ai(0x222))||'0';V[ai(0x20b)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1cf)],Log['success'](at(0x1fa)+p));});if(p==='')throw Log[ai(0x1db)](ai(0x208));}catch(X){Log[ai(0x1db)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1c0)](ai(0x21a))||ai(0x1dd),Z=Y[ai(0x1c6)](':')[0x0],a0=Y[ai(0x1c6)](':')[0x1];typeof parseInt(Z)===ai(0x215)&&typeof parseInt(a0)===ai(0x215)&&Log[ai(0x216)](ai(0x206)+Z+':'+a0);}catch(a1){Log[ai(0x1db)](a1);}try{const a2=await Actions[ai(0x1c0)](ai(0x1e9))||ai(0x1ed);typeof a2===ai(0x1c2)&&(o=a2);}catch(a3){Log['error'](a3);}let x;try{const a4=await Actions[ai(0x1e6)](ai(0x1bf),![]);a4&&(x=a4f[ai(0x1c5)](i,ai(0x1d9)),Log['notice'](ai(0x1d3)+x),await this[ai(0x1ec)]['createFile']({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0x1db)](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x20a)]())[0x0][ai(0x221)];Log[ai(0x1b6)](ai(0x1b7)+n),Log['notice'](ai(0x1f3)+v+':'+w),Log[ai(0x1b6)](ai(0x1c9)+o),Log[ai(0x1b6)]('Key-Pair:\x20'+r),Log['notice'](ai(0x1f8)+m),Log[ai(0x1b6)]('Subnet:\x20'+a6);if(x){Log['notice'](ai(0x1e0)+x);const a8=a4g[ai(0x1f1)](x);Log[ai(0x1b6)](a8);}const a7=await Actions[ai(0x1e6)](ai(0x1e5));if(a7){const a9=await d[ai(0x21f)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x209)},{'Key':ai(0x1d6),'Value':h},{'Key':ai(0x1d1),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x216)](ai(0x204)),Log[ai(0x20c)](ai(0x213)));}else{Log['notice'](ai(0x1e3));const aa=await Actions[ai(0x1e6)](ai(0x219)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x21b)](s)&&a4g[ai(0x20d)](s));const ab=await Actions[ai(0x1e6)](ai(0x217)+m+'\x20?',!![]);ab&&d[ai(0x1c1)](m);}}catch(ac){console[ai(0x1fd)](ac),Log[ai(0x1db)](ac);}}catch(ad){console[ai(0x1db)](ad),process[ai(0x1f5)](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(
|
|
1
|
+
function a5c(){const l=['(((.+)+)+)+$','getConfigFromShorthand','fsi','24PMknkt','create-key-pair','env','exit','1864037ELvVSq','toString','ckp','46047TYQQdC','4127048GjMGzB','54uvcKQW','740281axVINH','apply','400965zpQKxO','createKeyPair','search','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','\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','6450370ryOSJd','error','maka\x20aws:create-key-pair\x20--env\x20prod','create','9kdIUJd','maka\x20aws:ckp\x20--env\x20prod','constructor','6242814KlyzYz','maka\x20aws:create-key-pair\x20<opts>'];a5c=function(){return l;};return a5c();}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0xc8))/0x1+parseInt(g(0xc7))/0x2*(-parseInt(g(0xc5))/0x3)+parseInt(g(0xc6))/0x4+parseInt(g(0xca))/0x5+-parseInt(g(0xd6))/0x6+parseInt(g(0xc2))/0x7*(parseInt(g(0xbe))/0x8)+-parseInt(g(0xd3))/0x9*(parseInt(g(0xcf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x8690c));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xc9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0xc3)]()[i(0xcc)](i(0xbb))['toString']()[i(0xd5)](a5a)[i(0xcc)]('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xba;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a5j(0xd2)]({'name':a5j(0xbf),'aliases':[a5j(0xc4)],'usage':a5j(0xba),'examples':[a5j(0xd1),a5j(0xd4)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0xc0)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0xcd),'description':a5j(0xce)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0xbd)][k(0xbc)](b[k(0xc0)]);c[k(0xcb)]({'env':d});}catch(f){console[k(0xd0)](f),process[k(0xc1)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(
|
|
1
|
+
const a6p=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0x1a9))/0x1*(parseInt(m(0x19c))/0x2)+-parseInt(m(0x1a3))/0x3+-parseInt(m(0x188))/0x4+-parseInt(m(0x1a0))/0x5+-parseInt(m(0x19b))/0x6+-parseInt(m(0x191))/0x7*(-parseInt(m(0x18f))/0x8)+parseInt(m(0x18a))/0x9*(parseInt(m(0x1a6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x6bbb6));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0x190)]()[o(0x1a2)](o(0x18d))[o(0x190)]()[o(0x189)](a6a)['search'](o(0x18d));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x188;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';function a6c(){const s=['constructor','261fnEelM','exit','List\x20is\x20not\x20all\x20numbers','(((.+)+)+)+$','apply','41176RQKFFa','toString','84iLgArx','error','create-security-group','getProjectConfig','csg','chooseVPC','ask','maka\x20aws\x20create-security-group','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','split','4219074htrcUF','2VLwCMz','fsi','maka\x20aws:create-secuirty-group','forEach','2749085TKlqcU','maka\x20aws:csg','search','2047917tynMqj','name','create','675420ojNJqq','match','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','570737fLnrzP','857256rcAtHd'];a6c=function(){return s;};return a6c();}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(0x1a5)]({'name':a6p(0x193),'aliases':[a6p(0x195)],'usage':a6p(0x198),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6p(0x1a8),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a6p(0x19e),a6p(0x1a1)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this[q(0x19d)][q(0x194)](),{appName:f}=d,g=await c[q(0x196)](),h=b[q(0x1a4)]?b[q(0x1a4)]:''+f,i=await Actions[q(0x197)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x197)](q(0x199))||'22,80,443',k=j[q(0x19a)](',');k[q(0x19f)](l=>{const r=q;if(!l[r(0x1a7)](/^\d+$/))throw r(0x18c);}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x192)](l),process[q(0x18b)](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=parseInt(f(0x1e9))/0x1+-parseInt(f(0x1e1))/0x2+-parseInt(f(0x1e4))/0x3+parseInt(f(0x1eb))/0x4+-parseInt(f(0x1d9))/0x5+-parseInt(f(0x1e2))/0x6*(-parseInt(f(0x1db))/0x7)+-parseInt(f(0x1dd))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xbd7da));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x1da)]()[h(0x1dc)](h(0x1e8))[h(0x1da)]()[h(0x1ea)](a7a)[h(0x1dc)]('(((.+)+)+)+$');});a7a();function a7c(){const k=['constructor','3021796PWWGjl','1747735xFylCl','toString','7nmozfv','search','2961064kCEcmM','apply','exit','create','1107844yDVUtI','6153528IElvvK','ec2describeInstances','3518856CmCDrZ','maka\x20aws:di','maka\x20aws:describe-instances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','(((.+)+)+)+$','1441671VlfiOc'];a7c=function(){return k;};return a7c();}import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x1e0)]({'name':'describe-instances','aliases':['di'],'usage':a7i(0x1e6),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':['maka\x20aws:describe-instances',a7i(0x1e5)],'description':a7i(0x1e7)},async function(){const j=a7i;try{const a=new AWS();a[j(0x1e3)]();}catch(b){console['error'](b),process[j(0x1df)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a8i=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x1e1))/0x1+-parseInt(f(0x1e8))/0x2+parseInt(f(0x1e2))/0x3+-parseInt(f(0x1e0))/0x4+-parseInt(f(0x1e7))/0x5*(parseInt(f(0x1ef))/0x6)+-parseInt(f(0x1de))/0x7+-parseInt(f(0x1e9))/0x8*(-parseInt(f(0x1ea))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x23eb9));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a8d;if(c){const e=c[g(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x1ec)]()[h(0x1ee)](h(0x1e4))[h(0x1ec)]()[h(0x1ed)](a8a)['search'](h(0x1e4));});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1de;let f=c[d];return f;},a8d(a,b);}a8a();import a8e from'./aws.command.js';function a8c(){const k=['(((.+)+)+)+$','apply','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','5MUpxXK','251218QRNacq','752hQmePb','62847nbItdz','ec2describeKeys','toString','constructor','search','472332DuvylR','maka\x20aws:dkp','1722084gjHtKc','maka\x20aws:describe-key-pairs','784096QNPtdh','88443cyqdfF','676611RAofAK','describe-key-pairs'];a8c=function(){return k;};return a8c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8i(0x1e3),'aliases':['dkp'],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8i(0x1e6),'examples':[a8i(0x1df),a8i(0x1f0)]},async function(){const j=a8i;try{const a=new AWS();a[j(0x1eb)]();}catch(b){console['error'](b),process['exit'](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9o=a9d;(function(a,b){const l=a9d,c=a();while(!![]){try{const d=parseInt(l(
|
|
1
|
+
const a9o=a9d;function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xda;let f=c[d];return f;},a9d(a,b);}(function(a,b){const l=a9d,c=a();while(!![]){try{const d=parseInt(l(0xfc))/0x1*(-parseInt(l(0xf9))/0x2)+parseInt(l(0xda))/0x3*(parseInt(l(0xfe))/0x4)+-parseInt(l(0xdc))/0x5+-parseInt(l(0xfd))/0x6+parseInt(l(0x100))/0x7*(parseInt(l(0xe7))/0x8)+-parseInt(l(0xe3))/0x9*(-parseInt(l(0xfa))/0xa)+-parseInt(l(0xf4))/0xb*(-parseInt(l(0xf5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xb60b1));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a9d;if(c){const e=c[m(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const n=a9d;return a9a['toString']()[n(0xec)](n(0xed))[n(0xf1)]()['constructor'](a9a)[n(0xec)](n(0xed));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a9c(){const s=['That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','notice','sgId','dsg','search','(((.+)+)+)+$','bright','maka\x20aws:delete-sg','\x20SG\x20NAME:\x20','toString','name','isMakaProject','994543zNFOeP','324PQJfxo','exit','Deleting\x20a\x20','delete-security-group','4SbuHbo','222200nIZQgk','success','513837yzktaa','8759826NuPQNK','12TyJSOf','Not\x20deleting\x20secuirty\x20group','679DxZfQB','Deleted\x20','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','appName','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ID:\x20','707901dquGaO','\x20SGID:\x20','4934935QIGuhf','ask','deleteSecurityGroup','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','maka\x20aws:dsg','getSecurityGroups','includes','324OZitak','forEach','confirm','apply','22376uwthIR'];a9c=function(){return s;};return a9c();}Command['create']({'name':a9o(0xf8),'aliases':[a9o(0xeb)],'usage':a9o(0xef),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9o(0x102),'examples':['maka\x20aws:delete-sg',a9o(0xe0)]},async function(){const p=a9o;try{const a=new AWS(),b=new FSI(),c=b[p(0xf3)]();let d='';if(c){const j=b['getProjectConfig']();d=j[p(0x103)];}const {sgList:f}=await a[p(0xe1)]();f[p(0xe4)](function(k){const q=p;c&&k[q(0xf2)][q(0xe2)](d)?Log[q(0xe9)](q(0x105)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+'\x20SGID:\x20'+k['sgId']):Log[q(0xee)]('ID:\x20'+k['id']+q(0xf0)+k['name']+q(0xdb)+k[q(0xea)]);});let g='';const h=await Actions[p(0xdd)](p(0xdf));f[p(0xe4)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0xea)]);});if(!g)throw Log['error'](p(0xe8));const i=await Actions[p(0xe5)](p(0xf7)+g+p(0x104),![]);i?(await a[p(0xde)](g),Log[p(0xfb)](p(0x101)+g)):Log['error'](p(0xff)),process[p(0xf6)](0x0);}catch(k){process[p(0xf6)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x122))/0x1+-parseInt(f(0x11e))/0x2+-parseInt(f(0x126))/0x3+-parseInt(f(0x10c))/0x4*(parseInt(f(0x113))/0x5)+parseInt(f(0x117))/0x6+-parseInt(f(0x124))/0x7+parseInt(f(0x11b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x43767));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x116)]()[h(0x128)](h(0x112))['toString']()['constructor'](a10a)[h(0x128)](h(0x112));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x10f)]({'name':a10i(0x118),'aliases':[a10i(0x11c)],'usage':a10i(0x120),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x119),'examples':[a10i(0x120),a10i(0x10b)]},async function(){const j=a10i;try{const a=new AWS(),b=await a[j(0x11a)]();if(b?.[j(0x125)]===j(0x127)){const c=await Actions[j(0x10e)](j(0x115)+b[j(0x114)]+j(0x111));c&&b[j(0x110)]?a[j(0x121)]({'instanceId':b[j(0x110)]}):Log[j(0x10d)](j(0x123)+b[j(0x114)]+'\x20is\x20still\x20running.');}else Log[j(0x10d)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console['error'](d),process[j(0x11d)](0x0);}},a10e);function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x10b;let f=c[d];return f;},a10d(a,b);}function a10c(){const k=['reboot-instance','Reboot\x20an\x20EC2\x20instance','chooseInstance','9018312GXErWS','rbi','exit','461834osKzxJ','apply','maka\x20aws:reboot-instance','ec2rebootInstance','34234ipzciE','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','3383520SZtRuV','status','58680sFDQDS','running','search','maka\x20aws:rbi','143860zyyTpo','error','confirm','create','instanceId','\x20Ready?','(((.+)+)+)+$','25BGsWZm','name','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','toString','170796yhCOxO'];a10c=function(){return k;};return a10c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x132))/0x1+parseInt(h(0x12e))/0x2*(parseInt(h(0x122))/0x3)+-parseInt(h(0x11a))/0x4+parseInt(h(0x131))/0x5*(parseInt(h(0x110))/0x6)+-parseInt(h(0x12b))/0x7+-parseInt(h(0x130))/0x8+-parseInt(h(0x117))/0x9*(-parseInt(h(0x11e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xe1808));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a['toString']()[j(0x125)](j(0x124))[j(0x113)]()[j(0x126)](a11a)[j(0x125)](j(0x124));});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';import{Log}from'../../tools/log/log.class.js';function a11c(){const n=['63fGband','create','apply','4230312ARONHs','confirm','Deleting\x20a\x20','remove-key-pair','2396390VqhQJt','deleteKeyPair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','forEach','3081Tbtlxz','name','(((.+)+)+)+$','search','constructor','Deleted\x20','\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','maka\x20aws:remove-key-pair','maka\x20aws:rkp','8267903xCjgMY','exit','ec2describeKeys','1106SUuvFj','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','8951384odUXNQ','7620tEYCpd','1685362ixBhRu','1380QkLtmP','Not\x20deleting\x20keypair','ask','toString','success','error','rkp'];a11c=function(){return n;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x110;let f=c[d];return f;},a11d(a,b);}Command[a11k(0x118)]({'name':a11k(0x11d),'aliases':[a11k(0x116)],'usage':a11k(0x129),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x12f),'description':a11k(0x128),'examples':[a11k(0x129),a11k(0x12a)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0x12d)]();let c;const d=await Actions[l(0x112)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0x121)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x123)]);});if(!c)throw Log['error'](l(0x120));const f=await Actions[l(0x11b)](l(0x11c)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a[l(0x11f)](c),Log[l(0x114)](l(0x127)+c)):Log[l(0x115)](l(0x111)),process[l(0x12c)](0x0);}catch(g){process[l(0x12c)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=parseInt(l(0xf4))/0x1+-parseInt(l(0x10b))/0x2*(parseInt(l(0xf8))/0x3)+-parseInt(l(0xfd))/0x4*(parseInt(l(0x100))/0x5)+parseInt(l(0x106))/0x6+parseInt(l(0xec))/0x7*(-parseInt(l(0xfa))/0x8)+parseInt(l(0x10d))/0x9*(parseInt(l(0x10a))/0xa)+parseInt(l(0xf5))/0xb*(parseInt(l(0xe8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xd5633));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a['toString']()[n(0xf9)](n(0x104))[n(0xf7)]()['constructor'](a12a)['search']('(((.+)+)+)+$');});a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xe8;let f=c[d];return f;},a12d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';function a12c(){const q=['\x20IP\x20to\x20','sep','env','getConfigPath','host','\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','1656045NvVCXQ','550NfABvu','apply','toString','12zHzPCT','search','96TPyxuO','privateIp','sth','5029268AogPos','maka\x20aws:set-host\x20--env\x20dev','inherit','5LlSJzP','appName','ssh.json','chooseInstance','(((.+)+)+)+$','template','8549940JpKeMp','join','fsi','success','47910Ipcfgi','857430oksFZX','parse','1179rKiwQt','isFile','set-host','readFileSync','public','141552FjQnzP','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','cat\x20','config/ssh.json','263809eEqVey','\x0aSaved\x20host\x20'];a12c=function(){return q;};return a12c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12o(0x10f),'aliases':[a12o(0xfc)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a12o(0xf0)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a12o(0xf3),'examples':[a12o(0xfe),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a12o;try{const c=new AWS(),d=this[p(0x108)][p(0xf1)](b['env']),f=this[p(0x108)]['getProjectConfig'](),g=await c[p(0x103)](),h=a12e[p(0x107)](d,p(0x102));!this['fsi'][p(0x10e)](h)&&await this[p(0x108)][p(0x105)]({'srcPath':p(0xeb),'destPath':h,'context':{'app':f[p(0x101)]},'config':f});const i=JSON[p(0x10c)](a12f[p(0x110)](h,'utf8')),j=await Actions['ask']('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||p(0x111);if(j){if(j===p(0x111)||j==='private'){if(j===p(0x111))i[p(0xf2)]=g?.['publicIp'];else j==='private'&&(i[p(0xf2)]=g?.['privateIp']);}else throw p(0xe9);}else i[p(0xf2)]=g?.[p(0xfb)];a12f['writeFileSync'](a12e['join'](d,'ssh.json'),JSON['stringify'](i,null,0x2)),execSync(p(0xea)+a12e[p(0x107)](d,p(0x102)),{'stdio':p(0xff)}),Log[p(0x109)](p(0xed)+j+p(0xee)+d+a12e[p(0xef)]+p(0x102));}catch(k){console['error'](k),process['exit'](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13i=a13d;
|
|
1
|
+
const a13i=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x10c))/0x1*(parseInt(f(0x11d))/0x2)+-parseInt(f(0x10f))/0x3*(parseInt(f(0x106))/0x4)+parseInt(f(0x120))/0x5+parseInt(f(0x114))/0x6*(parseInt(f(0x109))/0x7)+parseInt(f(0x11e))/0x8+-parseInt(f(0x107))/0x9+parseInt(f(0x11c))/0xa*(parseInt(f(0x115))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xbce29));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a13d;if(c){const e=c[g(0x10b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const h=a13d;return a13a[h(0x11a)]()[h(0x118)](h(0x10a))[h(0x11a)]()[h(0x103)](a13a)[h(0x118)](h(0x10a));});a13a();import a13e from'./aws.command.js';function a13c(){const k=['66103vYKWWf','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','12699ovjtgB','terminate-instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','exit','maka\x20aws:ti','408CuEZqM','44TlDSkT','\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','chooseInstance','search','error','toString','name','4085520Gfdice','38KqLbxt','5927408diyBUI','running','7132135sfyTnc','confirm','\x20Ready?','constructor','instanceId','maka\x20aws:terminate-instance','1380YRaYoS','8217666brCKtd','ec2terminateInstance','61922NnIlFd','(((.+)+)+)+$','apply'];a13c=function(){return k;};return a13c();}import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x103;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a13i(0x110),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a13i(0x116),'examples':[a13i(0x105),a13i(0x113)]},async function(){const j=a13i;try{const a=new AWS(),b=await a[j(0x117)]();if(b?.[j(0x104)]&&b?.['status']===j(0x11f)){const c=await Actions[j(0x121)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+j(0x122));c?a[j(0x108)]({'instanceId':b[j(0x104)]}):Log[j(0x119)](j(0x10e)+b[j(0x11b)]+j(0x10d));}else Log[j(0x119)](j(0x111));}catch(d){console['error'](d),process[j(0x112)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a14d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a14d,c=a();while(!![]){try{var d=parseInt(f(0x15f))/0x1*(parseInt(f(0x168))/0x2)+-parseInt(f(0x16a))/0x3+parseInt(f(0x16c))/0x4*(-parseInt(f(0x166))/0x5)+parseInt(f(0x160))/0x6+-parseInt(f(0x164))/0x7+-parseInt(f(0x161))/0x8*(-parseInt(f(0x16b))/0x9)+parseInt(f(0x167))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x581d3));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a14d;if(c){var e=c[g(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var h=a14d;return a14a[h(0x162)]()[h(0x165)](h(0x163))['toString']()['constructor'](a14a)[h(0x165)](h(0x163));});function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x15f;var f=c[d];return f;},a14d(a,b);}a14a();import'./build.js';import'./docker.sub.cmd.js';function a14c(){var i=['135nqinRm','1410762WOpaxt','3970024HBZJPk','toString','(((.+)+)+)+$','1254309cVDbFK','search','535MXWSJv','6139390QOEoCx','1782oEMDVs','apply','1062045dGpJhX','9OrqYvi','21364WqAEPC'];a14c=function(){return i;};return a14c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15s=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=-parseInt(p(0x110))/0x1+-parseInt(p(0xfd))/0x2*(-parseInt(p(0x111))/0x3)+parseInt(p(0xf1))/0x4+parseInt(p(0xec))/0x5*(-parseInt(p(0x100))/0x6)+parseInt(p(0x103))/0x7*(parseInt(p(0x105))/0x8)+-parseInt(p(0x108))/0x9+parseInt(p(0x102))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x4cde8));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a15d;if(c){const e=c[q(0xf3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const r=a15d;return a15a[r(0x101)]()['search'](r(0xe6))[r(0x101)]()[r(0xf4)](a15a)['search'](r(0xe6));});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-0xe6;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';function a15c(){const v=['fsi','514184kMWLOk','--release','build','4298670DKjRQX','findSubCommand','app.tar.gz','maka\x20build:docker','existsSync','Aborted.','slice','argv','47912Bvfrgv','18mqyYhn','(((.+)+)+)+$',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','confirm','--force','error','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','30gialIv','join',').\x20Update?','pathFromProject','getProjectMeteorVersion','1861060yfdIko','concat','apply','constructor','force','getGlobalMeteorVersion','exit','maka\x20build\x20<opts>','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','create','update','invokeMeteorCommand','12484pVQvho','debug','This\x20project\x27s\x20meteor\x20version\x20(','525792jRaZIK','toString','3492890qGSnMw','56uEPuKu'];a15c=function(){return v;};return a15c();}const BuildCommand=Command[a15s(0xfa)]({'name':a15s(0x107),'usage':a15s(0xf8),'validOpts':[a15s(0xf5),a15s(0xfe)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a15s(0xeb),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':['maka\x20build',a15s(0x10b)]},async function(a,b){const t=a15s;try{const c=a[0x0],d=this[t(0x109)](c);if(d)this['runSubCommand'](c,a,b);else{const f=b[t(0xf5)];if(!f){const i=this[t(0x104)][t(0xf6)](),j=this[t(0x104)][t(0xf0)](),k=a15g['gt'](i,j);if(k){const l=await Actions[t(0xe8)](t(0xff)+j+t(0xe7)+i+t(0xee));l&&this[t(0x104)][t(0xfc)](t(0xfb),[t(0x106),i]);}}const g=[this[t(0x104)]['pathFromProject']({'pathParts':[t(0x107)]})][t(0xf2)](process[t(0x10f)][t(0x10e)](0x3)),h=a15e[t(0xed)](this[t(0x104)][t(0xef)]({}),t(0x107),t(0x10a));if(a15f[t(0x10c)](h)){const m=f??await Actions['confirm'](t(0xf9));if(!m)throw Log[t(0xea)](t(0x10d));}g['forEach']((n,o)=>{const u=t;n===u(0xe9)&&g['splice'](o,0x2);}),this[t(0x104)]['invokeMeteorCommand'](t(0x107),g);}}catch(n){console[t(0xea)](n),process[t(0xf7)](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;function
|
|
1
|
+
const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x184))/0x1+-parseInt(F(0x182))/0x2*(-parseInt(F(0x158))/0x3)+-parseInt(F(0x13a))/0x4+-parseInt(F(0x144))/0x5*(-parseInt(F(0x166))/0x6)+parseInt(F(0x16d))/0x7+parseInt(F(0x142))/0x8+-parseInt(F(0x172))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xd88f6));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x141)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x167)]()[H(0x156)](H(0x138))[H(0x167)]()[H(0x17f)](a16a)[H(0x156)](H(0x138));});function a16c(){const K=['template','Dockerfile','docker-compose.yaml','fsi','https','apply','6293408BuZrTc',':latest','406240SfpwPx','error','maka\x20build:docker\x20--tag','os.linux.x86_64','setProjectConfig','dockerfile','--server=','isDirectory','notice','force','tag','findProjectDirectory','findAppDirectory','pathFromProject','mkdirSync','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','ask','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','search','config.json','18FiNPGT','appName','serverName','pm2.config.js','exit','\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','inherit','-t\x20','platform','debug','--progress=plain\x20--no-cache','443','_keys','getConfigPath','36fFpICH','toString','\x20npm\x20install\x20--save','maka\x20build:docker\x20--debug','copyFileSync','Tagging\x20Docker\x20Image:\x20','build','7834148VSJGiF','://','existsSync','Mobile\x20server\x20port:\x20','getGlobalConfig','12342114burvek','app.tar.gz','ignore','Stored\x20server\x20config\x20to\x20','length','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','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).','config/docker-compose.yaml','meteor.bat','invoke','getProjectConfig','http','N/A','constructor','win32','confirm','155126buwive','join','44156wFThHP','Try\x20\x27maka\x20run:docker\x27','.meteor','isFile','getProjectsMeteorNodeVersion','Docker\x20Context\x20Path:\x20','findGenerator','maka\x20build:docker\x20<opts>','docker\x20build\x20--build-arg\x20NODE_VERSION=','serverPort','--architecture','docker','cert.pem','(((.+)+)+)+$','checkConfigExists','2577944JZDGrU','config'];a16c=function(){return K;};return a16c();}a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x132;let f=c[d];return f;},a16d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'docker','aliases':['d'],'usage':a16I(0x132),'validOpts':[a16I(0x14d),a16I(0x14e),'debug'],'shortDesc':a16I(0x155),'description':a16I(0x15d),'mustBeInMakaProject':!![],'examples':[a16I(0x146),a16I(0x169)]},async function(a,b){const J=a16I;try{const c=await this[J(0x13f)][J(0x171)](),d=await this[J(0x13f)][J(0x17c)](),f=await this['fsi'][J(0x188)]();f===J(0x17e)&&(Log[J(0x145)](J(0x178)),process[J(0x15c)](0x1));const g=process[J(0x160)]===J(0x180)?J(0x17a):'meteor',h=this[J(0x13f)][J(0x151)]({}),i=a16f[J(0x183)](h,J(0x13d));if(!this['fsi']['isFile'](i)){const s=a16h[J(0x18a)](J(0x149));s&&await s[J(0x17b)](['dockerfile'],{'cwd':h,'config':d});}const j=this[J(0x13f)][J(0x139)](J(0x136));if(!j){const t=a16h[J(0x18a)]('config');if(t){await t[J(0x17b)]([J(0x136)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x13f)][J(0x165)](J(0x136)),v=a16f['join'](u,J(0x15b));await this[J(0x13f)][J(0x13c)]({'srcPath':'config/pm2.config.js','destPath':v,'context':{'app':d[J(0x159)],'isDocker':![]},'config':d});const w=a16f[J(0x183)](u,J(0x13e));await this[J(0x13f)][J(0x13c)]({'srcPath':J(0x179),'destPath':w,'context':{'app':d[J(0x159)],'appFileCase':paramCase(d[J(0x159)])},'config':d});}}if(this[J(0x13f)][J(0x187)](c['cert'])){const x=this['fsi'][J(0x14b)](a16f['join']('config',J(0x136),'_keys'));!x&&a16g[J(0x152)](a16f[J(0x183)](J(0x13b),J(0x136),J(0x164))),a16g[J(0x16a)](c['cert'],a16f[J(0x183)](h,J(0x13b),J(0x136),'_keys',J(0x137)));}const k=['build',a16f[J(0x183)](this[J(0x13f)][J(0x14f)](),'build'),J(0x135),J(0x147)],l=this[J(0x13f)]['readFileLines'](a16f[J(0x183)](this['fsi']['pathFromProject']({}),'app',J(0x186),'platforms')),m=l[J(0x176)]>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0x15a)]:await Actions[J(0x154)](J(0x153)),z=d[J(0x134)]?d[J(0x134)]:await Actions['ask'](J(0x170));if(y[J(0x176)]==0x0||z['length']==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z==J(0x163)?J(0x140):J(0x17d);k['push'](J(0x14a)+A+J(0x16e)+y+':'+z);if(!d[J(0x15a)]&&!d[J(0x134)]){const B=await Actions[J(0x181)](J(0x177));B&&(this[J(0x13f)][J(0x148)](J(0x15a),y),this[J(0x13f)]['setProjectConfig'](J(0x134),z),Log[J(0x14c)](J(0x175)+a16f['join']('.maka',J(0x157))));}}const n=a16f[J(0x183)](this[J(0x13f)][J(0x151)]({}),J(0x16c),J(0x173));if(a16g[J(0x16f)](n)){const C=await Actions[J(0x181)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),D=C;D&&(execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[J(0x13f)][J(0x150)](),'stdio':J(0x174)}),execSync(g+'\x20\x20'+k[J(0x183)]('\x20'),{'cwd':this[J(0x13f)]['findAppDirectory'](),'stdio':J(0x15e)}));}else execSync(g+J(0x168),{'cwd':this[J(0x13f)][J(0x150)](),'stdio':'ignore'}),Log[J(0x14c)]('[*]\x20maka\x20'+k[J(0x183)]('\x20')),execSync(g+'\x20'+k[J(0x183)]('\x20'),{'cwd':this[J(0x13f)][J(0x150)](),'stdio':J(0x15e)});const o=this['fsi'][J(0x151)]({});let p=J(0x15f)+paramCase(d[J(0x159)])+J(0x143);b[J(0x14e)]&&(p=J(0x15f)+b[J(0x14e)]);Log[J(0x14c)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log[J(0x14c)](J(0x16b)+p),Log[J(0x14c)](J(0x189)+o);const q=b[J(0x161)]?J(0x162):'',r=J(0x133)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':'inherit'}),Log[J(0x14c)](J(0x185));}catch(E){console['error'](E),process[J(0x15c)](0x0);}},a16e);
|