serve -> ready

This commit is contained in:
AJ ONeal 2019-11-03 01:28:37 -07:00
parent 5068097090
commit a360abda01
3 changed files with 9 additions and 3 deletions

View File

@ -37,7 +37,7 @@ Master.create = function(opts) {
}
var master = {
serve: function() {
ready: function() {
kickoff();
return master;
},
@ -50,6 +50,8 @@ Master.create = function(opts) {
return master;
}
};
// backwards compat starts early...
master.serve = master.ready;
return master;
};

View File

@ -11,7 +11,7 @@ Single.create = function(opts) {
var servers = Servers.create(greenlock);
var single = {
serve: function(fn) {
ready: function(fn) {
fn(servers);
return single;
},
@ -21,5 +21,7 @@ Single.create = function(opts) {
return single;
}
};
// backwards compat starts now
single.serve = single.ready;
return single;
};

View File

@ -14,7 +14,7 @@ Worker.create = function() {
});
var worker = {
serve: function(fn) {
ready: function(fn) {
var servers = require("./servers.js").create(greenlock);
fn(servers);
return worker;
@ -24,6 +24,8 @@ Worker.create = function() {
return worker;
}
};
// backwards compat starts early...
worker.serve = worker.ready;
return worker;
};