929 Commits

Author SHA1 Message Date
Eslam A. Hefnawy
ef2fffe130 refatored aws plugins structure 2016-06-16 21:24:09 +02:00
Philipp Muens
5007f3b564 Add compileRestApi functionality 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
f23ae6933f added schedule event 2016-06-10 16:55:14 +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
24b90af89d Fix linting errors and reduce ratchet to 100 2016-06-10 07:43:37 +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
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
Eslam A. Hefnawy
2709286f90 fixed tests for plugin manager 2016-06-09 18:41:09 +02:00
Philipp Muens
179e92cd01 Move "compileFunctions" into own plugin 2016-06-07 16:37:46 +02:00
Eslam A. Hefnawy
88cdbb39d4 check stack status for integration test 2016-06-06 15:43:08 +02:00
Eslam A. Hefnawy
aa228c832c integration tests are now seperate 2016-06-06 14:55:17 +02:00
Eslam A. Hefnawy
745cbaa131 added integration tests for service lifecycle 2016-06-06 14:09:50 +02:00
Philipp Muens
cc79161aa1 Rename invokeAws to awsInvoke
So that it sticks to the overall used plugin naming.
2016-06-05 20:49:15 +02:00
Philipp Muens
25f127517e Add scaffold for awsRemoveResources plugin
Add a basic scaffold to kickstart work on the awsRemoveResources plugin.
Refs #1228
2016-06-02 21:24:21 +02:00
Eslam A. Hefnawy
fd80e6df63 added invoke functionality/plugin 2016-06-02 15:07:35 +02:00
Philipp Muens
8e503bbc80 Rename removeResources to remove
Rename the plugin so that it can implement multiple remove actions (such as
"serverless remove resources", "serverless remove stage" etc.).
2016-06-02 08:58:53 +02:00
Philipp Muens
39f2cd148d Closes #1227 - Implement removeResources plugin
Implements the basic removeResources plugin which defines a
"removeResources" lifecycle hook.
Refs #1161
2016-06-02 07:49:43 +02:00
Eslam A. Hefnawy
0075e4d243 added extra test for awsDeploy 2016-06-01 16:58:11 +02:00
Philipp Muens
279b0d5a2d Add zipping files test for zipFiles functionality 2016-06-01 16:45:28 +02:00
Eslam A. Hefnawy
f79d112859 added tests for createStack 2016-06-01 11:30:55 +02:00
Philipp Muens
8c2d48ae7f Fix tests for walkDirSync method
Fix tests as the order of added filePaths is not guaranteed.
2016-06-01 09:41:05 +02:00
Philipp Muens
10d0216ada Cleanup and fix tests 2016-06-01 09:14:58 +02:00
Philipp Muens
474c7f150c Add "magic handler" zipping support
Add zipping of handler directories. Add a walkDirSync method which collects all the
file paths in a directory (needed for the .zip file creation for "magic handlers") in a synchronous way.
2016-05-31 17:13:05 +02:00
Eslam A. Hefnawy
26f534f481 basic deployCore functionality 2016-05-30 13:29:44 +02:00
Philipp Muens
6f891797cf Merge branch 'v1.0' into add-aws-compile-functions-to-resources-plugin 2016-05-27 14:43:33 +02:00
Eslam A. Hefnawy
10de5bcdda added tests for awsResourcesDeploy hooks promise chain 2016-05-27 13:00:12 +02:00
Philipp Muens
86b3a175f1 Add first plugin tests 2016-05-27 11:40:50 +02:00
Philipp Muens
39d30b3ca0 Add automatic servicePath detection functionality
The service directory will be automatically detected if the users CWD is a valid
Serverless service directory.
2016-05-26 14:34:56 +02:00
Philipp Muens
f7bd980a45 Merge branch 'v1.0' into aws-resources-deploy 2016-05-25 14:53:48 +02:00
Eslam A. Hefnawy
1e9b7182ff running all tests. all 130 tests passing 🎉 2016-05-25 14:50:22 +02:00
Philipp Muens
aafc2fefd6 Rename and refactor existing plugins
Rename the existing plugins to match the new naming convention.
Fix bugs / refactor code / enhance test coverage alongside.
2016-05-25 07:12:15 +02:00
Eslam A. Hefnawy
e51ed686b8 added tests for validate method 2016-05-24 23:56:26 +02:00
Philipp Muens
e5a5033db7 Add basic CLI help functionality 2016-05-24 14:58:19 +02:00
Eslam A. Hefnawy
de86121170 refactor: removed instances keyword and replaces this.S to this.serverless 2016-05-24 11:33:36 +02:00
Eslam λ Hefnawy
8cc596d691 Merge branch 'dev' into sinonjs 2016-05-24 10:48:33 +02:00
Eslam λ Hefnawy
55f544209f Merge branch 'dev' into remove-populate 2016-05-24 10:45:34 +02:00
Eslam A. Hefnawy
7e7c0e12cd added plugin tests to main tests 2016-05-24 10:31:38 +02:00
Philipp Muens
8bdbcf66b1 Update plugins README and rename CLI test variables 2016-05-23 19:24:56 +02:00
Philipp Muens
2bfc79e0e8 Rename arguments / args to options 2016-05-23 17:02:52 +02:00
Philipp Muens
c8639c678a Add argument support for CLI and plugins
Add the possibility to access arguments inside plugins (e.g. "--function function1" or "-f function").
Additionally the "lifeCycleEvent" property is renamed to "lifecycleEvent".
2016-05-23 15:17:22 +02:00
Eslam A. Hefnawy
2abfab65e3 testing all files 2016-05-20 20:18:16 +02:00
Eslam A. Hefnawy
312ba3a406 removed commented out code 2016-05-20 20:17:12 +02:00
Eslam A. Hefnawy
bc3e7ff939 styling adjustments 2016-05-20 20:16:45 +02:00
Eslam A. Hefnawy
7a717f2903 fixed some async tests 2016-05-20 20:08:50 +02:00
Eslam A. Hefnawy
852b568fb5 fixed typo 2016-05-20 19:43:17 +02:00
Eslam A. Hefnawy
3df05b04f1 moved getPopulated logic to load() 2016-05-20 19:39:17 +02:00