ReleasePackerCommandUploadReleaseBundle.byGCS constructor

ReleasePackerCommandUploadReleaseBundle.byGCS(
  1. String project,
  2. String bucket, {
  3. Map<String, Object?>? parameters,
  4. required Object credential,
  5. String? file,
  6. String? release,
})

Implementation

factory ReleasePackerCommandUploadReleaseBundle.byGCS(
    String project, String bucket,
    {Map<String, Object?>? parameters,
    required Object credential,
    String? file,
    String? release}) {
  file ??= ReleaseBundle.defaultReleasesBundleFileFormat;
  release ??= '%RELEASE%';

  parameters ??= <String, Object?>{};

  parameters['file'] ??= file;
  parameters['release'] ??= release;

  var cmd = ReleasePackerCommandGCS(project, bucket,
      credential: credential,
      parameters: parameters,
      body: '%RELEASE_BUNDLE%');

  return ReleasePackerCommandUploadReleaseBundle._(cmd);
}