serve -> ready
This commit is contained in:
parent
5068097090
commit
a360abda01
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue