From f9321776b1e8811a08b3df1265b9e62ea6ddf4f1 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 27 Jul 2018 13:09:07 -0400 Subject: [PATCH] move deployment to module --- lib/core/engine.js | 2 +- lib/{contracts => modules/deployment}/contract_deployer.js | 2 +- .../deploy_manager.js => modules/deployment/index.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename lib/{contracts => modules/deployment}/contract_deployer.js (99%) rename lib/{contracts/deploy_manager.js => modules/deployment/index.js} (98%) diff --git a/lib/core/engine.js b/lib/core/engine.js index 0598077f..98da3dea 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -216,7 +216,7 @@ class Engine { events: this.events }); - const DeployManager = require('../contracts/deploy_manager.js'); + const DeployManager = require('../modules/deployment/index.js'); this.deployManager = new DeployManager({ config: this.config, logger: this.logger, diff --git a/lib/contracts/contract_deployer.js b/lib/modules/deployment/contract_deployer.js similarity index 99% rename from lib/contracts/contract_deployer.js rename to lib/modules/deployment/contract_deployer.js index 8911281d..cb150d7c 100644 --- a/lib/contracts/contract_deployer.js +++ b/lib/modules/deployment/contract_deployer.js @@ -1,6 +1,6 @@ let async = require('async'); //require("../utils/debug_util.js")(__filename, async); -let utils = require('../utils/utils.js'); +let utils = require('../../utils/utils.js'); class ContractDeployer { constructor(options) { diff --git a/lib/contracts/deploy_manager.js b/lib/modules/deployment/index.js similarity index 98% rename from lib/contracts/deploy_manager.js rename to lib/modules/deployment/index.js index fc6b2374..31db0f66 100644 --- a/lib/contracts/deploy_manager.js +++ b/lib/modules/deployment/index.js @@ -1,7 +1,7 @@ let async = require('async'); const ContractDeployer = require('./contract_deployer.js'); -const utils = require('../utils/utils.js'); +const utils = require('../../utils/utils.js'); //require("../utils/debug_util.js")(__filename, async); class DeployManager {