1 | 'use strict';
|
2 |
|
3 | const child = require('child_process');
|
4 | const path = require('path');
|
5 | const cli = require('heroku-cli-util');
|
6 | const exec = require('heroku-exec-util');
|
7 | const https = require('https')
|
8 | const http = require('http')
|
9 | const fs = require('fs');
|
10 | const co = require('co');
|
11 | const url = require('url');
|
12 |
|
13 | module.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 |
|
28 | function * run(context, heroku) {
|
29 | yield exec.initFeature(context, heroku, function *(configVars) {
|
30 | yield exec.checkStatus(context, heroku, configVars);
|
31 | });
|
32 | }
|