71 Commits

Author SHA1 Message Date
Egor Kislitsyn
219cea9f3a Actions: remove serverless prefix 2016-02-18 18:44:11 +07:00
Kamil Burzynski
f532b50996 WIP 2016-02-17 16:41:17 +01:00
Kamil Burzynski
b67b044117 Bugfixes
- project load is truly used in async way now
- a number of typos related to misplaced ; or ,
- S.init() used properly and systematically throughout the code
- sPath indexOf usage now looks only at beginning of paths, to avoid bugs like "foo/bar-get".indexOf( "bar" ) mistakenly finding a component 'bar' within 'foo'
2016-02-16 11:19:12 +01:00
Eslam A. Hefnawy
914efae537 merging v0.5-providers branch: fixing conflicts 2016-02-16 13:19:59 +07:00
Eslam A. Hefnawy
7ac8175b47 EndpointRun: init 2016-02-15 20:22:45 +07:00
Egor Kislitsyn
e34be438c0 updates the actions to use ProviderAws 2016-02-15 18:22:52 +07:00
Kamil Burzynski
0a913255e7 Object hierarchy properly created.
Removal of few instances of private interface being used
2016-02-12 14:36:42 +01:00
Kamil Burzynski
f26a1cc13d WIP: fixed getFunctions() usage to be compatible with original code 2016-02-12 09:10:35 +01:00
Kamil Burzynski
7f80bd6bc1 WIP: moved getFunctions() to project 2016-02-12 09:09:56 +01:00
ac360
8da05b8572 merge 2016-02-11 08:58:22 -08:00
Kamil Burzynski
3ab9291338 Merge branch 'arch-refactor-merge-1' into arch-refactor
Conflicts:
	lib/ServerlessMeta.js
	lib/actions/FunctionRun.js
2016-02-11 09:07:01 +01:00
Egor Kislitsyn
283da110cf Merge remote-tracking branch 'upstream/master' 2016-02-11 13:45:39 +07:00
ac360
48f8e9dffa FunctionRun: fix description 2016-02-10 14:44:04 -08:00
Kamil Burzynski
24b9d73bfb ServerlessRuntime class hierarchy introduced 2016-02-10 14:07:42 +01:00
Egor Kislitsyn
1b46bc9140 fixes FunctionRun: region option, error handling 2016-02-10 17:34:32 +07:00
Jordan Mack
63c257105e Improve a few minor text regions. 2016-02-10 01:13:13 -08:00
Kamil Burzynski
e0e027dcd3 Refactoring: removed S.config.projectPath, Project instance is created at correct moments, common project helpers moved to Project 2016-02-09 15:14:17 +01:00
ac360
95525b37ff FunctionRun: use within function folder 2016-02-08 08:02:09 -08:00
Egor Kislitsyn
a0fc52deec fix FunctionRun log output 2016-02-08 18:47:44 +07:00
Egor Kislitsyn
6714e24122 improves FunctionRun action:
- strip trailing slashes from path
 - FunctionRunLambdaNodeJs: show error stack trace
2016-02-08 17:45:55 +07:00
ac360
353458c024 NameTemplate: change to customName 2016-02-07 20:48:18 -08:00
Austen Collins
98e7cab81f Tests: remove FunctionInvoke test 2016-02-07 17:36:17 -08:00
Austen Collins
422cb94e4e FunctionRun: combine FunctionInvoke into FunctionRun 2016-02-07 17:23:28 -08:00
Austen Collins
3cfabde174 FunctionRun, FunctionInvoke: Combine 2016-02-07 16:18:22 -08:00
Austen Collins
4c75412794 FunctionRun: Improve 2016-02-07 12:22:07 -08:00
ac360
7e45408983 FunctionDeploy: refactor for module removal 2016-02-07 12:22:06 -08:00
ac360
f95d92f720 FunctionCreate: start refactoring to only use sPath 2016-02-07 12:22:06 -08:00
Jordan Mack
4345e9c012 Add functionality to allow serverless function run to use the current function path if one was not specified on the CLI. 2016-01-31 18:33:12 -08:00
Austen
7b0b90ed65 Merge pull request #507 from ryansb/python-support
Python support
2016-01-25 16:34:38 -08:00
Eslam A. Hefnawy
e597f1dff5 function run fetches env var from stage and region if provided 2016-01-26 00:04:35 +07:00
Ryan S. Brown
21d0f270ec Add Python run handler 2016-01-23 09:08:15 -05:00
ac360
f587413892 FunctionRun: throw error if incorrect path is specified 2016-01-21 15:00:24 -08:00
Eslam A. Hefnawy
10753765d0 fixed functionRun 2016-01-16 19:01:43 +02:00
ac360
016a1b4965 ServerlessState, ServleressMeta: add new helpful methods: getProject, getMeta, validateStageExists, validateRegionExists, add these to actions, fix additional tests 2016-01-15 21:41:46 -08:00
Eslam A. Hefnawy
9137224731 fixing all actions to use classes 2016-01-16 00:28:50 +02:00
ac360
f675457b4e Classes: beging removing data prop 2016-01-14 23:19:16 -08:00
ac360
3caa7588da FunctionDeploy: Fix handler error and script errors due to lodash 2016-01-08 23:38:21 -08:00
ac360
63bb5c9c99 FunctionRun: Better error messages, Serverless: validatePath checks existence 2016-01-08 11:48:08 -08:00
Eslam A. Hefnawy
bdd7b85c79 tiny function run fix 2016-01-08 21:49:25 +02:00
Eslam A. Hefnawy
699440fde7 functionRun updates 2016-01-08 00:41:56 +02:00
Eslam A. Hefnawy
480a4290db updated env actions and functionRun 2016-01-07 23:42:04 +02:00
ac360
e194e3e72b Actions: fix all to pass evt object through, wherever possible, Tests: get function and endpoint deploy tests workign, minor fixes for the validateevent function 2016-01-04 23:26:35 -08:00
Eslam A. Hefnawy
f631d1b86f fixed actions and unit tests 2016-01-05 00:52:37 +02:00
ac360
ed9fae6e77 FunctionDeploy: Refactor, untested 2016-01-01 17:40:03 -08:00
Eslam A. Hefnawy
ec33f6af17 functionRun: refactored and tested 2016-01-01 22:57:28 +02:00
ac360
d3787e9860 Serverless: change global private properties to be on config object 2015-12-31 16:42:00 -08:00
Austen Collins
1b759feb78 Test: fixes 2015-12-18 20:42:30 -08:00
Kamil Burzynski
956a64e9d9 Refactored internal plugins to be loaded just like the external ones. 2015-12-17 10:43:10 +01:00
visualasparagus
bd8a078e9d Update FunctionRun.js
allows for both unnested function specific event.json files of the format <function-name>-event.json as well as the standard event.json with nested <function-name> properties
moves the parsing of the event property from _runFunction to _loadTestEvent where it makes more sense
2015-12-16 15:44:41 +01:00
visualasparagus
aeff3c9cf5 Centralized and fixed event.json loading
Refactored event.json loading code to be a call to a central function as opposed to duplicating the same code. See _loadTestEvent on line 159 and line 72
Referenced absolute path to event.json file in order to correctly load the file. See 162.
2015-12-16 00:44:25 +01:00