@basaltkit/deploy 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +284 -23
- package/dist/answers.d.ts +70 -0
- package/dist/answers.js +196 -0
- package/dist/apache.js +11 -2
- package/dist/audit.d.ts +20 -0
- package/dist/audit.js +26 -0
- package/dist/backup.d.ts +17 -1
- package/dist/backup.js +56 -1
- package/dist/bin.js +9 -1
- package/dist/bootstrap.d.ts +68 -18
- package/dist/bootstrap.js +177 -45
- package/dist/caddy.js +2 -1
- package/dist/check.js +18 -5
- package/dist/checks.js +1 -1
- package/dist/cli.d.ts +22 -1
- package/dist/cli.js +498 -57
- package/dist/compose.d.ts +1 -1
- package/dist/compose.js +6 -1
- package/dist/config.d.ts +25 -2
- package/dist/config.js +65 -3
- package/dist/context.d.ts +43 -13
- package/dist/context.js +50 -7
- package/dist/detach.d.ts +23 -0
- package/dist/detach.js +105 -0
- package/dist/env-step.d.ts +16 -1
- package/dist/env-step.js +61 -5
- package/dist/events.d.ts +168 -0
- package/dist/events.js +477 -0
- package/dist/host.d.ts +179 -7
- package/dist/host.js +317 -42
- package/dist/index.d.ts +10 -5
- package/dist/index.js +7 -3
- package/dist/init.d.ts +2 -0
- package/dist/init.js +2 -1
- package/dist/install-plan.d.ts +40 -0
- package/dist/install-plan.js +437 -0
- package/dist/json-host.d.ts +32 -0
- package/dist/json-host.js +106 -0
- package/dist/lock.d.ts +45 -0
- package/dist/lock.js +128 -0
- package/dist/pipeline.d.ts +51 -3
- package/dist/pipeline.js +339 -173
- package/dist/protocol.d.ts +364 -0
- package/dist/protocol.js +134 -0
- package/dist/runs.d.ts +75 -0
- package/dist/runs.js +287 -0
- package/dist/state.d.ts +26 -13
- package/dist/state.js +68 -4
- package/dist/trust.d.ts +63 -0
- package/dist/trust.js +159 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +10 -0
- package/package.json +5 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { basename, resolve } from 'node:path';
|
|
2
|
+
import { ANSWER_TIMEOUT_SECONDS } from './answers.js';
|
|
3
|
+
import { DeployError } from './context.js';
|
|
4
|
+
import { childSink, eventOutput, learnEnvText, learnSecrets, urlPasswords } from './events.js';
|
|
5
|
+
import { secondSignalMessage } from './host.js';
|
|
6
|
+
export function jsonHost(base, writer, redactor, options = {}) {
|
|
7
|
+
const output = eventOutput(writer);
|
|
8
|
+
const envFiles = new Set();
|
|
9
|
+
const attempts = new Map();
|
|
10
|
+
let config;
|
|
11
|
+
const timeout = options.answerTimeoutMs ?? ANSWER_TIMEOUT_SECONDS * 1000;
|
|
12
|
+
let channel;
|
|
13
|
+
/** A secret too short to redact is said once, by key (RFC 0008 §6.2). */
|
|
14
|
+
const warnShort = (keys) => {
|
|
15
|
+
for (const key of keys) {
|
|
16
|
+
output.finding({ id: 'secret-short', level: 'warning', message: `${key} is shorter than 6 characters: --json output cannot redact it`, fix: 'use a longer value (a generated one is 32+ characters)' });
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const learnEnv = (text) => { if (text)
|
|
20
|
+
warnShort(learnEnvText(redactor, text, config)); };
|
|
21
|
+
const overrides = {
|
|
22
|
+
out: output,
|
|
23
|
+
interactive: () => false,
|
|
24
|
+
async readFile(path) {
|
|
25
|
+
const text = await base.readFile(path);
|
|
26
|
+
if (envFiles.has(path))
|
|
27
|
+
learnEnv(text);
|
|
28
|
+
return text;
|
|
29
|
+
},
|
|
30
|
+
async writeFile(path, content, mode) {
|
|
31
|
+
if (envFiles.has(path))
|
|
32
|
+
learnEnv(content);
|
|
33
|
+
return base.writeFile(path, content, mode);
|
|
34
|
+
},
|
|
35
|
+
async exec(command, args, execOptions = {}) {
|
|
36
|
+
if (execOptions.interactive) {
|
|
37
|
+
throw new DeployError(`${command} would read the terminal, and stdin is the protocol under --json`, [], 'unsupported');
|
|
38
|
+
}
|
|
39
|
+
if (execOptions.env)
|
|
40
|
+
warnShort(learnSecrets(redactor, Object.entries(execOptions.env), config));
|
|
41
|
+
if (!execOptions.stream)
|
|
42
|
+
return base.exec(command, args, execOptions);
|
|
43
|
+
const sink = childSink(writer, basename(command), output.current);
|
|
44
|
+
try {
|
|
45
|
+
return await base.exec(command, args, { ...execOptions, onOutput: (text, stream) => sink.push(text, stream) });
|
|
46
|
+
}
|
|
47
|
+
finally {
|
|
48
|
+
sink.end();
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
async prompt(question, { secret }, meta) {
|
|
52
|
+
const answers = channel;
|
|
53
|
+
if (!answers || !meta)
|
|
54
|
+
return undefined;
|
|
55
|
+
const attempt = (attempts.get(meta.id) ?? 0) + 1;
|
|
56
|
+
attempts.set(meta.id, attempt);
|
|
57
|
+
if (attempt > 1) {
|
|
58
|
+
if (!answers.live) {
|
|
59
|
+
throw new DeployError(`${meta.key}: the answer was refused (the warning above says why) — nothing was written`, [], 'answer-invalid', 'answers sent up front get no second chance: correct it and run again');
|
|
60
|
+
}
|
|
61
|
+
answers.expectAgain(meta.id);
|
|
62
|
+
}
|
|
63
|
+
writer.emit({
|
|
64
|
+
type: 'prompt', id: meta.id, kind: secret ? 'secret' : 'text', message: question, key: meta.key,
|
|
65
|
+
optional: meta.optional, attempt,
|
|
66
|
+
...(!secret && meta.default !== undefined ? { default: meta.default } : {}),
|
|
67
|
+
});
|
|
68
|
+
return (await answers.take(meta.id, timeout))?.trim();
|
|
69
|
+
},
|
|
70
|
+
// The second signal's line is an event like any other, never text on stderr.
|
|
71
|
+
onSignal(listener) {
|
|
72
|
+
return base.onSignal(listener, { second: (signal) => output.error(secondSignalMessage(signal)) });
|
|
73
|
+
},
|
|
74
|
+
async confirm(question) {
|
|
75
|
+
// No app-user command confirms; a confirmation is never assumed (RFC 0008 §5.1).
|
|
76
|
+
writer.emit({ type: 'prompt', id: 'confirm', kind: 'confirm', message: question, optional: true, attempt: 1 });
|
|
77
|
+
return false;
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
const host = new Proxy(base, {
|
|
81
|
+
get(target, property) {
|
|
82
|
+
if (Object.hasOwn(overrides, property))
|
|
83
|
+
return overrides[property];
|
|
84
|
+
// The real host's own members, called on the real host (`this` is never the proxy).
|
|
85
|
+
const value = Reflect.get(target, property, target);
|
|
86
|
+
return typeof value === 'function' ? value.bind(target) : value;
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
return {
|
|
90
|
+
host,
|
|
91
|
+
output,
|
|
92
|
+
useAnswers(next) { channel = next; },
|
|
93
|
+
learn(pairs, given) { warnShort(learnSecrets(redactor, pairs, given ?? config)); },
|
|
94
|
+
watchEnv(next, dir) {
|
|
95
|
+
config = next;
|
|
96
|
+
envFiles.add(resolve(dir, next.env.file ?? '.env'));
|
|
97
|
+
for (const mirror of next.env.mirror ?? [])
|
|
98
|
+
envFiles.add(resolve(dir, mirror));
|
|
99
|
+
},
|
|
100
|
+
secret(key, value) {
|
|
101
|
+
const short = [value, ...urlPasswords(value)].some((form) => redactor.add(key, form) === 'short');
|
|
102
|
+
if (short)
|
|
103
|
+
warnShort([key]);
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
package/dist/lock.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DeployError } from './context.js';
|
|
2
|
+
import type { Host } from './host.js';
|
|
3
|
+
import { type LockHolder } from './protocol.js';
|
|
4
|
+
/**
|
|
5
|
+
* One deploy at a time per app: `<stateDir>/deploy.lock`, created with
|
|
6
|
+
* O_EXCL (never followed through a symlink), holding who took it. Two runs —
|
|
7
|
+
* a cron and a person, say — would otherwise interleave fetch, build,
|
|
8
|
+
* migrate and restart, and each rewrite `releases.json` from its own read.
|
|
9
|
+
*
|
|
10
|
+
* A lock whose process is gone (same host, dead pid) is stale and taken
|
|
11
|
+
* over; anything else is refused, fail-closed, with the way to clear it.
|
|
12
|
+
*/
|
|
13
|
+
export type { LockHolder } from './protocol.js';
|
|
14
|
+
export declare const lockFile: (stateDir: string) => string;
|
|
15
|
+
/** Held for the few milliseconds a stale lock is replaced: only one process judges and removes it. */
|
|
16
|
+
export declare const takeoverFile: (stateDir: string) => string;
|
|
17
|
+
export declare class DeployLockedError extends DeployError {
|
|
18
|
+
readonly holder?: LockHolder | undefined;
|
|
19
|
+
constructor(message: string, holder?: LockHolder | undefined);
|
|
20
|
+
}
|
|
21
|
+
export interface LockState {
|
|
22
|
+
path: string;
|
|
23
|
+
holder?: LockHolder;
|
|
24
|
+
/** The holder's process is gone (same host): the next deploy takes it over. */
|
|
25
|
+
stale: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The holder (a detached run) is gone but processes of its group still
|
|
28
|
+
* run — a build or a migration it started: not stale until they end.
|
|
29
|
+
*/
|
|
30
|
+
orphans?: true;
|
|
31
|
+
/** Not a lock this package wrote (empty, or not JSON): refused until removed by hand. */
|
|
32
|
+
corrupt: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** The lock as it is now, or `undefined` when no deploy holds it. */
|
|
35
|
+
export declare function readLock(host: Host, stateDir: string): Promise<LockState | undefined>;
|
|
36
|
+
export declare const describeHolder: (h: LockHolder) => string;
|
|
37
|
+
/**
|
|
38
|
+
* Takes the lock or throws {@link DeployLockedError}. Returns the release,
|
|
39
|
+
* which removes the file only while it is still this process's lock.
|
|
40
|
+
*
|
|
41
|
+
* Every removal is unlink(2), never recursive: the directory may be the app
|
|
42
|
+
* user's while root holds the lock, and a lock swapped for a directory or a
|
|
43
|
+
* link must not lead root into removing anything else.
|
|
44
|
+
*/
|
|
45
|
+
export declare function acquireLock(host: Host, stateDir: string, command: string, actor: string, runId?: string): Promise<() => Promise<void>>;
|
package/dist/lock.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { DeployError } from './context.js';
|
|
3
|
+
import { RUN_ID } from './protocol.js';
|
|
4
|
+
export const lockFile = (stateDir) => join(stateDir, 'deploy.lock');
|
|
5
|
+
/** Held for the few milliseconds a stale lock is replaced: only one process judges and removes it. */
|
|
6
|
+
export const takeoverFile = (stateDir) => join(stateDir, 'deploy.lock.takeover');
|
|
7
|
+
const MAX_LOCK_BYTES = 4096;
|
|
8
|
+
/**
|
|
9
|
+
* The lock file's text, read without following a link and at most 4 KiB —
|
|
10
|
+
* the state directory is the app user's, and root takes this lock too
|
|
11
|
+
* (`install`): a link to /dev/zero or a FIFO there must not hang root.
|
|
12
|
+
* `undefined` when it is not there; '' when it is not a plain small file.
|
|
13
|
+
*/
|
|
14
|
+
async function readLockText(host, path) {
|
|
15
|
+
if (!(await host.exists(path)))
|
|
16
|
+
return undefined;
|
|
17
|
+
try {
|
|
18
|
+
return await host.readPlainFile(path, MAX_LOCK_BYTES);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return (await host.exists(path)) ? '' : undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const sameHolder = (a, b) => a !== undefined && a.pid === b.pid && a.host === b.host && a.startedAt === b.startedAt;
|
|
25
|
+
export class DeployLockedError extends DeployError {
|
|
26
|
+
holder;
|
|
27
|
+
constructor(message, holder) {
|
|
28
|
+
super(message);
|
|
29
|
+
this.holder = holder;
|
|
30
|
+
this.name = 'DeployLockedError';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function parseHolder(text) {
|
|
34
|
+
if (!text)
|
|
35
|
+
return undefined;
|
|
36
|
+
try {
|
|
37
|
+
const value = JSON.parse(text);
|
|
38
|
+
if (typeof value.pid !== 'number' || typeof value.host !== 'string')
|
|
39
|
+
return undefined;
|
|
40
|
+
return {
|
|
41
|
+
pid: value.pid,
|
|
42
|
+
host: value.host,
|
|
43
|
+
startedAt: String(value.startedAt ?? ''),
|
|
44
|
+
actor: String(value.actor ?? ''),
|
|
45
|
+
command: String(value.command ?? ''),
|
|
46
|
+
...(typeof value.runId === 'string' && RUN_ID.test(value.runId) ? { runId: value.runId } : {}),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/** The lock as it is now, or `undefined` when no deploy holds it. */
|
|
54
|
+
export async function readLock(host, stateDir) {
|
|
55
|
+
const path = lockFile(stateDir);
|
|
56
|
+
const text = await readLockText(host, path);
|
|
57
|
+
if (text === undefined)
|
|
58
|
+
return undefined;
|
|
59
|
+
const holder = parseHolder(text);
|
|
60
|
+
if (!holder)
|
|
61
|
+
return { path, stale: false, corrupt: true };
|
|
62
|
+
const gone = holder.host === host.hostname() && !host.processAlive(holder.pid);
|
|
63
|
+
// A detached run leads its own group (its pid is the group's id): what it started may outlive it.
|
|
64
|
+
const orphans = gone && holder.runId !== undefined && host.processGroupAlive?.(holder.pid) === true;
|
|
65
|
+
return { path, holder, stale: gone && !orphans, corrupt: false, ...(orphans ? { orphans: true } : {}) };
|
|
66
|
+
}
|
|
67
|
+
export const describeHolder = (h) => `${h.command || 'a deploy'} by ${h.actor || 'someone'} (pid ${h.pid} on ${h.host}, since ${h.startedAt || 'an unknown time'})`;
|
|
68
|
+
/**
|
|
69
|
+
* Takes the lock or throws {@link DeployLockedError}. Returns the release,
|
|
70
|
+
* which removes the file only while it is still this process's lock.
|
|
71
|
+
*
|
|
72
|
+
* Every removal is unlink(2), never recursive: the directory may be the app
|
|
73
|
+
* user's while root holds the lock, and a lock swapped for a directory or a
|
|
74
|
+
* link must not lead root into removing anything else.
|
|
75
|
+
*/
|
|
76
|
+
export async function acquireLock(host, stateDir, command, actor, runId) {
|
|
77
|
+
await host.mkdir(stateDir, 0o700);
|
|
78
|
+
const path = lockFile(stateDir);
|
|
79
|
+
const mine = { pid: host.pid(), host: host.hostname(), startedAt: host.now().toISOString(), actor, command, ...(runId ? { runId } : {}) };
|
|
80
|
+
const text = `${JSON.stringify(mine)}\n`;
|
|
81
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
82
|
+
if (await host.createExclusive(path, text, 0o600)) {
|
|
83
|
+
return async () => {
|
|
84
|
+
if (sameHolder(parseHolder(await readLockText(host, path)), mine))
|
|
85
|
+
await host.removeFile(path);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const state = await readLock(host, stateDir);
|
|
89
|
+
if (!state)
|
|
90
|
+
continue;
|
|
91
|
+
if (state.corrupt) {
|
|
92
|
+
throw new DeployLockedError(`${path} exists but is not a deploy lock (empty, unreadable or not a plain file) — if no deploy is running: rm ${path}`);
|
|
93
|
+
}
|
|
94
|
+
const holder = state.holder;
|
|
95
|
+
if (state.stale && attempt === 0) {
|
|
96
|
+
await takeOver(host, stateDir, holder, mine);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if (state.orphans) {
|
|
100
|
+
throw new DeployLockedError(`the deploy that holds the lock is gone, but processes it started still run: ${describeHolder(holder)} — wait for them to end, or stop them (kill -TERM -${holder.pid}); the lock is taken over once none is left`, holder);
|
|
101
|
+
}
|
|
102
|
+
throw new DeployLockedError(`another deploy is running: ${describeHolder(holder)} — wait for it${holder.host === host.hostname() ? '' : `, or, if nothing runs on ${holder.host}: rm ${path}`}`, holder);
|
|
103
|
+
}
|
|
104
|
+
throw new DeployLockedError(`could not take ${path}`);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Removes a stale lock — only the one judged stale. Two deploys that both
|
|
108
|
+
* read the same dead holder would otherwise each remove "it": the second
|
|
109
|
+
* removal would hit the first one's fresh lock, and both would run. The
|
|
110
|
+
* takeover file (O_EXCL) lets one process at a time re-read and remove; the
|
|
111
|
+
* other is told a deploy is starting.
|
|
112
|
+
*/
|
|
113
|
+
async function takeOver(host, stateDir, stale, mine) {
|
|
114
|
+
const path = lockFile(stateDir);
|
|
115
|
+
const guard = takeoverFile(stateDir);
|
|
116
|
+
if (!(await host.createExclusive(guard, `${JSON.stringify(mine)}\n`, 0o600))) {
|
|
117
|
+
throw new DeployLockedError(`another deploy is taking over the stale lock in ${stateDir} — if none runs (a takeover lasts milliseconds): rm ${guard}`);
|
|
118
|
+
}
|
|
119
|
+
try {
|
|
120
|
+
if (sameHolder(parseHolder(await readLockText(host, path)), stale)) {
|
|
121
|
+
host.out.warn(`removed a stale lock: ${describeHolder(stale)} — that process is gone`);
|
|
122
|
+
await host.removeFile(path);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
finally {
|
|
126
|
+
await host.removeFile(guard);
|
|
127
|
+
}
|
|
128
|
+
}
|
package/dist/pipeline.d.ts
CHANGED
|
@@ -11,7 +11,56 @@ export type Skippable = 'fetch' | 'backup' | 'tls';
|
|
|
11
11
|
export declare const SKIPPABLE: readonly Skippable[];
|
|
12
12
|
export interface RunOptions {
|
|
13
13
|
skip?: Skippable[];
|
|
14
|
+
/** Who runs it, for the lock and the release record. Default `$USER`. */
|
|
15
|
+
actor?: string;
|
|
16
|
+
/** Deploy the commit a manual rollback left (the hold), deliberately. */
|
|
17
|
+
unhold?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Run as root anyway. Refused by default: a deploy as root builds and runs
|
|
20
|
+
* the app's code (and deploy.config.ts) as root, and leaves root-owned files
|
|
21
|
+
* the app user can no longer replace.
|
|
22
|
+
*/
|
|
23
|
+
allowRoot?: boolean;
|
|
24
|
+
/** `--via=ui`: recorded as the audit's `via` (RFC 0008 §8.6). */
|
|
25
|
+
via?: 'ui';
|
|
26
|
+
/** Set by the CLI under `--json` (RFC 0008); never by a config. */
|
|
27
|
+
protocol?: ProtocolHooks;
|
|
14
28
|
}
|
|
29
|
+
export interface ProtocolHooks {
|
|
30
|
+
/** Written into the lock holder: what `attach` and `cancel` name. */
|
|
31
|
+
runId?: string;
|
|
32
|
+
/** Before the lock: the answers sent up front are checked (a bad one fails here, nothing changed). */
|
|
33
|
+
beforeLock?: () => Promise<void>;
|
|
34
|
+
/** Right after the lock is taken (run-log retention). */
|
|
35
|
+
afterLock?: () => Promise<void>;
|
|
36
|
+
/** The `.env` questions are done: no answer is read after this. */
|
|
37
|
+
afterAnswers?: () => void;
|
|
38
|
+
}
|
|
39
|
+
/** run, env and rollback are the app user's (RFC 0006 §11.4): never root unless asked. */
|
|
40
|
+
export declare function refuseRoot(host: DeployContext['host'], command: string, allowRoot?: boolean): void;
|
|
41
|
+
/**
|
|
42
|
+
* The remote and branch a deploy fetches, checked again here (a config built
|
|
43
|
+
* in code may skip validateConfig): each reaches git as an argument, and a
|
|
44
|
+
* name starting with `-` would be an option (`--upload-pack=<cmd>`). The
|
|
45
|
+
* fetch names both refs in full, after `--`.
|
|
46
|
+
*/
|
|
47
|
+
export declare function gitTarget(ctx: DeployContext): {
|
|
48
|
+
remote: string;
|
|
49
|
+
branch: string;
|
|
50
|
+
head: string;
|
|
51
|
+
tracking: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The fetch: both refs in full, after `--`, and forced (`+`) — like the
|
|
55
|
+
* remote's default refspec. A branch rewritten upstream (the usual fix after
|
|
56
|
+
* a rollback) must still reach the tracking ref; the `merge --ff-only` that
|
|
57
|
+
* follows is what refuses history rewritten under the checkout.
|
|
58
|
+
*/
|
|
59
|
+
export declare const fetchArgs: (target: {
|
|
60
|
+
remote: string;
|
|
61
|
+
head: string;
|
|
62
|
+
tracking: string;
|
|
63
|
+
}) => string[];
|
|
15
64
|
export interface Preflight {
|
|
16
65
|
findings: Finding[];
|
|
17
66
|
port: number;
|
|
@@ -40,9 +89,8 @@ export declare function backupDecision(config: DeployContext['config'], values:
|
|
|
40
89
|
};
|
|
41
90
|
export declare function plan(ctx: DeployContext, options?: RunOptions): Promise<number>;
|
|
42
91
|
/** `basalt-deploy env` — the .env and the infra only (first setup, before `install`). */
|
|
43
|
-
export declare function envCommand(ctx: DeployContext): Promise<number>;
|
|
92
|
+
export declare function envCommand(ctx: DeployContext, options?: RunOptions): Promise<number>;
|
|
44
93
|
export declare function run(ctx: DeployContext, options?: RunOptions): Promise<number>;
|
|
45
94
|
/** `basalt-deploy rollback [--to=<sha>]` — code only; the database stays as it is. */
|
|
46
|
-
export declare function rollback(ctx: DeployContext, to?: string): Promise<number>;
|
|
95
|
+
export declare function rollback(ctx: DeployContext, to?: string, options?: RunOptions): Promise<number>;
|
|
47
96
|
export declare function status(ctx: DeployContext): Promise<number>;
|
|
48
|
-
export declare function install(ctx: DeployContext, user: string | undefined): Promise<number>;
|