607 Commits

Author SHA1 Message Date
Sunny
ccf5a59224 Improve entrypoint cmd removal algo
Use getCommands() to fetch all the commands with filtered entrypoint
commands and reduce to the required command. Throw error when a command
is not found.
2017-06-25 19:10:39 +05:30
Sunny
185af2e519 Remove entrypoint subcmds in generateCommandsHelp 2017-06-25 15:55:38 +05:30
Luke Herrington
1264dd015c
Improve usage and error handling of javascript variables. 2017-06-23 10:49:38 -07:00
Sunny
501aa5d5bc Avoid default function parameter 2017-06-21 19:27:15 +05:30
Sunny
1aca36020c Extract, sort and display plugin commands & test 2017-06-21 17:58:33 +05:30
Eslam λ Hefnawy
ffae3adc62 Merge pull request #3812 from serverless/add-invocation-id
Add invocationId
2017-06-21 19:23:32 +08:00
Philipp Muens
a5c4539d55 Merge pull request #3811 from alexdebrie/AuthorizerStats
Add checks for HTTP Authorizers
2017-06-21 08:28:35 +02:00
Alex DeBrie
17736d0d96 Move AWS-specific data into separate object 2017-06-21 02:25:38 +00:00
Alex DeBrie
93c4f9816d Add check for cognito authorizer as string 2017-06-21 01:25:50 +00:00
Sunny
084e6669bc Format commands plugins help output with indents 2017-06-21 00:32:02 +05:30
Sunny
569bb6901c Add generateCommandsByPluginHelp() 2017-06-21 00:11:21 +05:30
Eslam λ Hefnawy
aad26dea64 Merge pull request #3813 from serverless/services
Services
2017-06-20 18:46:27 +08:00
Oskar Cieslik
d9dcd73e5d Allow to provide a default value for plugin options 2017-06-19 21:10:53 +02:00
Alex DeBrie
8e76f6d6d6 Fix linting issue 2017-06-19 14:36:44 +00:00
Alex DeBrie
2c012ab8f5 Stronger checks on how authorizers are indicated in serverless.yml 2017-06-19 14:35:53 +00:00
Nik Graf
4514bb01c3
remove legacy imports 2017-06-19 12:21:54 +02:00
Nik Graf
c5537c2343
Merge branch 'master' into services 2017-06-19 11:26:46 +02:00
Philipp Muens
d689b9e104 Add invocationId 2017-06-19 09:02:48 +02:00
Alex DeBrie
24e26b3cd1 Fix linting errors 2017-06-19 02:13:52 +00:00
Alex DeBrie
5aae161ce4 Add checks for HTTP Authorizers 2017-06-19 00:53:14 +00:00
Philipp Muens
9c19d7a773 Remove deployment bucket reference from Service class 2017-06-16 08:43:25 +01:00
Philipp Muens
b912ad91bd Minor code cleanup 2017-06-16 08:36:19 +01:00
Max Redmond
d045201315 adding test for setDeploymentBucketname()
Merge branch 'deployment'
2017-06-16 08:17:24 +01:00
Max Redmond
d3a5794c2e added setDeploymentBucketName function 2017-06-16 08:12:40 +01:00
Max Redmond
abef261722 update serverside encryption options so that they are configured in the deploymentBucket section 2017-06-16 08:12:23 +01:00
Philipp Muens
0dca35a2c1 Throw error when command not run in service 2017-06-12 10:38:59 +02:00
Philipp Muens
6aa415545e Merge pull request #3739 from j0k3r/fix-cf-variable
Throw an Error when requested Cloudformation variable does not exist
2017-06-12 10:23:44 +02:00
Philipp Muens
2a9636a18c Fix updateAutocompleteCacheFile() bug caused by empty commands object 2017-06-12 09:08:27 +02:00
Philipp Muens
0e4aceb704 Update error message 2017-06-11 21:14:12 +02:00
Philipp Muens
39f0ad94a5 Merge pull request #3746 from HyperBrain/filter-nested-entrypoints-for-help
Filter nested entrypoints on getCommands(). Used by help.
2017-06-11 20:59:45 +02:00
Eslam A. Hefnawy
cb14676e76 fixed tests for async autocomplete 2017-06-08 20:04:46 +07:00
Philipp Muens
ee14ce9f36 Minor code changes and test improvements 2017-06-08 09:54:46 +02:00
Brian Neisler
851df3921a Make autocomplete async through promises 2017-06-07 18:40:05 -07:00
davidwells
75a97441a1 run autocomplete.json creation in async fashion 2017-06-07 15:15:11 -07:00
davidwells
75af2ae3dd silently fail on FS error 2017-06-07 13:48:47 -07:00
Eslam A. Hefnawy
5696513789 added cache file validation by hash to autocomplete 2017-06-08 01:27:11 +07:00
Frank Schmid
6bbe0b01f5 Added unit test for getCommands() 2017-06-07 17:44:18 +02:00
Frank Schmid
b73466641e Filter nested entrypoints on getCommands(). Used by help. 2017-06-07 17:24:37 +02:00
Eslam A. Hefnawy
e2cc1451a5 resolved comments on autocomplete 2017-06-07 22:02:23 +07:00
Eslam A. Hefnawy
67dc1c2463 using cache file for autocomplete 2017-06-07 22:01:15 +07:00
Jeremy Benoist
ca202c5672
Throw an Error when requested variable does not exist
When we define a cf variable in serverless.yml and that variable wasn't output from the Cloudformation Outputs
a useless error was throw:

> Cannot read property 'OutputValue' of undefined

Now the error give more information:

> Trying to request a non variable from Cloudformation.
> Stack name: "some-stack" Requested variable: "DoestNotExist"
2017-06-06 17:18:33 +02:00
Philipp Muens
948fbf6d4c Merge master 2017-06-06 09:51:54 +02:00
Brian Neisler
a537e58424 Remove serverless-alpha plugin autoloading. 2017-06-01 14:53:55 -07:00
Philipp Muens
0e90a6ba2c Fix logStat() tests 2017-06-01 09:35:04 +02:00
Sam Marks
aef89a51c7 Another follow-up on async vars. 2017-05-31 00:18:10 -04:00
Philipp Muens
3a42f7be49 Remove tests where stubbing props is required 2017-05-30 13:59:40 +02:00
Philipp Muens
756b66a744 Move stubbing of "installed" property to individual test level 2017-05-30 13:51:25 +02:00
Philipp Muens
7af0a37842 Fix typo in comment 2017-05-30 13:28:56 +02:00
Philipp Muens
59e7e57e76 Extend tests to use sinon sandbox and stub process.exit 2017-05-30 13:27:54 +02:00
Philipp Muens
791ca8c139 Disable one line of linting for console.log restoring 2017-05-30 12:40:00 +02:00