542 Commits

Author SHA1 Message Date
Kostas Bariotis
47082fbc43 move fs utils, refactor tests 2017-10-06 16:37:19 +03:00
Mariusz Nowak
7689cff5a9 Improve plugin initialization error reporting
Distinguish not found errors from "initialization errors (so far in both cases not found error was thrown)
2017-09-29 16:25:29 +02:00
Doug Moscrop
778f510c35 fix #4272 use instanceof to detect duplicate plugins and log a warning 2017-09-18 14:49:57 -04:00
Philipp Muens
a0ddabc1ba Merge pull request #4249 from lorengordon/escape-dash
Escapes the hyphen in the ssm variable syntax
2017-09-14 10:39:54 +02:00
Rafal Wilinski
6d893aee90 Fix typo 2017-09-13 16:53:04 +02:00
Rafal Wilinski
bc86be2252 Add --no-color flag notice 2017-09-13 16:48:23 +02:00
Loren Gordon
629c073c6b Tests SSM variable syntax for all allowable characters 2017-09-13 07:14:49 -04:00
Loren Gordon
da782b85f4 Escapes the hyphen in the ssm variable syntax
Fixes #4248
2017-09-12 13:57:52 -04:00
Philipp Muens
96bac3963c Merge pull request #4224 from lorengordon/escaped-default-string
Removes escaping of double-quotes around string value
2017-09-11 10:23:00 +02:00
Loren Gordon
9746de39dd Expects string variables to fulfill promise 2017-09-07 09:39:31 -04:00
Loren Gordon
6088c9f494 Updates string syntax tests to call functions under test 2017-09-07 08:21:48 -04:00
Loren Gordon
b00ad4e773 Removes escaping of double-quotes around string value 2017-09-07 07:32:06 -04:00
Frank Schmid
232732cbac Push coverage again 2017-09-06 18:16:06 +02:00
Frank Schmid
07becabf6c Added alias commands and unit tests. 2017-09-06 17:36:17 +02:00
Eslam λ Hefnawy
e0201e2927 Merge pull request #4192 from HyperBrain/deploy-function-deploys-function
Deploy --function deploys function
2017-09-05 20:09:15 +07:00
Eslam λ Hefnawy
b4c3513b2d Merge pull request #4062 from lorengordon/ssm-vars
Supports SSM Parameters as serverless variable references
2017-09-04 21:38:41 +07:00
Philipp Muens
323ae77790 Merge branch 'master' into deploy-function-deploys-function 2017-09-04 12:59:58 +02:00
Philipp Muens
907c16da21 Fix failing Utils class tests 2017-09-04 10:27:41 +02:00
Philipp Muens
a05bc333e3 Fix Utils class tests 2017-09-04 09:42:39 +02:00
Philipp Muens
6ee4cd4df8 Fix Service class tests 2017-09-04 09:18:41 +02:00
Loren Gordon
5a7d14af09 Adds overwrite syntax support to SSM variable syntax
Check for the expected error message in the case the SSM parameter
does not exist and return `undefined`. Any other (unexpected) error
message still throws an exception.
2017-09-01 15:10:00 -04:00
Loren Gordon
ba14eb9ab2 Adds tests for SSM variable functionality 2017-09-01 12:54:04 -04:00
Loren Gordon
a266d4f224 Supports ssm: variable references
Adds support for specifying SSM parameters as serverless variables.
Basic syntax is `${ssm:<foo>}`. To support decryption of SecureString
parameters, the extended syntax is `${ssm:<foo>~true|false}`. The `~`
is a delimiter; `true|false` is evaluated and passed to the
`WithDecryption` option of the SSM API.
2017-09-01 12:54:04 -04:00
Frank Schmid
1303702388 Allow deploy command with function argument
* Added function option documentation
* Added unit test for lifecycle termination
* Extended before:deploy:deploy unit tests
* Added debug logging for command invokes/spawns and terminations.
* Deploy with a function parameter starts deploy:function and terminates the deploy lifecycle.
* Spawn allows to exit the current lifecycle and continue with the parent
2017-09-01 15:30:37 +02:00
Mariusz Nowak
5dce256f00 Ensure errorneous calls are properly exposed 2017-08-22 15:11:33 +02:00
Philipp Muens
f8787d4289 Minor fixes 2017-08-21 13:35:04 +02:00
Philipp Muens
44aa158da9 Fix breaking test for custom variableSyntax usage 2017-08-21 13:19:08 +02:00
Philipp Muens
701187bc59 Update all variableSyntax usages 2017-08-21 13:11:29 +02:00
Toby Hede
33431cb45a Allow double-quoted and single-quoted variables
Empty string is now valid
2017-08-20 11:05:15 +10:00
Toby Hede
2b3181c362 Handle both single and double quoted strings 2017-08-18 09:13:01 +10:00
Toby Hede
a1c8a37b9a Allow use of string as default values in variables 2017-08-18 09:07:29 +10:00
Philipp Muens
8cffbe5c2b Merge pull request #4074 from RafalWilinski/fix-s3RefSyntax-typo
Fix this.s3RefSyntax variable name typo
2017-08-17 14:20:49 +02:00
Philipp Muens
66181c148f Merge pull request #4017 from vladgolubev/use-is-docker-npm
Use is-docker npm package, increased test coverage
2017-08-17 14:07:19 +02:00
Philipp Muens
239e79730a Merge pull request #4091 from HyperBrain/4090-forward-plugin-exceptions
Rethrow original plugin error in debug mode. Added unit tests.
2017-08-17 10:34:07 +02:00
Frank Schmid
bb1e74a43c Rethrow original plugin error in debug mode. Added unit tests. 2017-08-15 11:38:37 +02:00
Eslam A. Hefnawy
e176dc8e5d run without functions and lock versions 2017-08-15 15:52:24 +07:00
Brian Neisler
91d746d167 Add separation between platform and framework commands 2017-08-14 17:24:49 -07:00
Rafal Wilinski
fea41a0ddf Fix Variables.s3RefSyntax typo 2017-08-11 20:01:09 +02:00
Eslam λ Hefnawy
793ef87b15 Merge pull request #4011 from oktapodia/feature/improve-deprecated-hook-message
Improve deprecated hook message
2017-08-04 21:17:16 +07:00
Eslam λ Hefnawy
54dd2f64fc Merge pull request #3941 from serverless/remove-provider-name-validation
Remove provider name validation
2017-08-01 17:04:08 +07:00
Vlad Holubiev
8be178b839 Use is-docker npm package, increased test coverage 2017-08-01 01:02:40 +03:00
Sebastien Bramille
6d2eb61166 Align with Plugin 2017-07-30 02:16:21 +01:00
Sebastien Bramille
5174bf98ec Improve deprecated hook message 2017-07-30 02:12:15 +01:00
indieisaconcept
71f1aa09cb preserve context when executing exported function from .js file
The change ensures that when a .js file exported function is executed,
the original execution context is supplied in order to maintain "this".
2017-07-26 11:21:09 +10:00
Philipp Muens
e07f48f80b Merge pull request #3960 from RafalWilinski/master
Load Serverless plugins only once
2017-07-21 11:16:23 +02:00
Philipp Muens
9c856dc7b6 Minor code refactorings 2017-07-21 11:09:05 +02:00
Philipp Muens
99a12414e1 Merge pull request #3959 from RafalWilinski/3956-catch-unknown-plugin
Wrap addPlugin in try/catch statement when loading plugins
2017-07-21 10:58:44 +02:00
Philipp Muens
d04889b4aa Minor refactorings 2017-07-21 10:41:30 +02:00
Eslam λ Hefnawy
a3a1d09ba3 Merge pull request #3904 from serverless/travis-keys
Add auto deployment through travis
2017-07-20 17:05:54 +07:00
Rafal Wilinski
32bf998406 Prepend messages with correct prefixes 2017-07-20 11:26:20 +02:00