runDeployHostingBeta method

Future<SetupStepResult> runDeployHostingBeta()

Implementation

Future<SetupStepResult> runDeployHostingBeta() async {
  final bool ok = await firebase.deployHostingBeta();
  if (ok) {
    return SetupStepResult.success(
      WizardSubStep.deployHostingBeta,
      message: SetupGuidance.betaHostingUrl(config.firebaseProjectId!),
    );
  }
  return SetupStepResult.failed(
    WizardSubStep.deployHostingBeta,
    message: 'firebase deploy --only hosting:beta failed',
    fixHint: _fixHintFor(WizardSubStep.deployHostingBeta),
  );
}