39 Commits

Author SHA1 Message Date
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
Eslam A. Hefnawy
a8bf57ab28 Event Source: continue 2015-12-15 19:43:15 +02:00
Eslam A. Hefnawy
ca14aece80 removed logs 2015-12-15 19:27:46 +02:00
Eslam A. Hefnawy
f5a70eeb3d fixed function run with name option passed 2015-12-15 19:25:04 +02:00
Austen Collins
dd6479c382 FunctionCreate, ModuleCreate: fix minor bugs. All: Clone this.S.cli.options, never reference it in Actions to prevent odd behavior in subactions 2015-12-13 18:29:25 -08:00
Austen Collins
a93384661c All: further fixes to use relative paths only and arrays for endpoints 2015-12-12 12:50:56 -08:00
Eslam A. Hefnawy
2d8b2fcbc5 tiny module fixes 2015-12-12 20:01:27 +02:00
Austen Collins
9c3e1d2c2b FunctionRun: show error message if project/cwd has no functions 2015-12-10 20:53:17 -08:00
Austen Collins
0e1f737a8e minor fixes 2015-12-10 13:10:44 -08:00
Austen Collins
c413ee5113 Actions: delete logging of event objects for inspection 2015-12-10 12:44:33 -08:00
Austen Collins
d6ac232910 Actions: Huge effort to clean up EVENT properties across all actions. In this commit, all Actions log their EVENT object at the end of running so we can view and discuss further. Overall, the EVENT properties across all Actions are close to being finalized now 2015-12-09 21:50:42 -08:00
Austen Collins
c7e6b0666d All: version bump 2015-12-08 22:03:25 -08:00
Austen Collins
45b0e1231d ServerlessPlugin: rename cli convenience methods again and fix cliPromptSelectFunctions, FunctionRun: minor fixes, FunctionDeploy: show function select screen in CLI mode. 2015-12-08 18:15:15 -08:00
Austen Collins
660e05ba28 ServerlessPlugin: prefix CLI convenience methods w/ 'cli' 2015-12-08 17:34:42 -08:00
Austen Collins
75f6737dcb All: Change function paths to use this convention: module/function#subfunction@endpoint
FunctionRun: Write tests for specifying funciton path and function name, improve CLI support
2015-12-08 17:24:53 -08:00
Austen Collins
feb5423275 FunctionRun: add options for function name or function path to run a specific function 2015-12-08 16:32:12 -08:00
Austen Collins
99e5856dbc FunctionRun & FunctionRunLambdaNodejs: Fix for new function json, show select menu when encountering multiple functions in s-function.json
ServerlessPlugin: Add selectFunctions conveninence method for use in all Plugins
2015-12-08 09:58:00 -08:00
Austen Collins
1cd738de6e fix case sensitivity 2015-12-08 09:02:27 -08:00
Eslam A. Hefnawy
f8b3cd114c added helpful comments to actions 2015-12-07 13:57:41 +02:00
Eslam A. Hefnawy
1540fce1f9 added unit test for FunctionRun 2015-12-07 01:08:30 +02:00
Eslam A. Hefnawy
6d6cbd667e FunctionRun: make env file available to function 2015-12-06 21:23:06 +02:00
Austen Collins
01ba9f6a52 All: Rebrand 2015-12-03 20:31:49 -08:00