Skip to content

workloads / main / BeforeRollout

Class: BeforeRollout

Workload for defining an npm script to run before rolling out a new application version.

Example

ts
import { BeforeRollout } from "@monolayer/sdk";

const rollout = new BeforeRollout("before-1", {
  script: "db:migrate",
});

export default rollout;

Extends

Constructors

new BeforeRollout()

ts
new BeforeRollout(id, options): BeforeRollout

Parameters

ParameterTypeDescription

id

string

Unique ID

options

LifecycleWorkloadOptions

Returns

BeforeRollout

Overrides

LifecycleWorkload.constructor

Properties

PropertyModifierTypeDescription
idreadonlystringUnique ID
scriptpublicstring-