UNPKG

@wocker/core

Version:
39 lines (38 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Preset = void 0; class Preset { constructor(data) { this.name = data.name; this.version = data.version; this.type = data.type; this.source = data.source; this.path = data.path; this.image = data.image; this.dockerfile = data.dockerfile; this.buildArgsOptions = data.buildArgsOptions; this.envOptions = data.envOptions; this.volumes = data.volumes; this.volumeOptions = data.volumeOptions; } /** * @deprecated */ toJSON() { return this.toObject(); } toObject() { return { name: this.name, version: this.version, type: this.type, image: this.image, dockerfile: this.dockerfile, buildArgsOptions: this.buildArgsOptions, envOptions: this.envOptions, volumes: this.volumes, volumeOptions: this.volumeOptions }; } } exports.Preset = Preset;