add getOptions

This commit is contained in:
AJ ONeal 2016-08-08 12:02:53 -06:00
parent c1513fe120
commit 01f283b7fd
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,15 @@ function create(deps) {
deps.LeCore.getAcmeUrls = require('./lib/get-acme-urls').create(deps);
deps.LeCore.registerNewAccount = require('./lib/register-new-account').create(deps);
deps.LeCore.getCertificate = require('./lib/get-certificate').create(deps);
deps.LeCore.getOptions = function () {
var defs = {};
Object.keys(defaults).forEach(function (key) {
defs[key] = defs[deps] || defaults[key];
});
return defs;
};
deps.Acme = deps.LeCore.Acme;