Skip to content

refactor: allow pass buildaction #3416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2018
Merged

Conversation

Mitko-Kerezov
Copy link
Contributor

Includes:

  • Refactor CLI so that it allows passing a buildAction parameter to services that execute run and deploy commands
  • Introduce helpers directory - place classes/files here that are neither commands, nor services
  • Refactor logic for verifying bundle options - extract it into a helper and reuse it instead of using the inheritance approach
  • Add forgotten bundle options check in deploy command

Ping @rosen-vladimirov

@Mitko-Kerezov Mitko-Kerezov self-assigned this Mar 2, 2018
});

await this.$devicesService.detectCurrentlyAttachedDevices({ shouldReturnImmediateResult: false, platform: platform });
let devices = this.$devicesService.getDeviceInstances();
Copy link
Contributor

Choose a reason for hiding this comment

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

you can shorten this:

const devices = this.$devicesService.getDeviceInstances()
		.filter(d => !platform || d.deviceInfo.platform.toLowerCase() === platform.toLowerCase());

@Mitko-Kerezov Mitko-Kerezov force-pushed the kerezov/cloud-deploy-run branch from 2d231f0 to 4a6af32 Compare March 7, 2018 09:50
@Mitko-Kerezov Mitko-Kerezov merged commit 069e69f into master Mar 7, 2018
@Mitko-Kerezov Mitko-Kerezov deleted the kerezov/cloud-deploy-run branch March 7, 2018 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants