UNPKG

@amplience/dc-cli

Version:
27 lines (26 loc) 725 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContentCleanStep = void 0; const archive_1 = require("../../content-item/archive"); const clean_hub_step_1 = require("../model/clean-hub-step"); class ContentCleanStep { getId() { return clean_hub_step_1.CleanHubStepId.Content; } getName() { return 'Clean Content'; } async run(argv) { try { await (0, archive_1.handler)({ ...argv }); } catch (e) { argv.logFile.appendLine(`ERROR: Could not archive content. \n${e}`); return false; } return true; } } exports.ContentCleanStep = ContentCleanStep;