Skip to content

Commit

Permalink
Merge pull request #171 from meteor-velocity/mirror_stablization
Browse files Browse the repository at this point in the history
Mirror stablization
  • Loading branch information
queso committed Nov 12, 2014
2 parents da0a973 + 76a73cc commit 7524921
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 160 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Expand Up @@ -31,6 +31,7 @@
"VelocityTestFiles": false,
"VelocityTestReports": false,
"VelocityAggregateReports": false,
"VelocityLogs": false
"VelocityLogs": false,
"VelocityVars": false
}
}
6 changes: 5 additions & 1 deletion History.md
@@ -1,7 +1,11 @@
## v.NEXT
## v1.0.0.rc.3

* Mirror output is now visible by default
* Mirrors now use DDP to notify frameworks of up-ness
* Fixed mirror dying on server restarts (YAY!)

## v1.0.0.rc.2
???

## v1.0.0.rc.1

Expand Down
9 changes: 7 additions & 2 deletions collections.js
Expand Up @@ -4,7 +4,8 @@
VelocityTestReports: true,
VelocityAggregateReports: true,
VelocityLogs: true,
VelocityMirrors: true
VelocityMirrors: true,
VelocityVars: true
*/

VelocityTestFiles = new Meteor.Collection('velocityTestFiles');
Expand All @@ -13,7 +14,7 @@ VelocityTestReports = new Meteor.Collection('velocityTestReports');
VelocityAggregateReports = new Meteor.Collection('velocityAggregateReports');
VelocityLogs = new Meteor.Collection('velocityLogs');
VelocityMirrors = new Meteor.Collection('velocityMirrors');

VelocityVars = new Meteor.Collection('velocityVars');
(function () {
'use strict';

Expand All @@ -36,6 +37,9 @@ VelocityMirrors = new Meteor.Collection('velocityMirrors');
Meteor.publish('VelocityMirrors', function () {
return VelocityMirrors.find({});
});
Meteor.publish('VelocityVars', function () {
return VelocityVars.find({});
});
}

if (Meteor.isClient) {
Expand All @@ -45,5 +49,6 @@ VelocityMirrors = new Meteor.Collection('velocityMirrors');
Meteor.subscribe('VelocityAggregateReports');
Meteor.subscribe('VelocityLogs');
Meteor.subscribe('VelocityMirrors');
Meteor.subscribe('VelocityVars');
}
})();

0 comments on commit 7524921

Please sign in to comment.