mirror of https://github.com/embarklabs/embark.git
remove engine param
This commit is contained in:
parent
47eb457457
commit
fda1036845
|
@ -81,7 +81,7 @@ class Engine {
|
||||||
}
|
}
|
||||||
|
|
||||||
graphService(_options) {
|
graphService(_options) {
|
||||||
this.registerModule('graph', {engine: this});
|
this.registerModule('graph');
|
||||||
}
|
}
|
||||||
|
|
||||||
pipelineService(_options) {
|
pipelineService(_options) {
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
const Viz = require('viz.js');
|
const Viz = require('viz.js');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
// TODO: refactor this class to use the plugin api and not refeneences directly
|
|
||||||
class GraphGenerator {
|
class GraphGenerator {
|
||||||
constructor(embark, options) {
|
constructor(embark, options) {
|
||||||
const self = this;
|
const self = this;
|
||||||
this.events = embark.events;
|
this.events = embark.events;
|
||||||
// TODO: this is a very bad dependency to have here, needs to be refactored to use events, etc..
|
|
||||||
this.engine = options.engine;
|
|
||||||
|
|
||||||
this.events.setCommandHandler("graph:create", function(options, cb) {
|
this.events.setCommandHandler("graph:create", function(options, cb) {
|
||||||
self.generate(options);
|
self.generate(options);
|
||||||
|
|
Loading…
Reference in New Issue