Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
06256f7a4d | |||
be6fc3adfd |
0
dist/cert.hook.js
vendored
Normal file → Executable file
0
dist/cert.hook.js
vendored
Normal file → Executable file
3
dist/index.js
vendored
3
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cert",
|
"name": "cert",
|
||||||
"version": "0.0.16",
|
"version": "0.0.17",
|
||||||
"description": "Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready.",
|
"description": "Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
@ -18,7 +18,7 @@ describe("cert", function () {
|
|||||||
});
|
});
|
||||||
describe("Cert", function () {
|
describe("Cert", function () {
|
||||||
it("should create a new Cert object from class", function () {
|
it("should create a new Cert object from class", function () {
|
||||||
this.timeout(20000);
|
this.timeout(40000);
|
||||||
testCert = new cert.Cert({
|
testCert = new cert.Cert({
|
||||||
cfEmail: process.env.CF_EMAIL,
|
cfEmail: process.env.CF_EMAIL,
|
||||||
cfKey: process.env.CF_KEY,
|
cfKey: process.env.CF_KEY,
|
||||||
@ -30,7 +30,7 @@ describe("cert", function () {
|
|||||||
});
|
});
|
||||||
it("should get a valid certificate", function (done) {
|
it("should get a valid certificate", function (done) {
|
||||||
this.timeout(120000);
|
this.timeout(120000);
|
||||||
testCert.getDomainCert("hello2.bleu.de").then(function () {
|
testCert.getDomainCert("hello4.bleu.de").then(function () {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -22,7 +22,7 @@ describe("cert",function(){
|
|||||||
})
|
})
|
||||||
describe("Cert",function(){
|
describe("Cert",function(){
|
||||||
it("should create a new Cert object from class",function(){
|
it("should create a new Cert object from class",function(){
|
||||||
this.timeout(20000);
|
this.timeout(40000);
|
||||||
testCert = new cert.Cert({
|
testCert = new cert.Cert({
|
||||||
cfEmail: process.env.CF_EMAIL,
|
cfEmail: process.env.CF_EMAIL,
|
||||||
cfKey: process.env.CF_KEY,
|
cfKey: process.env.CF_KEY,
|
||||||
@ -34,7 +34,7 @@ describe("cert",function(){
|
|||||||
})
|
})
|
||||||
it("should get a valid certificate",function(done){
|
it("should get a valid certificate",function(done){
|
||||||
this.timeout(120000);
|
this.timeout(120000);
|
||||||
testCert.getDomainCert("hello2.bleu.de").then(() => {
|
testCert.getDomainCert("hello4.bleu.de").then(() => {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
@ -77,6 +77,7 @@ export class Cert {
|
|||||||
let fetchedCertsArray: string[] = plugins.smartfile.fs.listFoldersSync(paths.certDir);
|
let fetchedCertsArray: string[] = plugins.smartfile.fs.listFoldersSync(paths.certDir);
|
||||||
if (fetchedCertsArray.indexOf(domainNameArg) != -1) {
|
if (fetchedCertsArray.indexOf(domainNameArg) != -1) {
|
||||||
updateSslDirSync(this._sslDir, domainNameArg);
|
updateSslDirSync(this._sslDir, domainNameArg);
|
||||||
|
plugins.smartfile.fs.removeSync(plugins.path.join(paths.certDir,domainNameArg));
|
||||||
}
|
}
|
||||||
this.sslGitOriginAddCommitPush();
|
this.sslGitOriginAddCommitPush();
|
||||||
done.resolve();
|
done.resolve();
|
||||||
|
Reference in New Issue
Block a user