Skip to content

Commit

Permalink
Rename WealthPulseServer class
Browse files Browse the repository at this point in the history
Renamed `WealthPulseServer` class to `WealthPulseServerController`
  • Loading branch information
readysetmark committed Nov 29, 2015
1 parent 746ec9b commit bd51185
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions WealthPulseApp/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var path = require('path');
var fs = require('fs');
var app = require('app'); // Module to control application life.
var BrowserWindow = require('browser-window'); // Module to create native browser window.
var WealthPulseServer = require('./wealthpulseserver');
var WealthPulseServerController = require('./wealthpulseservercontroller');

// Report crashes to our server.
//require('crash-reporter').start();
Expand Down Expand Up @@ -42,7 +42,7 @@ app.on('window-all-closed', function() {
// initialization and is ready to create browser windows.
app.on('ready', function() {
// Spawn WealthPulse server
var server = new WealthPulseServer();
var server = new WealthPulseServerController();

server.on('ready', function (location) {
// Create the browser window.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ var util = require('util');
var spawn = require('child_process').spawn;
var EventEmitter = require('events').EventEmitter;

function WealthPulseServer () {
function WealthPulseServerController () {
EventEmitter.call(this);
this.serverProcess = null;
}

util.inherits(WealthPulseServer, EventEmitter);
util.inherits(WealthPulseServerController, EventEmitter);

WealthPulseServer.prototype.spawn = function (command, args, options) {
WealthPulseServerController.prototype.spawn = function (command, args, options) {
this.serverProcess = spawn(command, args, options);

var self = this;
Expand All @@ -30,9 +30,9 @@ WealthPulseServer.prototype.spawn = function (command, args, options) {
});
};

WealthPulseServer.prototype.kill = function (signal) {
WealthPulseServerController.prototype.kill = function (signal) {
this.serverProcess.kill(signal);
this.serverProcess = null;
}

module.exports = WealthPulseServer;
module.exports = WealthPulseServerController;

0 comments on commit bd51185

Please sign in to comment.