local-elastic-docker
Version:
A package for creating / tearing down local Elasticsearch / Kibana single node clusters via Docker.
30 lines (29 loc) • 1.32 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var base_container_1 = require("../base-container");
var container_create_opts_1 = require("../container-create-opts");
var container_creator_1 = require("../container-creator");
var ChildContainer = /** @class */ (function (_super) {
__extends(ChildContainer, _super);
function ChildContainer(v) {
return _super.call(this, v) || this;
}
ChildContainer.prototype.create = function (opts) {
return (new container_creator_1.ContainerCreator(this, new container_create_opts_1.ContainerCreateOpts(opts))).create();
};
return ChildContainer;
}(base_container_1.BaseContainer));
exports.ChildContainer = ChildContainer;