DeploymentConfig constructor

DeploymentConfig({
  1. required String deploymentId,
  2. required String environment,
  3. required String url,
  4. required String server,
  5. required String artifactName,
  6. required bool rollbackOnFailure,
})

Creates a DeploymentConfig instance.

All parameters are required:

  • deploymentId: The unique identifier for the deployment.
  • environment: The target environment for the deployment (e.g., "staging", "production").
  • url: The URL of the deployed application.
  • server: The server where the application is deployed.
  • artifactName: The name of the deployment artifact.
  • rollbackOnFailure: A boolean indicating whether to roll back the deployment on failure.

Implementation

DeploymentConfig({
  required this.deploymentId,
  required this.environment,
  required this.url,
  required this.server,
  required this.artifactName,
  required this.rollbackOnFailure,
});