heroku-apps
Version:
Heroku CLI plugin to manage apps.
16 lines (14 loc) • 423 B
JavaScript
;
let h = require('heroku-cli-util');
module.exports = {
topic: 'maintenance',
command: 'off',
description: 'take the app out of maintenance mode',
needsApp: true,
needsAuth: true,
run: h.command(function* (context, heroku) {
let app = context.app;
let p = heroku.apps(app).update({maintenance: false});
yield h.action(`Disabling maintenance mode for ${h.color.cyan(app)}`, p);
})
};