4240 Commits

Author SHA1 Message Date
Philipp Muens
21a68b07e3 Rename Resource and Method CloudFormation resource names
Rename the resource names to that they stick to the overalls used convention.
2016-06-15 12:25:44 +02:00
Philipp Muens
911998c61d Fix describe block in compileResources test 2016-06-15 12:25:44 +02:00
Philipp Muens
834c17ea50 Remove functionName from compiled RestApi resource 2016-06-15 12:25:44 +02:00
Philipp Muens
fe5edf1a2b Add compileMethods functionality 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
d69a4ba711 more tests for resources 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
7dfd5d938a added tests for compile resources 2016-06-15 12:25:44 +02:00
Philipp Muens
01afb8aefe Fix typo in JSON.stringify usages 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
8031d07d1b added compileResources logic for apig 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
e96130ff2e testing compileResources 2016-06-15 12:25:44 +02:00
Philipp Muens
89083dac56 Add plugin to Plugins.json file 2016-06-15 12:25:44 +02:00
Philipp Muens
1d631e0133 Add validateInput method
Add a validation step so that validation checks don't need to be rewritten in
each compile method / step.
2016-06-15 12:25:44 +02:00
Philipp Muens
83a5851473 Add compileStage functionality 2016-06-15 12:25:44 +02:00
Philipp Muens
f4afca3c32 Add compileDeployment functionality 2016-06-15 12:25:44 +02:00
Philipp Muens
6a00a36cfa Fix typo in test naming 2016-06-15 12:25:44 +02:00
Philipp Muens
5007f3b564 Add compileRestApi functionality 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
b4f0c80bc1 removed basePathMapping 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
6cd49bf117 basic structure for apig event 2016-06-15 12:25:44 +02:00
Philipp Muens
c9fb51e70a Fix custom resource merging from serverless.yaml file 2016-06-15 11:34:45 +02:00
Philipp Muens
633420d9c5 Remove invalid Resources definitions for AWS 2016-06-15 11:34:45 +02:00
Philipp Muens
75b9c617af Update serverless.yaml file
Fix indentations and fix naming in resources section so that it matches the recent changes.
2016-06-15 11:34:45 +02:00
Philipp Muens
8ea06053a2 Fix s3 is undefined bug 2016-06-14 20:03:56 +02:00
Eslam A. Hefnawy
bb22303e4c commented out schedule from serverless.yaml 2016-06-10 16:57:48 +02:00
Eslam A. Hefnawy
e56f61718e added Event to resource names 2016-06-10 16:57:48 +02:00
Eslam A. Hefnawy
4060ad6507 removed options obj 2016-06-10 16:55:14 +02:00
Eslam A. Hefnawy
11a5507f31 removed outdated comment 2016-06-10 16:55:14 +02:00
Eslam A. Hefnawy
f23ae6933f added schedule event 2016-06-10 16:55:14 +02:00
Philipp Muens
1403088b29 Append namespaces to s3 event resources 2016-06-10 14:09:15 +02:00
Philipp Muens
df25e0af48 Remove namespacing of S3 event bucket
This way users are not confused if they won't find their bucket because of the
namespacing that was previously applied.
2016-06-10 11:21:18 +02:00
Philipp Muens
60e7be805d Rename "awsRemoveResources" to "awsRemove"
This way it's less verbose and sticks to the overall used naming convention.
2016-06-10 10:40:37 +02:00
Philipp Muens
a3a7440c32 Add check if S3 events are available
Add this check so that the forEach loop won't fail if the user has not setup an
S3 event.
2016-06-10 09:05:42 +02:00
Philipp Muens
e72208bf48 Comment out S3 events in serverless.yaml
Comment out the S3 events as they may clash because of naming problems
(name should be globally unique) with the generated S3 buckets when running
integration tests in parallel.
2016-06-10 08:45:26 +02:00
Philipp Muens
24b90af89d Fix linting errors and reduce ratchet to 100 2016-06-10 07:43:37 +02:00
Philipp Muens
82cbccf6b0 Refactor plugins to use new constructor based options passing 2016-06-09 20:09:50 +02:00
Philipp Muens
e563a071b5 Add option definitions to core plugins 2016-06-09 19:43:13 +02:00
Philipp Muens
2e701c1d4d Fix failing tests for "create" plugin 2016-06-09 19:43:13 +02:00
Eslam A. Hefnawy
4d9e236b7e added global rejection handler 2016-06-09 19:43:13 +02:00
Philipp Muens
09b701fa40 Start updating of create plugin to work with recent changes in PluginManager 2016-06-09 19:43:13 +02:00
Philipp Muens
c2fc2adead Refactor help displaying in CLI
Extract the help displaying from processInput to an own method.
2016-06-09 19:43:13 +02:00
Philipp Muens
db9dfdde45 Replace error throwing with Serverless error class 2016-06-09 19:43:13 +02:00
Philipp Muens
90c4feeca5 Add validateOptions functionality in PluginManager class 2016-06-09 19:43:13 +02:00
Philipp Muens
40f6dab03f Move options passing to the plugins constructor 2016-06-09 19:43:13 +02:00
Philipp Muens
85c603dbb0 Refactor CLI class usage
So that the loaded plugins are not passed into the constructor. This is a preparation
for the upcoming task to move the options to the plugins constructor rather than the hook
which is run.
2016-06-09 19:39:57 +02:00
Philipp Muens
67ba3f06ae Add merging of generated resources to the aws.Resources section (in service)
This way the plugin simply adds the Resources to the CloudFormation template in the
compileEvents lifecycle. The deploy plugin will use this resources to update the stack later on.
This removes the dependency between the awsCompileS3Events plugin and the deploy plugin
as the awsCompileS3Events plugin simply adds the resources to the section and forgets about it.
2016-06-09 19:08:54 +02:00
Philipp Muens
8e2dcf4c15 Add implementation for awsCompileS3Events plugin 2016-06-09 19:07:47 +02:00
Philipp Muens
2fe214b999 Add fix to check for the correct resource (should be a function) 2016-06-09 17:10:42 +02:00
Philipp Muens
a851b58c7f Fix failing "awsDeploy" hook promise chain tests 2016-06-09 16:33:00 +02:00
Philipp Muens
fb4d31215b Fix linting and naming issues 2016-06-09 16:08:52 +02:00
Philipp Muens
739e5d46a8 Add fix for update function in "updateStack"
This fix makes it possible to iterate over the service.resources.aws.Resources
property to attach the zipFileKey to the corresponding function resource.
Furthermore this fix removes the tight coupling between the "awsDeploy" and "awsCompileFunctions"
plugins.
2016-06-09 15:10:46 +02:00
Philipp Muens
cc258c8398 Uppercase "AwsDeploy" class name
So that it sticks to the overall naming convention.
2016-06-09 14:34:08 +02:00
Philipp Muens
a7a4d55b6a Attach compiled functions to the aws.Resources object
This way the "compileFunctions" plugin has no direct dependency to the "awsDeploy"
plugin.
2016-06-09 14:05:00 +02:00