Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #81 from siegesmund/master
Browse files Browse the repository at this point in the history
Corrects issue which prevents deploying binary function with sls deploy -f
  • Loading branch information
jthomas authored Oct 4, 2017
2 parents 71f4c0d + 92b0cb4 commit c1e0d42
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion compile/functions/runtimes/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class BaseRuntime {

getArtifactPath(functionObject) {
return this.serverless.service.package.individually ?
functionObject.artifact : this.serverless.service.package.artifact;
functionObject.package.artifact : this.serverless.service.package.artifact;
}
}

Expand Down
2 changes: 1 addition & 1 deletion compile/functions/runtimes/tests/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('Binary', () => {
})

it('should handle service artifact for individual function handler', () => {
const functionObj = {handler: 'handler', artifact: '/path/to/zip_file.zip'}
const functionObj = {handler: 'handler', package: { artifact: '/path/to/zip_file.zip'}}
node.serverless.service.package = {individually: true};
node.isValidFile = () => true

Expand Down
2 changes: 1 addition & 1 deletion compile/functions/runtimes/tests/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('Node', () => {
});

it('should handle service artifact for individual function handler', () => {
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
node.serverless.service.package = {individually: true};
node.isValidFile = () => true

Expand Down
2 changes: 1 addition & 1 deletion compile/functions/runtimes/tests/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('Php', () => {
})

it('should handle service artifact for individual function handler', () => {
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
php.serverless.service.package = {individually: true};
php.isValidFile = () => true

Expand Down
2 changes: 1 addition & 1 deletion compile/functions/runtimes/tests/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('Python', () => {
})

it('should handle service artifact for individual function handler', () => {
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
node.serverless.service.package = {individually: true};
node.isValidFile = () => true

Expand Down
2 changes: 1 addition & 1 deletion compile/functions/runtimes/tests/swift.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('Swift', () => {
})

it('should handle service artifact for individual function handler', () => {
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
node.serverless.service.package = {individually: true};
node.isValidFile = () => true

Expand Down

0 comments on commit c1e0d42

Please sign in to comment.