2014-08-26 02:55:32 +02:00
|
|
|
module.exports = function (grunt) {
|
2014-09-04 00:15:58 +02:00
|
|
|
var jrubyPath = grunt.config.get('jrubyPath');
|
|
|
|
var jruby = jrubyPath + '/bin/jruby';
|
2014-09-08 19:52:06 +02:00
|
|
|
var cmd = grunt.config.get('src') + '/server/bin/initialize';
|
2014-09-04 00:15:58 +02:00
|
|
|
|
2014-08-26 02:55:32 +02:00
|
|
|
var config = {
|
2014-09-04 00:15:58 +02:00
|
|
|
mri_server: {
|
|
|
|
options: {
|
2014-09-11 23:33:36 +02:00
|
|
|
wait: false,
|
|
|
|
ready: /kibana server started/i
|
2014-09-04 00:15:58 +02:00
|
|
|
},
|
|
|
|
cmd: cmd
|
|
|
|
},
|
|
|
|
jruby_server: {
|
2014-08-26 02:55:32 +02:00
|
|
|
options: {
|
2014-09-11 23:33:36 +02:00
|
|
|
wait: false,
|
|
|
|
ready: /kibana server started/i
|
2014-08-26 02:55:32 +02:00
|
|
|
},
|
2014-09-04 00:15:58 +02:00
|
|
|
cmd: jruby,
|
|
|
|
args: [
|
|
|
|
cmd
|
|
|
|
]
|
2014-08-26 02:55:32 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
return config;
|
|
|
|
|
|
|
|
};
|