diff --git a/lib/cmd.js b/lib/cmd.js index f2a21bf67..b314b714c 100644 --- a/lib/cmd.js +++ b/lib/cmd.js @@ -3,7 +3,7 @@ var colors = require('colors'); var Cmd = function(Embark) { this.Embark = Embark; - program.version('2.1.3'); + program.version(Embark.version); }; Cmd.prototype.process = function(args) { diff --git a/lib/index.js b/lib/index.js index 936fec6fd..b99b5a547 100644 --- a/lib/index.js +++ b/lib/index.js @@ -26,6 +26,8 @@ var IPFS = require('./ipfs.js'); var Embark = { + version: '2.1.3', + process: function(args) { var cmd = new Cmd(Embark); cmd.process(args); @@ -66,7 +68,7 @@ var Embark = { function welcome(callback) { if (!options.useDashboard) { console.log('========================'.bold.green); - console.log('Welcome to Embark 2.1.3'.yellow.bold); + console.log(('Welcome to Embark ' + Embark.version).yellow.bold); console.log('========================'.bold.green); } callback(); @@ -96,7 +98,8 @@ var Embark = { config: Embark.config, serverHost: options.serverHost, serverPort: options.serverPort, - runWebserver: options.runWebserver + runWebserver: options.runWebserver, + version: Embark.version }); Embark.servicesMonitor.startMonitor(); callback(); diff --git a/lib/services.js b/lib/services.js index b5f5fb14f..c56b69cf5 100644 --- a/lib/services.js +++ b/lib/services.js @@ -9,6 +9,7 @@ var ServicesMonitor = function(options) { this.serverHost = options.serverHost || 'localhost'; this.serverPort = options.serverPort || 8000; this.runWebserver = options.runWebserver; + this.version = options.version; }; ServicesMonitor.prototype.startMonitor = function() { @@ -30,7 +31,7 @@ ServicesMonitor.prototype.check = function() { }, function addEmbarkVersion(web3, result, callback) { self.logger.trace('addEmbarkVersion'); - result.push('Embark 2.1.3'.green); + result.push(('Embark ' + self.version).green); callback(null, web3, result); }, function checkEthereum(web3, result, callback) {