@wocker/core
Version:
Core of the Wocker
42 lines (41 loc) • 1.31 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PRESET_SOURCE_GITHUB = exports.PRESET_SOURCE_EXTERNAL = exports.PRESET_SOURCE_INTERNAL = 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;
exports.PRESET_SOURCE_INTERNAL = "internal";
exports.PRESET_SOURCE_EXTERNAL = "external";
exports.PRESET_SOURCE_GITHUB = "github";