mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
18 lines
413 B
JavaScript
18 lines
413 B
JavaScript
var request = require('request');
|
|
module.exports = function (grunt) {
|
|
|
|
grunt.registerTask('wait_for_jruby', 'Is it started yet?', function () {
|
|
var done = this.async();
|
|
function checkJRuby() {
|
|
request('http://127.0.0.1:5601', function (err, resp) {
|
|
if (err) {
|
|
setTimeout(checkJRuby, 1000);
|
|
} else {
|
|
done();
|
|
}
|
|
});
|
|
}
|
|
checkJRuby();
|
|
|
|
});
|
|
};
|