Eslam A. Hefnawy
b4fa9a498f
fixed sync promises in arary
2016-06-09 13:19:09 +02:00
Philipp Muens
061616f5d8
Fix broken create test (in createStack)
2016-06-09 07:52:48 +02:00
Philipp Muens
6d2e67f21a
Refactor awsDeploy to use new deploy lifecycles
...
The awsDeploy plugin now uses different lifecycles to split the tasks up and
introduce a way for 3rd party plugin developers to hook into those lifecycle to e.g.
add resources before everything is deployed.
2016-06-09 07:18:05 +02:00
Philipp Muens
e092308d6b
Fill empty strings for function template with placeholders
2016-06-08 11:58:01 +02:00
Philipp Muens
a7acecbf05
Remove programmatically role setting for Lambda function
2016-06-08 08:23:51 +02:00
Philipp Muens
2ed4283c1d
Add tests for option validation
...
Those tests will be remove later on when the new PluginManager is ready to be merged.
2016-06-08 07:35:31 +02:00
Philipp Muens
553bf31f05
Rename functionObj to functionObject
2016-06-08 06:52:13 +02:00
Philipp Muens
5d1894aa05
Remove "compileFunctions" out of "awsDeploy" plugin
2016-06-07 20:38:35 +02:00
Philipp Muens
0e6fde8ab0
Move Role addition out of "compileFunctions"
2016-06-07 20:35:37 +02:00
Philipp Muens
179e92cd01
Move "compileFunctions" into own plugin
2016-06-07 16:37:46 +02:00
Eslam A. Hefnawy
c48326851e
added docs for create, deploy and invoke
2016-06-06 08:28:52 +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
c276c489f6
Refactor passing of stackName to monitorRemove promise
...
This way it's more clear what's going on.
2016-06-03 11:23:12 +02:00
Philipp Muens
9316bc7714
Split bucketName to make ESLint happy
2016-06-02 21:24:21 +02:00
Philipp Muens
e34f2bdb48
Cleanup code according to comments by @eahefnawy
2016-06-02 21:24:21 +02:00
Philipp Muens
6ad9487720
Fix stack removal procedure through CloudFormation
2016-06-02 21:24:21 +02:00
Philipp Muens
43f6c9be13
Fix removal for objects in bucket
...
Check if there's something to remove otherwise resolve.
2016-06-02 21:24:21 +02:00
Philipp Muens
2dcce98dc1
Remove unnecessary mocks in emptyS3Bucket test
2016-06-02 21:24:21 +02:00
Philipp Muens
1ed7b97b08
Add removeStack functionality
2016-06-02 21:24:21 +02:00
Philipp Muens
2de494d1a4
Fix hook call to use new command and lifecycle event
2016-06-02 21:24:21 +02:00
Philipp Muens
bd4ca61eb0
Remove nested "remove resources" command
...
Remove the nesting so that a single "serverless remove" can be use to remove
the service. This aligns with the code pattern which is already implemented.
2016-06-02 21:24:21 +02:00
Philipp Muens
e86fe50236
Update validateInput test
2016-06-02 21:24:21 +02:00
Philipp Muens
ef2893f755
Add emptyS3Bucket functionality
2016-06-02 21:24:21 +02:00
Philipp Muens
a380614ed8
Add validateInput functionality
2016-06-02 21:24:21 +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
ea470daf90
fixed S3 bucket name
2016-06-02 21:04:25 +02:00
Eslam A. Hefnawy
b1561800eb
fixed some linting issues
2016-06-02 15:33:23 +02:00
Eslam A. Hefnawy
beee6f1348
added consoleLog method
2016-06-02 15:24:34 +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
a2c915effe
Add quick fix for remove resources plugin
...
Add the correct command nesting.
2016-06-02 08:48:04 +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
Philipp Muens
68b3d835d1
Add missing parenthesis to test description
2016-06-01 18:46:27 +02:00
Eslam A. Hefnawy
492b617a1e
fixed some linting issues
2016-06-01 18:12:50 +02:00
Eslam A. Hefnawy
cba28f1fd2
fixed awsDeploy on deployment for the second time
2016-06-01 18:02:29 +02:00
Philipp Muens
9ed18e7e89
Add include functionality
2016-06-01 17:38:54 +02:00
Eslam A. Hefnawy
2de6b3e76c
added restore method
2016-06-01 17:30:33 +02:00
Eslam A. Hefnawy
31e5daf992
added test for deploying functions to S3
2016-06-01 17:30:33 +02:00
Eslam A. Hefnawy
ad67c7d780
moved neatness console.log to CLI
2016-06-01 17:30:33 +02:00
Philipp Muens
6b27d82fb8
Remove / eslint-disabled unnecessary console.log statements in test plugins
2016-06-01 17:18:01 +02:00
Philipp Muens
ca29606b04
Add tests for predefined exclude patterns (e.g. .git folder)
...
There are currently 5 different predefined exclude rules (.git, .gitignore, .DS_Store,
serverless.yaml, serverless.env.yaml) which will ensure that those files are not
included in the zipped archive. This test ensures this behavior.
2016-06-01 17:03:02 +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
Philipp Muens
e19dddac15
Add exclude support
2016-06-01 15:46:53 +02:00
Eslam A. Hefnawy
b30c8fd615
fixed some linting issues
2016-06-01 15:00:27 +02:00
Eslam A. Hefnawy
03d8257993
added test for custom resources
2016-06-01 14:31:11 +02:00
Eslam A. Hefnawy
cb57020dc2
added validation and mergin custom resources
2016-06-01 14:18:15 +02:00
Eslam A. Hefnawy
ed6c343855
removed commented code
2016-06-01 11:54:36 +02:00
Eslam A. Hefnawy
fe9014cbae
finished updateStack tests
2016-06-01 11:50:14 +02:00
Philipp Muens
475486bc9c
Add correct tests for zipFunctions functionality
2016-06-01 11:42:09 +02:00