Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Add gtg as a high level task (#523)
Browse files Browse the repository at this point in the history
🐿 v2.7.0
  • Loading branch information
tbergmen authored Sep 27, 2018
1 parent 43db6ee commit 075ff49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/n-heroku-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('*')
Expand Down
12 changes: 12 additions & 0 deletions tasks/gtg.js
Original file line number Diff line number Diff line change
@@ -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);
});
};

0 comments on commit 075ff49

Please sign in to comment.