squeezer-aws
Advanced tools
Comparing version 0.0.4 to 0.0.5
## v0.0.4 - 2017-08-22 | ||
- use "cloud" identifier as hook prefix | ||
## v0.0.4 - 2017-08-22 | ||
- fixed environments Outputs | ||
@@ -3,0 +6,0 @@ |
68
index.js
@@ -14,5 +14,5 @@ 'use strict'; | ||
'project:validate', | ||
'aws:init', | ||
'cloud:init', | ||
'microservices:load', | ||
'aws:run' | ||
'cloud:run' | ||
], | ||
@@ -58,4 +58,4 @@ options : { | ||
'project:validate', | ||
'aws:init', | ||
'aws:invoke' | ||
'cloud:init', | ||
'cloud:invoke' | ||
], | ||
@@ -90,4 +90,4 @@ options : { | ||
'project:validate', | ||
'aws:init', | ||
'aws:logs' | ||
'cloud:init', | ||
'cloud:logs' | ||
], | ||
@@ -134,8 +134,8 @@ options : { | ||
'project:info', | ||
'aws:init', | ||
'cloud:init', | ||
'deploy:checksums:get', | ||
'deploy:compile', | ||
'aws:compile', | ||
'aws:deploy', | ||
'aws:assets', | ||
'cloud:compile', | ||
'cloud:deploy', | ||
'cloud:assets', | ||
'deploy:checksums:save' | ||
@@ -183,7 +183,7 @@ ], | ||
'project:validate', | ||
'aws:init', | ||
'cloud:init', | ||
'microservices:load', | ||
'project:info', | ||
'serve:run', | ||
'aws:serve' | ||
'cloud:serve' | ||
], | ||
@@ -202,2 +202,46 @@ options : { | ||
] | ||
}, | ||
{ | ||
arg : ['test'], | ||
summary : 'Run available tests on your current project', | ||
description : '', | ||
lifecycle : [ | ||
'project:validate', | ||
'cloud:init', | ||
'microservices:load', | ||
'project:info', | ||
'serve:run', | ||
'cloud:serve', | ||
'cloud:test' | ||
], | ||
options : { | ||
microservice : { | ||
title : 'microservice name', | ||
flag : 'm', | ||
description : 'run tests for only a specific microservice', | ||
value : true, | ||
required : false, | ||
defaultValue : null | ||
}, | ||
unit : { | ||
title : 'run available unit tests', | ||
flag : 'u', | ||
description : '', | ||
value : false, | ||
required : false, | ||
defaultValue : null | ||
}, | ||
integration : { | ||
title : 'run available integration tests', | ||
flag : 'i', | ||
description : '', | ||
value : false, | ||
required : false, | ||
defaultValue : null | ||
} | ||
}, | ||
examples : [ | ||
'', | ||
'--microservice my-first-microservice' | ||
] | ||
} | ||
@@ -204,0 +248,0 @@ ]; |
@@ -16,5 +16,5 @@ 'use strict'; | ||
return new Promise(() => { | ||
const options = this.sqz.cli.params.get().options; | ||
const options = this.sqz.cli.params.get().options; | ||
const functionName = options.function; | ||
let eventInput = {}; | ||
let eventInput = {}; | ||
@@ -27,6 +27,4 @@ if (options.path) { | ||
if (this.sqz.vars.project.cloud.name === 'aws') { | ||
const awsInvoke = new AWSInvoke(this.sqz); | ||
awsInvoke.run(functionName, eventInput); | ||
} | ||
const awsInvoke = new AWSInvoke(this.sqz); | ||
awsInvoke.run(functionName, eventInput); | ||
}); | ||
@@ -33,0 +31,0 @@ } |
{ | ||
"name": "squeezer-aws", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "AWS Squeezer Plugin . This plugin enables AWS Lambda support within the Squeezer Framework.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://squeezer.io/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
254287
4400