Comparing version 3.8.2 to 3.8.3
@@ -8,2 +8,3 @@ var temp = require('temp'); | ||
var noop = require('lodash').noop | ||
var jsYaml = require('js-yaml'); | ||
@@ -60,6 +61,7 @@ var configureLogging = require('./configureLogging'); | ||
.then(function (configs) { | ||
return Promise.all([ | ||
remove(join(dir, 'elasticsearch.yml')), | ||
writeFile(join(dir, 'elasticsearch.json'), JSON.stringify(configs.es), 'utf8'), | ||
]) | ||
return writeFile( | ||
join(dir, 'elasticsearch.yml'), | ||
jsYaml.safeDump(configs.es), | ||
'utf8' | ||
) | ||
.then(function () { | ||
@@ -66,0 +68,0 @@ return writeLogConfiguration(dir, configs, log) |
{ | ||
"name": "libesvm", | ||
"version": "3.8.2", | ||
"version": "3.8.3", | ||
"description": "libesvm is a library for managning an Elasticsearch process for development and testing.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,3 +16,3 @@ var expect = require('chai').expect; | ||
.then(function() { | ||
var tempFiles = ['elasticsearch.json', 'logging.yml']; | ||
var tempFiles = ['elasticsearch.yml', 'logging.yml']; | ||
return Promise.map(tempFiles, function(file) { | ||
@@ -52,6 +52,5 @@ return fs.writeFileAsync(join(dir, 'config', file), ''); | ||
.then(function(files) { | ||
expect(files).to.contain('elasticsearch.json'); | ||
expect(files).to.contain('elasticsearch.yml'); | ||
expect(files).to.contain('logging.json'); | ||
expect(files).to.not.contain('logging.yml'); | ||
expect(files).to.not.contain('elasticsearch.yaml'); | ||
}); | ||
@@ -58,0 +57,0 @@ }); |
2201
998433