hosty
Version:
A code based opinionated way to self-host and manage web apps.
31 lines • 944 B
TypeScript
import { CommonTaskAttrs, Block } from '../ansible/index.js';
type CommandAsserts = {
success?: boolean;
exit_code?: number;
stdout?: string;
stdout_contains?: string;
stdout_doesnt_contain?: string;
stderr?: string;
stderr_contains?: string;
stderr_doesnt_contain?: string;
};
export declare function command(cmd: string, assertions: CommandAsserts, common?: CommonTaskAttrs): Block;
type FileAsserts = {
exists?: boolean;
owner?: string;
group?: string;
mode?: string;
content_equals?: string;
contains?: string;
doesnt_contain?: string;
};
export declare function file(path: string, assertions: FileAsserts): Block;
export declare function yaml(path: string, data: any): Block;
type DirAsserts = {
owner?: string;
group?: string;
mode?: string;
};
export declare function dir(path: string, assertions: DirAsserts): Block;
export {};
//# sourceMappingURL=assert.d.ts.map