mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
21 lines
372 B
JavaScript
21 lines
372 B
JavaScript
const Task = require('./task');
|
|
const {TaskName} = require('../utils/constants');
|
|
|
|
/**
|
|
* Redirects to a new application
|
|
*/
|
|
class TaskRedirect extends Task {
|
|
constructor(logger, opts) {
|
|
super(logger, opts);
|
|
}
|
|
|
|
get name() { return TaskName.Redirect; }
|
|
|
|
async exec(cs) {
|
|
super.exec(cs);
|
|
await this.performAction();
|
|
}
|
|
}
|
|
|
|
module.exports = TaskRedirect;
|