var hashmerge = require('hashmerge'); var readYaml = require('read-yaml'); var shelljs = require('shelljs'); var shelljs_global = require('shelljs/global'); var web3 = require('web3'); var express = require('express'); var compression = require('compression'); var commander = require('commander'); var wrench = require('wrench'); var python = require('python'); var syncMe = require('sync-me'); var methodmissing = require('methodmissing'); var jasmine = require('jasmine'); var Tests = require('./test.js'); var Blockchain = require('./blockchain.js'); var Deploy = require('./deploy.js'); var Release = require('./ipfs.js'); var Config = require('./config/config.js'); Embark = { init: function() { this.blockchainConfig = (new Config.Blockchain()); this.contractsConfig = (new Config.Contracts(this.blockchainConfig, web3)); }, tests: function(contractFiles) { return new Tests(this.contractsConfig, contractFiles); }, startBlockchain: function(env) { var chain = new Blockchain(this.blockchainConfig.config(env)); chain.startChain(); }, deployContracts: function(env, contractFiles) { this.contractsConfig.init(env, contractFiles); var deploy = new Deploy(env, contractFiles, this.blockchainConfig.config(env), this.contractsConfig); deploy.deploy_contracts(env); return deploy.generate_abi_file(); }, release: Release } module.exports = Embark;