UNPKG

808 BJavaScriptView Raw
1'use strict';
2
3const child = require('child_process');
4const path = require('path');
5const cli = require('heroku-cli-util');
6const exec = require('heroku-exec-util');
7const https = require('https')
8const http = require('http')
9const fs = require('fs');
10const co = require('co');
11const url = require('url');
12
13module.exports = function(topic, command) {
14 return {
15 topic: topic,
16 command: command,
17 description: 'Check the status of your heroku-exec add-on',
18 help: `Example:
19
20 $ heroku ps:status --app murmuring-headland-14719`,
21 args: [],
22 needsApp: true,
23 needsAuth: true,
24 run: cli.command(co.wrap(run))
25 }
26};
27
28function * run(context, heroku) {
29 yield exec.initFeature(context, heroku, function *(configVars) {
30 yield exec.checkStatus(context, heroku, configVars);
31 });
32}