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

feat: Deploy pre-existing package with -p CLI option #205

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

tbarlow12
Copy link
Contributor

  • Allow -p or --package param to specify package to deploy
  • Log in before deployment rather than packaging
  • Don't run deployment if local package does not exist

Resolves [AB#500]

@tbarlow12 tbarlow12 requested review from wbreza and PIC123 July 17, 2019 21:00
@coveralls
Copy link

coveralls commented Jul 17, 2019

Coverage Status

Coverage increased (+0.1%) to 84.305% when pulling 9ca8387 on tabarlow/deploy-package into 7ceb484 on dev.

Copy link
Contributor

@mydiemho mydiemho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have some questions

Copy link
Contributor

@PIC123 PIC123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Contributor

@mydiemho mydiemho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some style nit


const defaultArtifact = path.join(".serverless", `${sls.service.getServiceName()}.zip`);

expect((FunctionAppService.prototype as any).sendFile).toBeCalledWith({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would extract the toBeCalledWith arguments out just so it's easier to read

}
}, defaultArtifact);
const expectedArtifactName = service.getDeploymentName().replace("rg-deployment", "artifact");
expect((AzureBlobStorageService.prototype as any).uploadFile).toBeCalledWith(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extract AzureBlobStorageService.prototype as any

Copy link
Contributor

@wbreza wbreza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tbarlow12 tbarlow12 merged commit 2b97f75 into dev Jul 19, 2019
@tbarlow12 tbarlow12 deleted the tabarlow/deploy-package branch July 19, 2019 15:28
tbarlow12 added a commit that referenced this pull request Sep 13, 2019
- [x] Allow `-p` or `--package` param to specify package to deploy
- [x] Log in before deployment rather than packaging
- [x] Don't run deployment if local package does not exist

Resolves [AB#500]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants