diff --git a/bin/n-heroku-tools.js b/bin/n-heroku-tools.js index 88b567b5..1be8ad1d 100755 --- a/bin/n-heroku-tools.js +++ b/bin/n-heroku-tools.js @@ -36,6 +36,7 @@ require('../tasks/ship')(program, utils); require('../tasks/float')(program, utils); require('../tasks/drydock')(program, utils); require('../tasks/smoke')(program, utils); +require('../tasks/gtg')(program, utils); program .command('*') diff --git a/tasks/gtg.js b/tasks/gtg.js new file mode 100644 index 00000000..493945f5 --- /dev/null +++ b/tasks/gtg.js @@ -0,0 +1,12 @@ +const host = require('../lib/host'); +const waitForOk = require('../lib/wait-for-ok'); + +module.exports = function (program) { + program + .command('gtg [app]') + .description('Runs gtg checks for an app') + .action(function (app) { + const url = `${host.url(app)}/__gtg`; + return waitForOk(url); + }); +};