-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
61 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
async function run(context) { | ||
async function run (context) { | ||
// print out the help message of your plugin | ||
context.print.info('When mplementing this provider, the resources will be created into LocalStack'); | ||
context.print.info('When mplementing this provider, the resources will be created into LocalStack') | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
async function run(context) { | ||
async function run (context) { | ||
// print out the version of your plugin package | ||
context.print.info('version command to be implemented.'); | ||
context.print.info('version command to be implemented.') | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'InternalOnlyPostEnvRemove'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'PostCodegenModels'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'PostEnvAdd'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'PostInit'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'PostPull'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'PostPush'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'PostPreCodegenModels'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
const eventName = 'PreInit'; | ||
const yesno = require('yesno'); | ||
const patches = require("../patches") | ||
const yesno = require('yesno') | ||
const patches = require('../patches') | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
const options = context.parameters.options | ||
const inputValue = options['use-localstack'] | ||
let doPatch = false | ||
if (inputValue == undefined){ | ||
if (inputValue === undefined) { | ||
doPatch = await yesno({ | ||
question: 'Do you want to create the project in LocalStack? [y/N]', | ||
defaultValue: "n" | ||
}); | ||
}else if (['true', 'yes'].includes(inputValue.toLowerCase())){ | ||
question: 'Do you want to create the project in LocalStack? [y/N]', | ||
defaultValue: 'n' | ||
}) | ||
} else if (['true', 'yes'].includes(inputValue.toLowerCase())) { | ||
doPatch = true | ||
}else if (['false', 'no'].includes(inputValue.toLowerCase())){ | ||
} else if (['false', 'no'].includes(inputValue.toLowerCase())) { | ||
doPatch = false | ||
}else{ | ||
context.print.error(`ERROR: "${value}" is an invalid value for parameter --use-localstack. Please use true or false`) | ||
} else { | ||
context.print.error(`ERROR: "${inputValue}" is an invalid value for parameter --use-localstack. Please use true or false`) | ||
} | ||
|
||
if (doPatch == true){ | ||
if (doPatch === true) { | ||
patches.patchEverything(context) | ||
} | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const eventName = 'PostPull'; | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
const yesno = require('yesno'); | ||
const patches = require("../patches") | ||
const yesno = require('yesno') | ||
const patches = require('../patches') | ||
|
||
async function run(context, args) { | ||
async function run (context, args) { | ||
const options = context.parameters.options | ||
const inputValue = options['use-localstack'] | ||
let doPatch = false | ||
if (inputValue == undefined){ | ||
if (inputValue === undefined) { | ||
doPatch = await yesno({ | ||
question: 'Do you want to create the resource in LocalStack? [y/N]', | ||
defaultValue: "n" | ||
}); | ||
}else if (['true', 'yes'].includes(inputValue.toLowerCase())){ | ||
question: 'Do you want to create the resource in LocalStack? [y/N]', | ||
defaultValue: 'n' | ||
}) | ||
} else if (['true', 'yes'].includes(inputValue.toLowerCase())) { | ||
doPatch = true | ||
}else if (['false', 'no'].includes(inputValue.toLowerCase())){ | ||
} else if (['false', 'no'].includes(inputValue.toLowerCase())) { | ||
doPatch = false | ||
}else{ | ||
context.print.error(`ERROR: "${value}" is an invalid value for parameter --use-localstack. Please use true or false`) | ||
} else { | ||
context.print.error(`ERROR: "${inputValue}" is an invalid value for parameter --use-localstack. Please use true or false`) | ||
} | ||
|
||
if (doPatch == true){ | ||
if (doPatch === true) { | ||
patches.patchEverything(context) | ||
} | ||
} | ||
|
||
module.exports = { | ||
run, | ||
}; | ||
run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters