Permalink
Browse files

Remove old files

  • Loading branch information...
1 parent 58a3230 commit b72ef26439c3bc4d0c3e5686e011c3e0a17619d4 @Sutto committed Jul 24, 2011
View
@@ -1,48 +0,0 @@
-(function() {
- var Base, sys;
- sys = require('sys');
- Base = (function() {
- Base.prototype.name = "unknown";
- function Base(runner) {
- var _ref, _ref2;
- this.runner = runner;
- if ((_ref = this.configNamespace) != null) {
- _ref;
- } else {
- this.configNamespace = this.name;
- };
- if ((_ref2 = this.namespace) != null) {
- _ref2;
- } else {
- this.namespace = this.name;
- };
- }
- Base.prototype.isEnabled = function() {
- return this.runner.get('chainsaw.enabled', []).indexOf(this.name) > -1;
- };
- Base.prototype.run = function() {
- if (this.isEnabled()) {
- sys.puts("Starting publisher: " + this.name);
- return this.setup();
- }
- };
- Base.prototype.get = function(key, defaultValue) {
- return this.runner.get("" + this.configNamespace + "." + key, defaultValue);
- };
- Base.prototype.config = function() {
- return this.runner.get(this.configNamespace);
- };
- Base.prototype.emit = function(key, message) {
- if (message != null) {
- key = "" + this.namespace + ":" + key;
- } else {
- message = key;
- key = this.namespace;
- }
- this.runner.broadcast.sockets.emit(key, message);
- return this.runner.redis.addHistory(key, JSON.stringify(message));
- };
- return Base;
- })();
- exports.Base = Base;
-}).call(this);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,48 +0,0 @@
-(function() {
- var Base, sys;
- sys = require('sys');
- Base = (function() {
- Base.prototype.name = "unknown";
- function Base(runner) {
- var _ref, _ref2;
- this.runner = runner;
- if ((_ref = this.configNamespace) != null) {
- _ref;
- } else {
- this.configNamespace = this.name;
- };
- if ((_ref2 = this.namespace) != null) {
- _ref2;
- } else {
- this.namespace = this.name;
- };
- }
- Base.prototype.isEnabled = function() {
- return this.runner.get('chainsaw.enabled', []).indexOf(this.name) > -1;
- };
- Base.prototype.run = function() {
- if (this.isEnabled()) {
- sys.puts("Starting publisher: " + this.name);
- return this.setup();
- }
- };
- Base.prototype.get = function(key, defaultValue) {
- return this.runner.get("" + this.configNamespace + "." + key, defaultValue);
- };
- Base.prototype.config = function() {
- return this.runner.get(this.configNamespace);
- };
- Base.prototype.emit = function(key, message) {
- if (message != null) {
- key = "" + this.namespace + ":" + key;
- } else {
- message = key;
- key = this.namespace;
- }
- this.runner.io.sockets.emit(key, message);
- return this.runner.redis.addHistory(key, JSON.stringify(message));
- };
- return Base;
- })();
- exports.Base = Base;
-}).call(this);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit b72ef26

Please sign in to comment.