New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

git2consul

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git2consul - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

test/git2consul_overly_large_value_test.js

15

index.js

@@ -7,11 +7,11 @@ var logging = require('./lib/utils/logging.js');

config_reader.read(function(err, config) {
if (err) return console.error(err);
logging.init(config);
var logger = require('./lib/utils/logging.js');
var git_manager_source = require('./lib/git_manager.js');
var git_manager = require('./lib/git_manager.js');
if (!config.repos || !config.repos.length > 0) {

@@ -22,8 +22,7 @@ // Fail startup.

}
// TODO: Complete repo config validation
logger.info('git2consul is running');
// Set up the git manager for each repo.
git_manager_source.createGitManagers(config.repos, function(err) {
git_manager.manageRepos(config.repos, function(err) {
if (err) {

@@ -30,0 +29,0 @@ logger.error('Failed to create git managers due to %s', err);

@@ -10,3 +10,3 @@ var fs = require('fs');

exports.createBranchManager = function(repo_config, branch, branch_creation_callback) {
exports.manageBranch = function(repo_config, branch, branch_creation_callback) {

@@ -19,3 +19,3 @@ var branch_parent = repo_config.local_store + path.sep + branch;

var pending_callbacks = [];
/*

@@ -60,11 +60,11 @@ *Create the branch manager object within the createBranchManager function so that certain state,

};
BranchManager.prototype.getRepoName = function() {
return repo_config.name;
};
BranchManager.prototype.getBranchName = function() {
return branch;
};
BranchManager.prototype.getBranchDirectory = function() {

@@ -77,17 +77,17 @@ return branch_directory;

* function allows us to manage that locking behavior and will re-run handleRefChange if one or more are
* queued up during execution of handleRefChange.
* queued up during execution of handleRefChange.
*/
var wrap_callback = function(bm, cb) {
// Once we wrap this callback, we are signalling that an update is in progress.
update_in_progress = true;
return function(err, output) {
// Callback seen. Update no longer in progress.
update_in_progress = false;
// Grab a local copy of pending callbacks and reset the array.
var my_pending_callbacks = pending_callbacks;
pending_callbacks = []
// If a request to handle a ref_change came in while we were processing a prior ref_change, run

@@ -101,7 +101,7 @@ // handleRefChange again.

});
// Reset the pending_refchange because it's been copied onto the callstack of handleRefChange.
pending_ref_change = undefined;
}
// Pass values to the original callback

@@ -111,6 +111,6 @@ cb(err, output);

};
BranchManager.prototype.handleRefChange = function(target_ref, cb) {
// If an update is pending
// If an update is pending
if (update_in_progress) {

@@ -124,6 +124,6 @@ pending_ref_change = target_ref;

};
// Create the branch manager.
var bm = new BranchManager();
// Check to see if the branch_parent is already present.

@@ -135,3 +135,3 @@ fs.stat(branch_parent, function(err, stat) {

if (err) return branch_creation_callback(err);
bm.pull(function(err, msg) {

@@ -138,0 +138,0 @@ if (err) return branch_creation_callback(err);

@@ -0,1 +1,2 @@

var _ = require('underscore');
var fs = require('fs');

@@ -19,28 +20,32 @@ var path = require('path');

*/
exports.createGitManager = function(config, cb) {
exports.manageRepo = function(config, cb) {
var branch_managers = {};
function GitManager() {}
var this_obj = new GitManager();
var branch_count = 0;
if (!config.branches || config.branches.length === 0) return cb('No branches specified');
var unique_branches = _.uniq(config.branches);
if (unique_branches.length !== config.branches.length)
return cb("Duplicate name found in branches for repo " + config.name + ": " + config.branches);
// Build the root_directory, if necessary
mkdirp(config.local_store, function(err) {
if (err) return cb('Failed to create root_directory for git manager: ' + err);
config.branches.forEach(function(branch) {
branch_manager.createBranchManager(config, branch, function(err, bm) {
branch_manager.manageBranch(config, branch, function(err, bm) {
if (err) return cb('Failed to create manager for branch ' + branch + ': ' + err);
++branch_count;
// Store the branch manager for future lookups
logger.info("Storing branch manager for %s", bm.getBranchName());
branch_managers[bm.getBranchName()] = bm;
if (branch_count === config.branches.length) {

@@ -53,3 +58,3 @@ // We have a branch manager for each branch.

var errs = [];
config.hooks.forEach(function(hook) {

@@ -60,9 +65,9 @@ var hook_provider = hook_providers[hook.type];

}
hook_provider.init(hook, this_obj);
});
if (errs.length > 0) return cb(errs);
}
cb(null, this_obj);

@@ -73,15 +78,15 @@ }

});
GitManager.prototype.getRepoName = function() {
return config.name;
};
GitManager.prototype.getBranchNames = function() {
return config.branches;
};
GitManager.prototype.getBranchManager = function(branch_name) {
return branch_managers[branch_name];
};
};

@@ -95,17 +100,21 @@

*/
exports.createGitManagers = function(repos, cb) {
exports.manageRepos = function(repos, cb) {
if (!repos || !repos.length || !(repos.length > 0)) return cb('No array of repo configs provided');
var pending_git_managers = repos.length;
var errors = [];
var git_managers = [];
var repo_names = _.pluck(repos, 'name');
var unique_names = _.uniq(repo_names);
if (unique_names.length !== repos.length) return cb("Duplicate name found in repos " + repo_names);
repos.forEach(function(repo_config) {
exports.createGitManager(repo_config, function(err, git_manager) {
exports.manageRepo(repo_config, function(err, git_manager) {
if (err) logger.error('Got error %s', err);
if (err) errors.push(err);
else git_managers.push(git_manager);
--pending_git_managers;

@@ -112,0 +121,0 @@ if (pending_git_managers === 0) {

{
"name": "git2consul",
"description": "System for moving data from git to consul",
"version": "0.0.8",
"version": "0.0.9",
"contributors": [

@@ -6,0 +6,0 @@ {

@@ -1,2 +0,2 @@

#### git2consul
#### git2consul

@@ -78,8 +78,4 @@ git2consul takes one or many git repositories and mirrors them into [Consul](http://www.consul.io/) KVs. The goal is for organizations of any size to use git as the backing store, audit trail, and access control mechanism for configuration changes and Consul as the delivery mechanism.

##### Future plans
When Consul 0.4 ships, git2consul will be updated to support the ACL system. To preserve data integrity, only systems running git2consul should be given write access to the configuration KV store.
##### License
Apache 2.0

@@ -1,1 +0,1 @@

{"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/logging.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/logging.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":0,"8":1,"9":1,"10":0,"11":1,"12":0,"13":1},"b":{"1":[0,1],"2":[0,1],"3":[0,1]},"f":{"1":1,"2":1},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":22},"end":{"line":11,"column":39}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":32},"end":{"line":17,"column":49}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":50}},"4":{"start":{"line":8,"column":0},"end":{"line":8,"column":59}},"5":{"start":{"line":11,"column":0},"end":{"line":23,"column":2}},"6":{"start":{"line":15,"column":2},"end":{"line":15,"column":29}},"7":{"start":{"line":15,"column":22},"end":{"line":15,"column":29}},"8":{"start":{"line":17,"column":2},"end":{"line":20,"column":5}},"9":{"start":{"line":18,"column":4},"end":{"line":19,"column":80}},"10":{"start":{"line":18,"column":44},"end":{"line":18,"column":75}},"11":{"start":{"line":19,"column":9},"end":{"line":19,"column":80}},"12":{"start":{"line":19,"column":49},"end":{"line":19,"column":80}},"13":{"start":{"line":22,"column":2},"end":{"line":22,"column":54}}},"branchMap":{"1":{"line":15,"type":"if","locations":[{"start":{"line":15,"column":2},"end":{"line":15,"column":2}},{"start":{"line":15,"column":2},"end":{"line":15,"column":2}}]},"2":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":4}},{"start":{"line":18,"column":4},"end":{"line":18,"column":4}}]},"3":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":9},"end":{"line":19,"column":9}},{"start":{"line":19,"column":9},"end":{"line":19,"column":9}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/config_reader.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/config_reader.js","s":{"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"b":{"1":[0,0],"2":[0,0]},"f":{"1":0,"2":0},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"skip":true},"2":{"name":"(anonymous_2)","line":15,"loc":{"start":{"line":15,"column":22},"end":{"line":15,"column":43}},"skip":true}},"statementMap":{"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":36}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"3":{"start":{"line":9,"column":0},"end":{"line":26,"column":2},"skip":true},"4":{"start":{"line":10,"column":2},"end":{"line":13,"column":3},"skip":true},"5":{"start":{"line":11,"column":4},"end":{"line":11,"column":14},"skip":true},"6":{"start":{"line":12,"column":4},"end":{"line":12,"column":32},"skip":true},"7":{"start":{"line":15,"column":2},"end":{"line":25,"column":5},"skip":true},"8":{"start":{"line":16,"column":4},"end":{"line":16,"column":28},"skip":true},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":28},"skip":true},"10":{"start":{"line":18,"column":4},"end":{"line":22,"column":5},"skip":true},"11":{"start":{"line":19,"column":6},"end":{"line":19,"column":46},"skip":true},"12":{"start":{"line":21,"column":6},"end":{"line":21,"column":85},"skip":true},"13":{"start":{"line":23,"column":4},"end":{"line":23,"column":21},"skip":true}},"branchMap":{"1":{"line":10,"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":10,"column":2},"skip":true},{"start":{"line":10,"column":2},"end":{"line":10,"column":2},"skip":true}]},"2":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":16,"column":4},"skip":true},{"start":{"line":16,"column":4},"end":{"line":16,"column":4},"skip":true}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/git_commands.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/git_commands.js","s":{"1":1,"2":1,"3":1,"4":205,"5":205,"6":205,"7":151,"8":205,"9":1,"10":204,"11":1,"12":20,"13":1,"14":35,"15":1,"16":1,"17":1,"18":1,"19":1,"20":37,"21":1,"22":18,"23":1,"24":17,"25":1,"26":17,"27":1,"28":17,"29":17,"30":1,"31":14,"32":14,"33":0,"34":14,"35":14,"36":14,"37":17,"38":0,"39":17,"40":17,"41":17,"42":17,"43":14,"44":1,"45":17,"46":17,"47":0,"48":17,"49":17,"50":17,"51":18,"52":17,"53":1,"54":45},"b":{"1":[151,54],"2":[1,204],"3":[1,16],"4":[17,1],"5":[0,14],"6":[0,17],"7":[0,17]},"f":{"1":205,"2":205,"3":20,"4":35,"5":1,"6":1,"7":37,"8":18,"9":17,"10":17,"11":14,"12":14,"13":17,"14":17,"15":17,"16":18,"17":45},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}}},"2":{"name":"(anonymous_2)","line":12,"loc":{"start":{"line":12,"column":36},"end":{"line":12,"column":66}}},"3":{"name":"(anonymous_3)","line":21,"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":33}}},"4":{"name":"(anonymous_4)","line":25,"loc":{"start":{"line":25,"column":14},"end":{"line":25,"column":42}}},"5":{"name":"(anonymous_5)","line":29,"loc":{"start":{"line":29,"column":13},"end":{"line":29,"column":51}}},"6":{"name":"(anonymous_6)","line":33,"loc":{"start":{"line":33,"column":17},"end":{"line":33,"column":45}}},"7":{"name":"(anonymous_7)","line":37,"loc":{"start":{"line":37,"column":17},"end":{"line":37,"column":44}}},"8":{"name":"(anonymous_8)","line":41,"loc":{"start":{"line":41,"column":16},"end":{"line":41,"column":68}}},"9":{"name":"(anonymous_9)","line":46,"loc":{"start":{"line":46,"column":15},"end":{"line":46,"column":33}}},"10":{"name":"(anonymous_10)","line":50,"loc":{"start":{"line":50,"column":17},"end":{"line":50,"column":32}}},"11":{"name":"(anonymous_11)","line":60,"loc":{"start":{"line":60,"column":27},"end":{"line":60,"column":63}}},"12":{"name":"(anonymous_12)","line":61,"loc":{"start":{"line":61,"column":72},"end":{"line":61,"column":94}}},"13":{"name":"(anonymous_13)","line":66,"loc":{"start":{"line":66,"column":18},"end":{"line":66,"column":33}}},"14":{"name":"(anonymous_14)","line":79,"loc":{"start":{"line":79,"column":23},"end":{"line":79,"column":41}}},"15":{"name":"(anonymous_15)","line":80,"loc":{"start":{"line":80,"column":56},"end":{"line":80,"column":78}}},"16":{"name":"(anonymous_16)","line":85,"loc":{"start":{"line":85,"column":18},"end":{"line":85,"column":33}}},"17":{"name":"(anonymous_17)","line":93,"loc":{"start":{"line":93,"column":24},"end":{"line":93,"column":42}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":37}},"3":{"start":{"line":10,"column":0},"end":{"line":19,"column":2}},"4":{"start":{"line":11,"column":2},"end":{"line":11,"column":45}},"5":{"start":{"line":12,"column":2},"end":{"line":18,"column":5}},"6":{"start":{"line":13,"column":4},"end":{"line":13,"column":39}},"7":{"start":{"line":13,"column":16},"end":{"line":13,"column":39}},"8":{"start":{"line":15,"column":4},"end":{"line":15,"column":54}},"9":{"start":{"line":15,"column":13},"end":{"line":15,"column":54}},"10":{"start":{"line":17,"column":4},"end":{"line":17,"column":21}},"11":{"start":{"line":21,"column":0},"end":{"line":23,"column":2}},"12":{"start":{"line":22,"column":2},"end":{"line":22,"column":35}},"13":{"start":{"line":25,"column":0},"end":{"line":27,"column":2}},"14":{"start":{"line":26,"column":2},"end":{"line":26,"column":53}},"15":{"start":{"line":29,"column":0},"end":{"line":31,"column":2}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":71}},"17":{"start":{"line":33,"column":0},"end":{"line":35,"column":2}},"18":{"start":{"line":34,"column":2},"end":{"line":34,"column":52}},"19":{"start":{"line":37,"column":0},"end":{"line":39,"column":2}},"20":{"start":{"line":38,"column":2},"end":{"line":38,"column":58}},"21":{"start":{"line":41,"column":0},"end":{"line":44,"column":2}},"22":{"start":{"line":43,"column":2},"end":{"line":43,"column":89}},"23":{"start":{"line":46,"column":0},"end":{"line":48,"column":2}},"24":{"start":{"line":47,"column":2},"end":{"line":47,"column":35}},"25":{"start":{"line":50,"column":0},"end":{"line":58,"column":2}},"26":{"start":{"line":51,"column":2},"end":{"line":53,"column":3}},"27":{"start":{"line":52,"column":4},"end":{"line":52,"column":44}},"28":{"start":{"line":55,"column":2},"end":{"line":55,"column":37}},"29":{"start":{"line":57,"column":2},"end":{"line":57,"column":14}},"30":{"start":{"line":60,"column":0},"end":{"line":77,"column":2}},"31":{"start":{"line":61,"column":2},"end":{"line":76,"column":5}},"32":{"start":{"line":62,"column":4},"end":{"line":62,"column":28}},"33":{"start":{"line":62,"column":13},"end":{"line":62,"column":28}},"34":{"start":{"line":64,"column":4},"end":{"line":64,"column":21}},"35":{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},"36":{"start":{"line":66,"column":4},"end":{"line":73,"column":7}},"37":{"start":{"line":67,"column":6},"end":{"line":67,"column":34}},"38":{"start":{"line":67,"column":27},"end":{"line":67,"column":34}},"39":{"start":{"line":68,"column":6},"end":{"line":68,"column":32}},"40":{"start":{"line":69,"column":6},"end":{"line":69,"column":54}},"41":{"start":{"line":71,"column":6},"end":{"line":71,"column":25}},"42":{"start":{"line":72,"column":6},"end":{"line":72,"column":49}},"43":{"start":{"line":75,"column":4},"end":{"line":75,"column":22}},"44":{"start":{"line":79,"column":0},"end":{"line":91,"column":2}},"45":{"start":{"line":80,"column":2},"end":{"line":90,"column":5}},"46":{"start":{"line":81,"column":4},"end":{"line":81,"column":28}},"47":{"start":{"line":81,"column":13},"end":{"line":81,"column":28}},"48":{"start":{"line":83,"column":4},"end":{"line":83,"column":21}},"49":{"start":{"line":84,"column":4},"end":{"line":84,"column":35}},"50":{"start":{"line":85,"column":4},"end":{"line":87,"column":7}},"51":{"start":{"line":86,"column":6},"end":{"line":86,"column":48}},"52":{"start":{"line":89,"column":4},"end":{"line":89,"column":22}},"53":{"start":{"line":93,"column":0},"end":{"line":95,"column":2}},"54":{"start":{"line":94,"column":2},"end":{"line":94,"column":60}}},"branchMap":{"1":{"line":13,"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}]},"2":{"line":15,"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":15,"column":4}},{"start":{"line":15,"column":4},"end":{"line":15,"column":4}}]},"3":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":2},"end":{"line":51,"column":2}},{"start":{"line":51,"column":2},"end":{"line":51,"column":2}}]},"4":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":7},"end":{"line":51,"column":29}},{"start":{"line":51,"column":35},"end":{"line":51,"column":69}}]},"5":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":62,"column":4}},{"start":{"line":62,"column":4},"end":{"line":62,"column":4}}]},"6":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":6},"end":{"line":67,"column":6}},{"start":{"line":67,"column":6},"end":{"line":67,"column":6}}]},"7":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":4}},{"start":{"line":81,"column":4},"end":{"line":81,"column":4}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/git_manager.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/git_manager.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":21,"10":1,"11":21,"12":21,"13":21,"14":1,"15":20,"16":20,"17":1,"18":19,"19":19,"20":19,"21":1,"22":18,"23":18,"24":18,"25":18,"26":18,"27":18,"28":1,"29":1,"30":1,"31":1,"32":1,"33":0,"34":1,"35":1,"36":17,"37":20,"38":0,"39":20,"40":0,"41":20,"42":14,"43":1,"44":4,"45":3,"46":1,"47":1,"48":1,"49":1,"50":2,"51":2,"52":0,"53":2,"54":0,"55":2,"56":2,"57":2,"58":1},"b":{"1":[1,20],"2":[21,20],"3":[1,19],"4":[1,18],"5":[18,0],"6":[1,17],"7":[1,0],"8":[1,0],"9":[3,1],"10":[4,3,1],"11":[0,2],"12":[0,2],"13":[1,1],"14":[1,0]},"f":{"1":21,"2":21,"3":20,"4":19,"5":19,"6":1,"7":0,"8":0,"9":14,"10":4,"11":2,"12":2},"fnMap":{"1":{"name":"(anonymous_1)","line":19,"loc":{"start":{"line":19,"column":27},"end":{"line":19,"column":48}}},"2":{"name":"GitManager","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":24}}},"3":{"name":"(anonymous_3)","line":31,"loc":{"start":{"line":31,"column":29},"end":{"line":31,"column":43}}},"4":{"name":"(anonymous_4)","line":35,"loc":{"start":{"line":35,"column":28},"end":{"line":35,"column":45}}},"5":{"name":"(anonymous_5)","line":36,"loc":{"start":{"line":36,"column":57},"end":{"line":36,"column":75}}},"6":{"name":"(anonymous_6)","line":53,"loc":{"start":{"line":53,"column":33},"end":{"line":53,"column":48}}},"7":{"name":"(anonymous_7)","line":71,"loc":{"start":{"line":71,"column":37},"end":{"line":71,"column":48}}},"8":{"name":"(anonymous_8)","line":75,"loc":{"start":{"line":75,"column":40},"end":{"line":75,"column":51}}},"9":{"name":"(anonymous_9)","line":79,"loc":{"start":{"line":79,"column":42},"end":{"line":79,"column":64}}},"10":{"name":"(anonymous_10)","line":91,"loc":{"start":{"line":91,"column":28},"end":{"line":91,"column":48}}},"11":{"name":"(anonymous_11)","line":99,"loc":{"start":{"line":99,"column":16},"end":{"line":99,"column":38}}},"12":{"name":"(anonymous_12)","line":100,"loc":{"start":{"line":100,"column":42},"end":{"line":100,"column":69}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":27}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":43}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":52}},"7":{"start":{"line":10,"column":0},"end":{"line":14,"column":2}},"8":{"start":{"line":19,"column":0},"end":{"line":83,"column":2}},"9":{"start":{"line":21,"column":2},"end":{"line":21,"column":27}},"10":{"start":{"line":23,"column":2},"end":{"line":23,"column":26}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":34}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":23}},"13":{"start":{"line":28,"column":2},"end":{"line":28,"column":91}},"14":{"start":{"line":28,"column":56},"end":{"line":28,"column":91}},"15":{"start":{"line":31,"column":2},"end":{"line":69,"column":5}},"16":{"start":{"line":33,"column":4},"end":{"line":33,"column":82}},"17":{"start":{"line":33,"column":13},"end":{"line":33,"column":82}},"18":{"start":{"line":35,"column":4},"end":{"line":68,"column":7}},"19":{"start":{"line":36,"column":6},"end":{"line":67,"column":9}},"20":{"start":{"line":37,"column":8},"end":{"line":37,"column":89}},"21":{"start":{"line":37,"column":17},"end":{"line":37,"column":89}},"22":{"start":{"line":39,"column":8},"end":{"line":39,"column":23}},"23":{"start":{"line":42,"column":8},"end":{"line":42,"column":73}},"24":{"start":{"line":43,"column":8},"end":{"line":43,"column":49}},"25":{"start":{"line":45,"column":8},"end":{"line":66,"column":9}},"26":{"start":{"line":47,"column":10},"end":{"line":47,"column":54}},"27":{"start":{"line":49,"column":10},"end":{"line":63,"column":11}},"28":{"start":{"line":51,"column":12},"end":{"line":51,"column":26}},"29":{"start":{"line":53,"column":12},"end":{"line":60,"column":15}},"30":{"start":{"line":54,"column":14},"end":{"line":54,"column":60}},"31":{"start":{"line":55,"column":14},"end":{"line":57,"column":15}},"32":{"start":{"line":56,"column":16},"end":{"line":56,"column":67}},"33":{"start":{"line":59,"column":14},"end":{"line":59,"column":49}},"34":{"start":{"line":62,"column":12},"end":{"line":62,"column":49}},"35":{"start":{"line":62,"column":33},"end":{"line":62,"column":49}},"36":{"start":{"line":65,"column":10},"end":{"line":65,"column":29}},"37":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"38":{"start":{"line":72,"column":4},"end":{"line":72,"column":23}},"39":{"start":{"line":75,"column":2},"end":{"line":77,"column":4}},"40":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"41":{"start":{"line":79,"column":2},"end":{"line":81,"column":4}},"42":{"start":{"line":80,"column":4},"end":{"line":80,"column":40}},"43":{"start":{"line":91,"column":0},"end":{"line":112,"column":2}},"44":{"start":{"line":93,"column":2},"end":{"line":93,"column":101}},"45":{"start":{"line":93,"column":54},"end":{"line":93,"column":101}},"46":{"start":{"line":95,"column":2},"end":{"line":95,"column":42}},"47":{"start":{"line":96,"column":2},"end":{"line":96,"column":18}},"48":{"start":{"line":97,"column":2},"end":{"line":97,"column":24}},"49":{"start":{"line":99,"column":2},"end":{"line":111,"column":5}},"50":{"start":{"line":100,"column":4},"end":{"line":110,"column":7}},"51":{"start":{"line":101,"column":6},"end":{"line":101,"column":49}},"52":{"start":{"line":101,"column":15},"end":{"line":101,"column":49}},"53":{"start":{"line":103,"column":6},"end":{"line":104,"column":42}},"54":{"start":{"line":103,"column":15},"end":{"line":103,"column":32}},"55":{"start":{"line":104,"column":11},"end":{"line":104,"column":42}},"56":{"start":{"line":106,"column":6},"end":{"line":106,"column":29}},"57":{"start":{"line":107,"column":6},"end":{"line":109,"column":7}},"58":{"start":{"line":108,"column":8},"end":{"line":108,"column":69}}},"branchMap":{"1":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":28,"column":2}},{"start":{"line":28,"column":2},"end":{"line":28,"column":2}}]},"2":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":22}},{"start":{"line":28,"column":26},"end":{"line":28,"column":54}}]},"3":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}]},"4":{"line":37,"type":"if","locations":[{"start":{"line":37,"column":8},"end":{"line":37,"column":8}},{"start":{"line":37,"column":8},"end":{"line":37,"column":8}}]},"5":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":8},"end":{"line":45,"column":8}},{"start":{"line":45,"column":8},"end":{"line":45,"column":8}}]},"6":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":10},"end":{"line":49,"column":10}},{"start":{"line":49,"column":10},"end":{"line":49,"column":10}}]},"7":{"line":55,"type":"if","locations":[{"start":{"line":55,"column":14},"end":{"line":55,"column":14}},{"start":{"line":55,"column":14},"end":{"line":55,"column":14}}]},"8":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":12}},{"start":{"line":62,"column":12},"end":{"line":62,"column":12}}]},"9":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":2},"end":{"line":93,"column":2}},{"start":{"line":93,"column":2},"end":{"line":93,"column":2}}]},"10":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":6},"end":{"line":93,"column":12}},{"start":{"line":93,"column":16},"end":{"line":93,"column":29}},{"start":{"line":93,"column":33},"end":{"line":93,"column":52}}]},"11":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":6},"end":{"line":101,"column":6}},{"start":{"line":101,"column":6},"end":{"line":101,"column":6}}]},"12":{"line":103,"type":"if","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":6}},{"start":{"line":103,"column":6},"end":{"line":103,"column":6}}]},"13":{"line":107,"type":"if","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":6}},{"start":{"line":107,"column":6},"end":{"line":107,"column":6}}]},"14":{"line":108,"type":"cond-expr","locations":[{"start":{"line":108,"column":40},"end":{"line":108,"column":44}},{"start":{"line":108,"column":47},"end":{"line":108,"column":53}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/branch_manager.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/branch_manager.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":19,"9":19,"10":19,"11":19,"12":19,"13":1,"14":19,"15":18,"16":18,"17":1,"18":17,"19":19,"20":17,"21":17,"22":17,"23":0,"24":17,"25":19,"26":14,"27":19,"28":17,"29":19,"30":35,"31":19,"32":100,"33":19,"34":139,"35":19,"36":33,"37":19,"38":16,"39":16,"40":16,"41":16,"42":16,"43":16,"44":2,"45":2,"46":2,"47":2,"48":16,"49":19,"50":18,"51":2,"52":2,"53":2,"54":16,"55":19,"56":19,"57":19,"58":1,"59":1,"60":0,"61":1,"62":1,"63":0,"64":1,"65":1,"66":18,"67":18,"68":0,"69":18,"70":18,"71":1,"72":17,"73":17},"b":{"1":[1,17],"2":[0,17],"3":[2,14],"4":[2,16],"5":[1,18],"6":[0,1],"7":[0,1],"8":[0,18],"9":[1,17]},"f":{"1":19,"2":19,"3":18,"4":18,"5":17,"6":17,"7":14,"8":17,"9":35,"10":100,"11":139,"12":33,"13":16,"14":16,"15":2,"16":2,"17":18,"18":19,"19":1,"20":1,"21":18,"22":18},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":30},"end":{"line":10,"column":86}}},"2":{"name":"BranchManager","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":27}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":14},"end":{"line":28,"column":31}}},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":29,"column":81},"end":{"line":29,"column":103}}},"5":{"name":"(anonymous_5)","line":39,"loc":{"start":{"line":39,"column":33},"end":{"line":39,"column":46}}},"6":{"name":"(anonymous_6)","line":41,"loc":{"start":{"line":41,"column":40},"end":{"line":41,"column":62}}},"7":{"name":"(anonymous_7)","line":47,"loc":{"start":{"line":47,"column":45},"end":{"line":47,"column":76}}},"8":{"name":"(anonymous_8)","line":51,"loc":{"start":{"line":51,"column":41},"end":{"line":51,"column":54}}},"9":{"name":"(anonymous_9)","line":55,"loc":{"start":{"line":55,"column":42},"end":{"line":55,"column":55}}},"10":{"name":"(anonymous_10)","line":59,"loc":{"start":{"line":59,"column":40},"end":{"line":59,"column":51}}},"11":{"name":"(anonymous_11)","line":63,"loc":{"start":{"line":63,"column":42},"end":{"line":63,"column":53}}},"12":{"name":"(anonymous_12)","line":67,"loc":{"start":{"line":67,"column":47},"end":{"line":67,"column":58}}},"13":{"name":"(anonymous_13)","line":76,"loc":{"start":{"line":76,"column":22},"end":{"line":76,"column":39}}},"14":{"name":"(anonymous_14)","line":81,"loc":{"start":{"line":81,"column":11},"end":{"line":81,"column":33}}},"15":{"name":"(anonymous_15)","line":92,"loc":{"start":{"line":92,"column":47},"end":{"line":92,"column":61}}},"16":{"name":"(anonymous_16)","line":93,"loc":{"start":{"line":93,"column":39},"end":{"line":93,"column":66}}},"17":{"name":"(anonymous_17)","line":107,"loc":{"start":{"line":107,"column":44},"end":{"line":107,"column":69}}},"18":{"name":"(anonymous_18)","line":123,"loc":{"start":{"line":123,"column":25},"end":{"line":123,"column":45}}},"19":{"name":"(anonymous_19)","line":126,"loc":{"start":{"line":126,"column":30},"end":{"line":126,"column":49}}},"20":{"name":"(anonymous_20)","line":129,"loc":{"start":{"line":129,"column":16},"end":{"line":129,"column":35}}},"21":{"name":"(anonymous_21)","line":138,"loc":{"start":{"line":138,"column":26},"end":{"line":138,"column":40}}},"22":{"name":"(anonymous_22)","line":142,"loc":{"start":{"line":142,"column":16},"end":{"line":142,"column":35}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":43}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":50}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":54}},"7":{"start":{"line":10,"column":0},"end":{"line":149,"column":2}},"8":{"start":{"line":12,"column":2},"end":{"line":12,"column":66}},"9":{"start":{"line":13,"column":2},"end":{"line":13,"column":69}},"10":{"start":{"line":15,"column":2},"end":{"line":15,"column":33}},"11":{"start":{"line":16,"column":2},"end":{"line":16,"column":37}},"12":{"start":{"line":17,"column":2},"end":{"line":17,"column":29}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":29}},"14":{"start":{"line":28,"column":2},"end":{"line":33,"column":4}},"15":{"start":{"line":29,"column":4},"end":{"line":32,"column":7}},"16":{"start":{"line":30,"column":6},"end":{"line":30,"column":30}},"17":{"start":{"line":30,"column":15},"end":{"line":30,"column":30}},"18":{"start":{"line":31,"column":6},"end":{"line":31,"column":44}},"19":{"start":{"line":39,"column":2},"end":{"line":45,"column":4}},"20":{"start":{"line":40,"column":4},"end":{"line":40,"column":24}},"21":{"start":{"line":41,"column":4},"end":{"line":44,"column":7}},"22":{"start":{"line":42,"column":6},"end":{"line":42,"column":30}},"23":{"start":{"line":42,"column":15},"end":{"line":42,"column":30}},"24":{"start":{"line":43,"column":6},"end":{"line":43,"column":50}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":74}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":52}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":53}},"31":{"start":{"line":59,"column":2},"end":{"line":61,"column":4}},"32":{"start":{"line":60,"column":4},"end":{"line":60,"column":28}},"33":{"start":{"line":63,"column":2},"end":{"line":65,"column":4}},"34":{"start":{"line":64,"column":4},"end":{"line":64,"column":18}},"35":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"36":{"start":{"line":68,"column":4},"end":{"line":68,"column":28}},"37":{"start":{"line":76,"column":2},"end":{"line":105,"column":4}},"38":{"start":{"line":79,"column":4},"end":{"line":79,"column":30}},"39":{"start":{"line":81,"column":4},"end":{"line":104,"column":6}},"40":{"start":{"line":83,"column":6},"end":{"line":83,"column":33}},"41":{"start":{"line":86,"column":6},"end":{"line":86,"column":51}},"42":{"start":{"line":87,"column":6},"end":{"line":91,"column":6}},"43":{"start":{"line":91,"column":6},"end":{"line":100,"column":7}},"44":{"start":{"line":92,"column":8},"end":{"line":96,"column":11}},"45":{"start":{"line":93,"column":10},"end":{"line":95,"column":13}},"46":{"start":{"line":94,"column":12},"end":{"line":94,"column":34}},"47":{"start":{"line":99,"column":8},"end":{"line":99,"column":39}},"48":{"start":{"line":103,"column":6},"end":{"line":103,"column":22}},"49":{"start":{"line":107,"column":2},"end":{"line":117,"column":4}},"50":{"start":{"line":110,"column":4},"end":{"line":114,"column":5}},"51":{"start":{"line":111,"column":6},"end":{"line":111,"column":38}},"52":{"start":{"line":112,"column":6},"end":{"line":112,"column":33}},"53":{"start":{"line":113,"column":6},"end":{"line":113,"column":13}},"54":{"start":{"line":116,"column":4},"end":{"line":116,"column":39}},"55":{"start":{"line":120,"column":2},"end":{"line":120,"column":31}},"56":{"start":{"line":123,"column":2},"end":{"line":148,"column":5}},"57":{"start":{"line":124,"column":4},"end":{"line":135,"column":5}},"58":{"start":{"line":126,"column":6},"end":{"line":134,"column":9}},"59":{"start":{"line":127,"column":8},"end":{"line":127,"column":54}},"60":{"start":{"line":127,"column":17},"end":{"line":127,"column":54}},"61":{"start":{"line":129,"column":8},"end":{"line":133,"column":11}},"62":{"start":{"line":130,"column":10},"end":{"line":130,"column":56}},"63":{"start":{"line":130,"column":19},"end":{"line":130,"column":56}},"64":{"start":{"line":131,"column":10},"end":{"line":131,"column":61}},"65":{"start":{"line":132,"column":10},"end":{"line":132,"column":45}},"66":{"start":{"line":138,"column":4},"end":{"line":147,"column":7}},"67":{"start":{"line":139,"column":6},"end":{"line":139,"column":52}},"68":{"start":{"line":139,"column":15},"end":{"line":139,"column":52}},"69":{"start":{"line":142,"column":6},"end":{"line":146,"column":9}},"70":{"start":{"line":143,"column":8},"end":{"line":143,"column":54}},"71":{"start":{"line":143,"column":17},"end":{"line":143,"column":54}},"72":{"start":{"line":144,"column":8},"end":{"line":144,"column":59}},"73":{"start":{"line":145,"column":8},"end":{"line":145,"column":43}}},"branchMap":{"1":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":6},"end":{"line":30,"column":6}},{"start":{"line":30,"column":6},"end":{"line":30,"column":6}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":6},"end":{"line":42,"column":6}},{"start":{"line":42,"column":6},"end":{"line":42,"column":6}}]},"3":{"line":91,"type":"if","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":6}},{"start":{"line":91,"column":6},"end":{"line":91,"column":6}}]},"4":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":110,"column":4}},{"start":{"line":110,"column":4},"end":{"line":110,"column":4}}]},"5":{"line":124,"type":"if","locations":[{"start":{"line":124,"column":4},"end":{"line":124,"column":4}},{"start":{"line":124,"column":4},"end":{"line":124,"column":4}}]},"6":{"line":127,"type":"if","locations":[{"start":{"line":127,"column":8},"end":{"line":127,"column":8}},{"start":{"line":127,"column":8},"end":{"line":127,"column":8}}]},"7":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":10},"end":{"line":130,"column":10}},{"start":{"line":130,"column":10},"end":{"line":130,"column":10}}]},"8":{"line":139,"type":"if","locations":[{"start":{"line":139,"column":6},"end":{"line":139,"column":6}},{"start":{"line":139,"column":6},"end":{"line":139,"column":6}}]},"9":{"line":143,"type":"if","locations":[{"start":{"line":143,"column":8},"end":{"line":143,"column":8}},{"start":{"line":143,"column":8},"end":{"line":143,"column":8}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/consul_broker.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/consul_broker.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":64,"8":64,"9":64,"10":64,"11":0,"12":64,"13":1,"14":33,"15":33,"16":33,"17":33,"18":0,"19":33,"20":33,"21":1,"22":2,"23":2,"24":2,"25":2,"26":0,"27":2,"28":1,"29":31,"30":31,"31":31,"32":35,"33":0,"34":35,"35":35,"36":31,"37":31,"38":35,"39":35,"40":33,"41":33,"42":33,"43":2,"44":2,"45":2,"46":0,"47":1,"48":34,"49":34,"50":34,"51":0,"52":34,"53":1,"54":31,"55":1,"56":34,"57":34,"58":0,"59":34,"60":31,"61":0,"62":31,"63":31,"64":0,"65":31,"66":31,"67":0,"68":34,"69":34,"70":0,"71":34,"72":17,"73":17,"74":3,"75":14},"b":{"1":[0,64],"2":[0,33],"3":[33,0],"4":[0,2],"5":[0,35],"6":[31,4],"7":[0,31],"8":[21,33,33,2,0],"9":[0,34],"10":[17,17],"11":[0,34],"12":[0,31],"13":[0,31],"14":[0,34],"15":[17,17],"16":[3,14]},"f":{"1":64,"2":64,"3":33,"4":33,"5":2,"6":2,"7":31,"8":35,"9":35,"10":34,"11":34,"12":31,"13":34,"14":34,"15":31,"16":31,"17":31,"18":34},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":30},"end":{"line":9,"column":83}}},"2":{"name":"(anonymous_2)","line":13,"loc":{"start":{"line":13,"column":35},"end":{"line":13,"column":49}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":20},"end":{"line":22,"column":55}}},"4":{"name":"(anonymous_4)","line":28,"loc":{"start":{"line":28,"column":38},"end":{"line":28,"column":58}}},"5":{"name":"(anonymous_5)","line":38,"loc":{"start":{"line":38,"column":19},"end":{"line":38,"column":54}}},"6":{"name":"(anonymous_6)","line":42,"loc":{"start":{"line":42,"column":29},"end":{"line":42,"column":43}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":22},"end":{"line":60,"column":60}}},"8":{"name":"(anonymous_8)","line":65,"loc":{"start":{"line":65,"column":22},"end":{"line":65,"column":36}}},"9":{"name":"(anonymous_9)","line":78,"loc":{"start":{"line":78,"column":18},"end":{"line":78,"column":35}}},"10":{"name":"(anonymous_10)","line":105,"loc":{"start":{"line":105,"column":30},"end":{"line":105,"column":59}}},"11":{"name":"(anonymous_11)","line":107,"loc":{"start":{"line":107,"column":26},"end":{"line":107,"column":47}}},"12":{"name":"(anonymous_12)","line":116,"loc":{"start":{"line":116,"column":30},"end":{"line":116,"column":64}}},"13":{"name":"(anonymous_13)","line":126,"loc":{"start":{"line":126,"column":26},"end":{"line":126,"column":55}}},"14":{"name":"(anonymous_14)","line":129,"loc":{"start":{"line":129,"column":31},"end":{"line":129,"column":50}}},"15":{"name":"(anonymous_15)","line":135,"loc":{"start":{"line":135,"column":25},"end":{"line":135,"column":48}}},"16":{"name":"(anonymous_16)","line":137,"loc":{"start":{"line":137,"column":47},"end":{"line":137,"column":62}}},"17":{"name":"(anonymous_17)","line":142,"loc":{"start":{"line":142,"column":57},"end":{"line":142,"column":71}}},"18":{"name":"(anonymous_18)","line":150,"loc":{"start":{"line":150,"column":48},"end":{"line":150,"column":82}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":43}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":41}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":31}},"6":{"start":{"line":9,"column":0},"end":{"line":17,"column":2}},"7":{"start":{"line":11,"column":2},"end":{"line":11,"column":68}},"8":{"start":{"line":12,"column":2},"end":{"line":12,"column":61}},"9":{"start":{"line":13,"column":2},"end":{"line":16,"column":5}},"10":{"start":{"line":14,"column":4},"end":{"line":14,"column":77}},"11":{"start":{"line":14,"column":13},"end":{"line":14,"column":77}},"12":{"start":{"line":15,"column":4},"end":{"line":15,"column":9}},"13":{"start":{"line":22,"column":0},"end":{"line":33,"column":2}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":66}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":47}},"16":{"start":{"line":28,"column":2},"end":{"line":32,"column":5}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":71}},"18":{"start":{"line":29,"column":13},"end":{"line":29,"column":71}},"19":{"start":{"line":30,"column":4},"end":{"line":30,"column":39}},"20":{"start":{"line":31,"column":4},"end":{"line":31,"column":99}},"21":{"start":{"line":38,"column":0},"end":{"line":46,"column":2}},"22":{"start":{"line":40,"column":2},"end":{"line":40,"column":98}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":44}},"24":{"start":{"line":42,"column":2},"end":{"line":45,"column":5}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":78}},"26":{"start":{"line":43,"column":13},"end":{"line":43,"column":78}},"27":{"start":{"line":44,"column":4},"end":{"line":44,"column":9}},"28":{"start":{"line":60,"column":0},"end":{"line":100,"column":2}},"29":{"start":{"line":62,"column":2},"end":{"line":62,"column":26}},"30":{"start":{"line":63,"column":2},"end":{"line":63,"column":23}},"31":{"start":{"line":65,"column":2},"end":{"line":76,"column":4}},"32":{"start":{"line":66,"column":4},"end":{"line":66,"column":35}},"33":{"start":{"line":66,"column":13},"end":{"line":66,"column":35}},"34":{"start":{"line":68,"column":4},"end":{"line":68,"column":22}},"35":{"start":{"line":71,"column":4},"end":{"line":71,"column":79}},"36":{"start":{"line":71,"column":31},"end":{"line":71,"column":79}},"37":{"start":{"line":78,"column":2},"end":{"line":99,"column":5}},"38":{"start":{"line":79,"column":4},"end":{"line":79,"column":76}},"39":{"start":{"line":81,"column":4},"end":{"line":98,"column":5}},"40":{"start":{"line":87,"column":8},"end":{"line":87,"column":26}},"41":{"start":{"line":88,"column":8},"end":{"line":88,"column":66}},"42":{"start":{"line":89,"column":8},"end":{"line":89,"column":14}},"43":{"start":{"line":92,"column":8},"end":{"line":92,"column":26}},"44":{"start":{"line":93,"column":8},"end":{"line":93,"column":65}},"45":{"start":{"line":94,"column":8},"end":{"line":94,"column":14}},"46":{"start":{"line":97,"column":8},"end":{"line":97,"column":59}},"47":{"start":{"line":105,"column":0},"end":{"line":111,"column":2}},"48":{"start":{"line":106,"column":2},"end":{"line":106,"column":94}},"49":{"start":{"line":107,"column":2},"end":{"line":110,"column":5}},"50":{"start":{"line":108,"column":4},"end":{"line":108,"column":28}},"51":{"start":{"line":108,"column":13},"end":{"line":108,"column":28}},"52":{"start":{"line":109,"column":4},"end":{"line":109,"column":59}},"53":{"start":{"line":116,"column":0},"end":{"line":118,"column":2}},"54":{"start":{"line":117,"column":2},"end":{"line":117,"column":92}},"55":{"start":{"line":126,"column":0},"end":{"line":168,"column":2}},"56":{"start":{"line":129,"column":2},"end":{"line":167,"column":5}},"57":{"start":{"line":130,"column":4},"end":{"line":130,"column":116}},"58":{"start":{"line":130,"column":13},"end":{"line":130,"column":116}},"59":{"start":{"line":135,"column":4},"end":{"line":147,"column":6}},"60":{"start":{"line":136,"column":6},"end":{"line":136,"column":30}},"61":{"start":{"line":136,"column":15},"end":{"line":136,"column":30}},"62":{"start":{"line":137,"column":6},"end":{"line":146,"column":9}},"63":{"start":{"line":138,"column":8},"end":{"line":138,"column":79}},"64":{"start":{"line":138,"column":18},"end":{"line":138,"column":79}},"65":{"start":{"line":142,"column":8},"end":{"line":145,"column":11}},"66":{"start":{"line":143,"column":10},"end":{"line":143,"column":25}},"67":{"start":{"line":144,"column":10},"end":{"line":144,"column":97}},"68":{"start":{"line":150,"column":4},"end":{"line":166,"column":7}},"69":{"start":{"line":151,"column":6},"end":{"line":151,"column":30}},"70":{"start":{"line":151,"column":15},"end":{"line":151,"column":30}},"71":{"start":{"line":153,"column":6},"end":{"line":165,"column":7}},"72":{"start":{"line":156,"column":8},"end":{"line":156,"column":52}},"73":{"start":{"line":158,"column":8},"end":{"line":164,"column":9}},"74":{"start":{"line":160,"column":10},"end":{"line":160,"column":108}},"75":{"start":{"line":163,"column":10},"end":{"line":163,"column":83}}},"branchMap":{"1":{"line":14,"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":4}},{"start":{"line":14,"column":4},"end":{"line":14,"column":4}}]},"2":{"line":29,"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":29,"column":4}},{"start":{"line":29,"column":4},"end":{"line":29,"column":4}}]},"3":{"line":30,"type":"cond-expr","locations":[{"start":{"line":30,"column":22},"end":{"line":30,"column":33}},{"start":{"line":30,"column":36},"end":{"line":30,"column":38}}]},"4":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}]},"5":{"line":66,"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":66,"column":4}},{"start":{"line":66,"column":4},"end":{"line":66,"column":4}}]},"6":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":71,"column":4}},{"start":{"line":71,"column":4},"end":{"line":71,"column":4}}]},"7":{"line":71,"type":"cond-expr","locations":[{"start":{"line":71,"column":59},"end":{"line":71,"column":70}},{"start":{"line":71,"column":73},"end":{"line":71,"column":77}}]},"8":{"line":81,"type":"switch","locations":[{"start":{"line":83,"column":6},"end":{"line":83,"column":15}},{"start":{"line":84,"column":6},"end":{"line":84,"column":15}},{"start":{"line":85,"column":6},"end":{"line":89,"column":14}},{"start":{"line":90,"column":6},"end":{"line":94,"column":14}},{"start":{"line":96,"column":6},"end":{"line":97,"column":59}}]},"9":{"line":108,"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":108,"column":4}},{"start":{"line":108,"column":4},"end":{"line":108,"column":4}}]},"10":{"line":109,"type":"cond-expr","locations":[{"start":{"line":109,"column":35},"end":{"line":109,"column":40}},{"start":{"line":109,"column":43},"end":{"line":109,"column":57}}]},"11":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"12":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":6},"end":{"line":136,"column":6}},{"start":{"line":136,"column":6},"end":{"line":136,"column":6}}]},"13":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":8},"end":{"line":138,"column":8}},{"start":{"line":138,"column":8},"end":{"line":138,"column":8}}]},"14":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":6},"end":{"line":151,"column":6}},{"start":{"line":151,"column":6},"end":{"line":151,"column":6}}]},"15":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":153,"column":6}},{"start":{"line":153,"column":6},"end":{"line":153,"column":6}}]},"16":{"line":158,"type":"if","locations":[{"start":{"line":158,"column":8},"end":{"line":158,"column":8}},{"start":{"line":158,"column":8},"end":{"line":158,"column":8}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/github.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/github.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0,0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":45}}},"2":{"name":"(anonymous_2)","line":21,"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":55}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":40},"end":{"line":22,"column":58}}},"4":{"name":"(anonymous_4)","line":39,"loc":{"start":{"line":39,"column":38},"end":{"line":39,"column":52}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":40}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":44}},"5":{"start":{"line":11,"column":0},"end":{"line":54,"column":2}},"6":{"start":{"line":15,"column":2},"end":{"line":15,"column":22}},"7":{"start":{"line":18,"column":2},"end":{"line":18,"column":29}},"8":{"start":{"line":21,"column":2},"end":{"line":49,"column":5}},"9":{"start":{"line":22,"column":4},"end":{"line":48,"column":7}},"10":{"start":{"line":23,"column":6},"end":{"line":23,"column":65}},"11":{"start":{"line":25,"column":6},"end":{"line":45,"column":7}},"12":{"start":{"line":27,"column":8},"end":{"line":27,"column":31}},"13":{"start":{"line":28,"column":8},"end":{"line":28,"column":46}},"14":{"start":{"line":29,"column":8},"end":{"line":29,"column":75}},"15":{"start":{"line":32,"column":8},"end":{"line":44,"column":9}},"16":{"start":{"line":34,"column":10},"end":{"line":34,"column":46}},"17":{"start":{"line":37,"column":10},"end":{"line":37,"column":61}},"18":{"start":{"line":38,"column":10},"end":{"line":38,"column":98}},"19":{"start":{"line":38,"column":19},"end":{"line":38,"column":98}},"20":{"start":{"line":39,"column":10},"end":{"line":43,"column":13}},"21":{"start":{"line":40,"column":12},"end":{"line":40,"column":46}},"22":{"start":{"line":40,"column":21},"end":{"line":40,"column":46}},"23":{"start":{"line":42,"column":12},"end":{"line":42,"column":71}},"24":{"start":{"line":47,"column":6},"end":{"line":47,"column":21}},"25":{"start":{"line":51,"column":2},"end":{"line":51,"column":34}},"26":{"start":{"line":53,"column":2},"end":{"line":53,"column":95}}},"branchMap":{"1":{"line":22,"type":"binary-expr","locations":[{"start":{"line":22,"column":14},"end":{"line":22,"column":24}},{"start":{"line":22,"column":28},"end":{"line":22,"column":38}}]},"2":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":6}},{"start":{"line":25,"column":6},"end":{"line":25,"column":6}}]},"3":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":10},"end":{"line":25,"column":18}},{"start":{"line":25,"column":22},"end":{"line":25,"column":34}},{"start":{"line":25,"column":38},"end":{"line":25,"column":58}},{"start":{"line":25,"column":62},"end":{"line":25,"column":85}}]},"4":{"line":32,"type":"if","locations":[{"start":{"line":32,"column":8},"end":{"line":32,"column":8}},{"start":{"line":32,"column":8},"end":{"line":32,"column":8}}]},"5":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":10},"end":{"line":38,"column":10}},{"start":{"line":38,"column":10},"end":{"line":38,"column":10}}]},"6":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":12},"end":{"line":40,"column":12}},{"start":{"line":40,"column":12},"end":{"line":40,"column":12}}]},"7":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":13},"end":{"line":51,"column":24}},{"start":{"line":51,"column":28},"end":{"line":51,"column":32}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/polling.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/polling.js","s":{"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"1":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":15},"end":{"line":8,"column":45}}},"2":{"name":"(anonymous_2)","line":12,"loc":{"start":{"line":12,"column":29},"end":{"line":12,"column":42}}},"3":{"name":"(anonymous_3)","line":14,"loc":{"start":{"line":14,"column":16},"end":{"line":14,"column":27}}},"4":{"name":"(anonymous_4)","line":15,"loc":{"start":{"line":15,"column":31},"end":{"line":15,"column":45}}},"5":{"name":"(anonymous_5)","line":22,"loc":{"start":{"line":22,"column":39},"end":{"line":22,"column":56}}},"6":{"name":"(anonymous_6)","line":24,"loc":{"start":{"line":24,"column":15},"end":{"line":24,"column":26}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},"2":{"start":{"line":8,"column":0},"end":{"line":32,"column":2}},"3":{"start":{"line":12,"column":2},"end":{"line":20,"column":4}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":96}},"5":{"start":{"line":14,"column":4},"end":{"line":19,"column":36}},"6":{"start":{"line":15,"column":6},"end":{"line":18,"column":9}},"7":{"start":{"line":16,"column":8},"end":{"line":16,"column":36}},"8":{"start":{"line":16,"column":17},"end":{"line":16,"column":36}},"9":{"start":{"line":17,"column":8},"end":{"line":17,"column":74}},"10":{"start":{"line":22,"column":2},"end":{"line":29,"column":5}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":50}},"12":{"start":{"line":24,"column":4},"end":{"line":28,"column":57}},"13":{"start":{"line":25,"column":6},"end":{"line":25,"column":31}},"14":{"start":{"line":31,"column":2},"end":{"line":31,"column":85}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":8},"end":{"line":16,"column":8}},{"start":{"line":16,"column":8},"end":{"line":16,"column":8}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/stash.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/stash.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0,0],"6":[0,0],"7":[0,0],"8":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":45}}},"2":{"name":"(anonymous_2)","line":19,"loc":{"start":{"line":19,"column":10},"end":{"line":19,"column":21}}},"3":{"name":"(anonymous_3)","line":19,"loc":{"start":{"line":19,"column":29},"end":{"line":19,"column":54}}},"4":{"name":"(anonymous_4)","line":25,"loc":{"start":{"line":25,"column":40},"end":{"line":25,"column":55}}},"5":{"name":"(anonymous_5)","line":26,"loc":{"start":{"line":26,"column":40},"end":{"line":26,"column":58}}},"6":{"name":"(anonymous_6)","line":32,"loc":{"start":{"line":32,"column":36},"end":{"line":32,"column":56}}},"7":{"name":"(anonymous_7)","line":44,"loc":{"start":{"line":44,"column":49},"end":{"line":44,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":44}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":40}},"5":{"start":{"line":12,"column":0},"end":{"line":60,"column":2}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":22}},"7":{"start":{"line":19,"column":2},"end":{"line":19,"column":107}},"8":{"start":{"line":19,"column":22},"end":{"line":19,"column":102}},"9":{"start":{"line":19,"column":55},"end":{"line":19,"column":94}},"10":{"start":{"line":19,"column":94},"end":{"line":19,"column":101}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":29}},"12":{"start":{"line":25,"column":2},"end":{"line":55,"column":5}},"13":{"start":{"line":26,"column":4},"end":{"line":54,"column":7}},"14":{"start":{"line":28,"column":6},"end":{"line":28,"column":64}},"15":{"start":{"line":30,"column":6},"end":{"line":51,"column":7}},"16":{"start":{"line":32,"column":8},"end":{"line":50,"column":11}},"17":{"start":{"line":34,"column":10},"end":{"line":34,"column":80}},"18":{"start":{"line":37,"column":10},"end":{"line":49,"column":11}},"19":{"start":{"line":39,"column":12},"end":{"line":39,"column":60}},"20":{"start":{"line":42,"column":12},"end":{"line":42,"column":63}},"21":{"start":{"line":43,"column":12},"end":{"line":43,"column":100}},"22":{"start":{"line":43,"column":21},"end":{"line":43,"column":100}},"23":{"start":{"line":44,"column":12},"end":{"line":48,"column":15}},"24":{"start":{"line":45,"column":14},"end":{"line":45,"column":48}},"25":{"start":{"line":45,"column":23},"end":{"line":45,"column":48}},"26":{"start":{"line":47,"column":14},"end":{"line":47,"column":73}},"27":{"start":{"line":53,"column":6},"end":{"line":53,"column":21}},"28":{"start":{"line":57,"column":2},"end":{"line":57,"column":34}},"29":{"start":{"line":59,"column":2},"end":{"line":59,"column":94}}},"branchMap":{"1":{"line":26,"type":"binary-expr","locations":[{"start":{"line":26,"column":14},"end":{"line":26,"column":24}},{"start":{"line":26,"column":28},"end":{"line":26,"column":38}}]},"2":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":6},"end":{"line":30,"column":6}},{"start":{"line":30,"column":6},"end":{"line":30,"column":6}}]},"3":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":10},"end":{"line":30,"column":18}},{"start":{"line":30,"column":22},"end":{"line":30,"column":41}}]},"4":{"line":37,"type":"if","locations":[{"start":{"line":37,"column":10},"end":{"line":37,"column":10}},{"start":{"line":37,"column":10},"end":{"line":37,"column":10}}]},"5":{"line":37,"type":"binary-expr","locations":[{"start":{"line":37,"column":14},"end":{"line":37,"column":29}},{"start":{"line":37,"column":34},"end":{"line":37,"column":78}},{"start":{"line":37,"column":83},"end":{"line":37,"column":99}}]},"6":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":12},"end":{"line":43,"column":12}},{"start":{"line":43,"column":12},"end":{"line":43,"column":12}}]},"7":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":14},"end":{"line":45,"column":14}},{"start":{"line":45,"column":14},"end":{"line":45,"column":14}}]},"8":{"line":57,"type":"binary-expr","locations":[{"start":{"line":57,"column":13},"end":{"line":57,"column":24}},{"start":{"line":57,"column":28},"end":{"line":57,"column":32}}]}}}}
{"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/logging.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/logging.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":0,"8":1,"9":1,"10":0,"11":1,"12":0,"13":1},"b":{"1":[0,1],"2":[0,1],"3":[0,1]},"f":{"1":1,"2":1},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":22},"end":{"line":11,"column":39}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":32},"end":{"line":17,"column":49}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":50}},"4":{"start":{"line":8,"column":0},"end":{"line":8,"column":59}},"5":{"start":{"line":11,"column":0},"end":{"line":23,"column":2}},"6":{"start":{"line":15,"column":2},"end":{"line":15,"column":29}},"7":{"start":{"line":15,"column":22},"end":{"line":15,"column":29}},"8":{"start":{"line":17,"column":2},"end":{"line":20,"column":5}},"9":{"start":{"line":18,"column":4},"end":{"line":19,"column":80}},"10":{"start":{"line":18,"column":44},"end":{"line":18,"column":75}},"11":{"start":{"line":19,"column":9},"end":{"line":19,"column":80}},"12":{"start":{"line":19,"column":49},"end":{"line":19,"column":80}},"13":{"start":{"line":22,"column":2},"end":{"line":22,"column":54}}},"branchMap":{"1":{"line":15,"type":"if","locations":[{"start":{"line":15,"column":2},"end":{"line":15,"column":2}},{"start":{"line":15,"column":2},"end":{"line":15,"column":2}}]},"2":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":4}},{"start":{"line":18,"column":4},"end":{"line":18,"column":4}}]},"3":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":9},"end":{"line":19,"column":9}},{"start":{"line":19,"column":9},"end":{"line":19,"column":9}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/config_reader.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/config_reader.js","s":{"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"b":{"1":[0,0],"2":[0,0]},"f":{"1":0,"2":0},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"skip":true},"2":{"name":"(anonymous_2)","line":15,"loc":{"start":{"line":15,"column":22},"end":{"line":15,"column":43}},"skip":true}},"statementMap":{"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":36}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"3":{"start":{"line":9,"column":0},"end":{"line":26,"column":2},"skip":true},"4":{"start":{"line":10,"column":2},"end":{"line":13,"column":3},"skip":true},"5":{"start":{"line":11,"column":4},"end":{"line":11,"column":14},"skip":true},"6":{"start":{"line":12,"column":4},"end":{"line":12,"column":32},"skip":true},"7":{"start":{"line":15,"column":2},"end":{"line":25,"column":5},"skip":true},"8":{"start":{"line":16,"column":4},"end":{"line":16,"column":28},"skip":true},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":28},"skip":true},"10":{"start":{"line":18,"column":4},"end":{"line":22,"column":5},"skip":true},"11":{"start":{"line":19,"column":6},"end":{"line":19,"column":46},"skip":true},"12":{"start":{"line":21,"column":6},"end":{"line":21,"column":85},"skip":true},"13":{"start":{"line":23,"column":4},"end":{"line":23,"column":21},"skip":true}},"branchMap":{"1":{"line":10,"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":10,"column":2},"skip":true},{"start":{"line":10,"column":2},"end":{"line":10,"column":2},"skip":true}]},"2":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":16,"column":4},"skip":true},{"start":{"line":16,"column":4},"end":{"line":16,"column":4},"skip":true}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/git_commands.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/utils/git_commands.js","s":{"1":1,"2":1,"3":1,"4":278,"5":278,"6":278,"7":209,"8":278,"9":1,"10":277,"11":1,"12":22,"13":1,"14":44,"15":1,"16":1,"17":1,"18":1,"19":1,"20":46,"21":1,"22":23,"23":1,"24":29,"25":1,"26":25,"27":1,"28":25,"29":25,"30":1,"31":21,"32":21,"33":0,"34":21,"35":21,"36":21,"37":25,"38":0,"39":25,"40":25,"41":25,"42":25,"43":21,"44":1,"45":23,"46":23,"47":0,"48":23,"49":23,"50":23,"51":23,"52":23,"53":1,"54":68},"b":{"1":[209,69],"2":[1,277],"3":[1,24],"4":[25,1],"5":[0,21],"6":[0,25],"7":[0,23]},"f":{"1":278,"2":278,"3":22,"4":44,"5":1,"6":1,"7":46,"8":23,"9":29,"10":25,"11":21,"12":21,"13":25,"14":23,"15":23,"16":23,"17":68},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}}},"2":{"name":"(anonymous_2)","line":12,"loc":{"start":{"line":12,"column":36},"end":{"line":12,"column":66}}},"3":{"name":"(anonymous_3)","line":21,"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":33}}},"4":{"name":"(anonymous_4)","line":25,"loc":{"start":{"line":25,"column":14},"end":{"line":25,"column":42}}},"5":{"name":"(anonymous_5)","line":29,"loc":{"start":{"line":29,"column":13},"end":{"line":29,"column":51}}},"6":{"name":"(anonymous_6)","line":33,"loc":{"start":{"line":33,"column":17},"end":{"line":33,"column":45}}},"7":{"name":"(anonymous_7)","line":37,"loc":{"start":{"line":37,"column":17},"end":{"line":37,"column":44}}},"8":{"name":"(anonymous_8)","line":41,"loc":{"start":{"line":41,"column":16},"end":{"line":41,"column":68}}},"9":{"name":"(anonymous_9)","line":46,"loc":{"start":{"line":46,"column":15},"end":{"line":46,"column":33}}},"10":{"name":"(anonymous_10)","line":50,"loc":{"start":{"line":50,"column":17},"end":{"line":50,"column":32}}},"11":{"name":"(anonymous_11)","line":60,"loc":{"start":{"line":60,"column":27},"end":{"line":60,"column":63}}},"12":{"name":"(anonymous_12)","line":61,"loc":{"start":{"line":61,"column":72},"end":{"line":61,"column":94}}},"13":{"name":"(anonymous_13)","line":66,"loc":{"start":{"line":66,"column":18},"end":{"line":66,"column":33}}},"14":{"name":"(anonymous_14)","line":79,"loc":{"start":{"line":79,"column":23},"end":{"line":79,"column":41}}},"15":{"name":"(anonymous_15)","line":80,"loc":{"start":{"line":80,"column":56},"end":{"line":80,"column":78}}},"16":{"name":"(anonymous_16)","line":85,"loc":{"start":{"line":85,"column":18},"end":{"line":85,"column":33}}},"17":{"name":"(anonymous_17)","line":93,"loc":{"start":{"line":93,"column":24},"end":{"line":93,"column":42}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":37}},"3":{"start":{"line":10,"column":0},"end":{"line":19,"column":2}},"4":{"start":{"line":11,"column":2},"end":{"line":11,"column":45}},"5":{"start":{"line":12,"column":2},"end":{"line":18,"column":5}},"6":{"start":{"line":13,"column":4},"end":{"line":13,"column":39}},"7":{"start":{"line":13,"column":16},"end":{"line":13,"column":39}},"8":{"start":{"line":15,"column":4},"end":{"line":15,"column":54}},"9":{"start":{"line":15,"column":13},"end":{"line":15,"column":54}},"10":{"start":{"line":17,"column":4},"end":{"line":17,"column":21}},"11":{"start":{"line":21,"column":0},"end":{"line":23,"column":2}},"12":{"start":{"line":22,"column":2},"end":{"line":22,"column":35}},"13":{"start":{"line":25,"column":0},"end":{"line":27,"column":2}},"14":{"start":{"line":26,"column":2},"end":{"line":26,"column":53}},"15":{"start":{"line":29,"column":0},"end":{"line":31,"column":2}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":71}},"17":{"start":{"line":33,"column":0},"end":{"line":35,"column":2}},"18":{"start":{"line":34,"column":2},"end":{"line":34,"column":52}},"19":{"start":{"line":37,"column":0},"end":{"line":39,"column":2}},"20":{"start":{"line":38,"column":2},"end":{"line":38,"column":58}},"21":{"start":{"line":41,"column":0},"end":{"line":44,"column":2}},"22":{"start":{"line":43,"column":2},"end":{"line":43,"column":89}},"23":{"start":{"line":46,"column":0},"end":{"line":48,"column":2}},"24":{"start":{"line":47,"column":2},"end":{"line":47,"column":35}},"25":{"start":{"line":50,"column":0},"end":{"line":58,"column":2}},"26":{"start":{"line":51,"column":2},"end":{"line":53,"column":3}},"27":{"start":{"line":52,"column":4},"end":{"line":52,"column":44}},"28":{"start":{"line":55,"column":2},"end":{"line":55,"column":37}},"29":{"start":{"line":57,"column":2},"end":{"line":57,"column":14}},"30":{"start":{"line":60,"column":0},"end":{"line":77,"column":2}},"31":{"start":{"line":61,"column":2},"end":{"line":76,"column":5}},"32":{"start":{"line":62,"column":4},"end":{"line":62,"column":28}},"33":{"start":{"line":62,"column":13},"end":{"line":62,"column":28}},"34":{"start":{"line":64,"column":4},"end":{"line":64,"column":21}},"35":{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},"36":{"start":{"line":66,"column":4},"end":{"line":73,"column":7}},"37":{"start":{"line":67,"column":6},"end":{"line":67,"column":34}},"38":{"start":{"line":67,"column":27},"end":{"line":67,"column":34}},"39":{"start":{"line":68,"column":6},"end":{"line":68,"column":32}},"40":{"start":{"line":69,"column":6},"end":{"line":69,"column":54}},"41":{"start":{"line":71,"column":6},"end":{"line":71,"column":25}},"42":{"start":{"line":72,"column":6},"end":{"line":72,"column":49}},"43":{"start":{"line":75,"column":4},"end":{"line":75,"column":22}},"44":{"start":{"line":79,"column":0},"end":{"line":91,"column":2}},"45":{"start":{"line":80,"column":2},"end":{"line":90,"column":5}},"46":{"start":{"line":81,"column":4},"end":{"line":81,"column":28}},"47":{"start":{"line":81,"column":13},"end":{"line":81,"column":28}},"48":{"start":{"line":83,"column":4},"end":{"line":83,"column":21}},"49":{"start":{"line":84,"column":4},"end":{"line":84,"column":35}},"50":{"start":{"line":85,"column":4},"end":{"line":87,"column":7}},"51":{"start":{"line":86,"column":6},"end":{"line":86,"column":48}},"52":{"start":{"line":89,"column":4},"end":{"line":89,"column":22}},"53":{"start":{"line":93,"column":0},"end":{"line":95,"column":2}},"54":{"start":{"line":94,"column":2},"end":{"line":94,"column":60}}},"branchMap":{"1":{"line":13,"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}]},"2":{"line":15,"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":15,"column":4}},{"start":{"line":15,"column":4},"end":{"line":15,"column":4}}]},"3":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":2},"end":{"line":51,"column":2}},{"start":{"line":51,"column":2},"end":{"line":51,"column":2}}]},"4":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":7},"end":{"line":51,"column":29}},{"start":{"line":51,"column":35},"end":{"line":51,"column":69}}]},"5":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":62,"column":4}},{"start":{"line":62,"column":4},"end":{"line":62,"column":4}}]},"6":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":6},"end":{"line":67,"column":6}},{"start":{"line":67,"column":6},"end":{"line":67,"column":6}}]},"7":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":4}},{"start":{"line":81,"column":4},"end":{"line":81,"column":4}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/git_manager.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/git_manager.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":37,"10":1,"11":37,"12":37,"13":37,"14":1,"15":36,"16":36,"17":1,"18":35,"19":35,"20":35,"21":1,"22":34,"23":34,"24":34,"25":34,"26":34,"27":34,"28":1,"29":1,"30":1,"31":1,"32":1,"33":0,"34":1,"35":1,"36":33,"37":36,"38":0,"39":36,"40":0,"41":36,"42":16,"43":1,"44":4,"45":3,"46":1,"47":1,"48":1,"49":1,"50":2,"51":2,"52":0,"53":2,"54":0,"55":2,"56":2,"57":2,"58":1},"b":{"1":[1,36],"2":[37,36],"3":[1,35],"4":[1,34],"5":[34,0],"6":[1,33],"7":[1,0],"8":[1,0],"9":[3,1],"10":[4,3,1],"11":[0,2],"12":[0,2],"13":[1,1],"14":[1,0]},"f":{"1":37,"2":37,"3":36,"4":35,"5":35,"6":1,"7":0,"8":0,"9":16,"10":4,"11":2,"12":2},"fnMap":{"1":{"name":"(anonymous_1)","line":19,"loc":{"start":{"line":19,"column":27},"end":{"line":19,"column":48}}},"2":{"name":"GitManager","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":24}}},"3":{"name":"(anonymous_3)","line":31,"loc":{"start":{"line":31,"column":29},"end":{"line":31,"column":43}}},"4":{"name":"(anonymous_4)","line":35,"loc":{"start":{"line":35,"column":28},"end":{"line":35,"column":45}}},"5":{"name":"(anonymous_5)","line":36,"loc":{"start":{"line":36,"column":57},"end":{"line":36,"column":75}}},"6":{"name":"(anonymous_6)","line":53,"loc":{"start":{"line":53,"column":33},"end":{"line":53,"column":48}}},"7":{"name":"(anonymous_7)","line":71,"loc":{"start":{"line":71,"column":37},"end":{"line":71,"column":48}}},"8":{"name":"(anonymous_8)","line":75,"loc":{"start":{"line":75,"column":40},"end":{"line":75,"column":51}}},"9":{"name":"(anonymous_9)","line":79,"loc":{"start":{"line":79,"column":42},"end":{"line":79,"column":64}}},"10":{"name":"(anonymous_10)","line":91,"loc":{"start":{"line":91,"column":28},"end":{"line":91,"column":48}}},"11":{"name":"(anonymous_11)","line":99,"loc":{"start":{"line":99,"column":16},"end":{"line":99,"column":38}}},"12":{"name":"(anonymous_12)","line":100,"loc":{"start":{"line":100,"column":42},"end":{"line":100,"column":69}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":27}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":43}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":52}},"7":{"start":{"line":10,"column":0},"end":{"line":14,"column":2}},"8":{"start":{"line":19,"column":0},"end":{"line":83,"column":2}},"9":{"start":{"line":21,"column":2},"end":{"line":21,"column":27}},"10":{"start":{"line":23,"column":2},"end":{"line":23,"column":26}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":34}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":23}},"13":{"start":{"line":28,"column":2},"end":{"line":28,"column":91}},"14":{"start":{"line":28,"column":56},"end":{"line":28,"column":91}},"15":{"start":{"line":31,"column":2},"end":{"line":69,"column":5}},"16":{"start":{"line":33,"column":4},"end":{"line":33,"column":82}},"17":{"start":{"line":33,"column":13},"end":{"line":33,"column":82}},"18":{"start":{"line":35,"column":4},"end":{"line":68,"column":7}},"19":{"start":{"line":36,"column":6},"end":{"line":67,"column":9}},"20":{"start":{"line":37,"column":8},"end":{"line":37,"column":89}},"21":{"start":{"line":37,"column":17},"end":{"line":37,"column":89}},"22":{"start":{"line":39,"column":8},"end":{"line":39,"column":23}},"23":{"start":{"line":42,"column":8},"end":{"line":42,"column":73}},"24":{"start":{"line":43,"column":8},"end":{"line":43,"column":49}},"25":{"start":{"line":45,"column":8},"end":{"line":66,"column":9}},"26":{"start":{"line":47,"column":10},"end":{"line":47,"column":54}},"27":{"start":{"line":49,"column":10},"end":{"line":63,"column":11}},"28":{"start":{"line":51,"column":12},"end":{"line":51,"column":26}},"29":{"start":{"line":53,"column":12},"end":{"line":60,"column":15}},"30":{"start":{"line":54,"column":14},"end":{"line":54,"column":60}},"31":{"start":{"line":55,"column":14},"end":{"line":57,"column":15}},"32":{"start":{"line":56,"column":16},"end":{"line":56,"column":67}},"33":{"start":{"line":59,"column":14},"end":{"line":59,"column":49}},"34":{"start":{"line":62,"column":12},"end":{"line":62,"column":49}},"35":{"start":{"line":62,"column":33},"end":{"line":62,"column":49}},"36":{"start":{"line":65,"column":10},"end":{"line":65,"column":29}},"37":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"38":{"start":{"line":72,"column":4},"end":{"line":72,"column":23}},"39":{"start":{"line":75,"column":2},"end":{"line":77,"column":4}},"40":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"41":{"start":{"line":79,"column":2},"end":{"line":81,"column":4}},"42":{"start":{"line":80,"column":4},"end":{"line":80,"column":40}},"43":{"start":{"line":91,"column":0},"end":{"line":112,"column":2}},"44":{"start":{"line":93,"column":2},"end":{"line":93,"column":101}},"45":{"start":{"line":93,"column":54},"end":{"line":93,"column":101}},"46":{"start":{"line":95,"column":2},"end":{"line":95,"column":42}},"47":{"start":{"line":96,"column":2},"end":{"line":96,"column":18}},"48":{"start":{"line":97,"column":2},"end":{"line":97,"column":24}},"49":{"start":{"line":99,"column":2},"end":{"line":111,"column":5}},"50":{"start":{"line":100,"column":4},"end":{"line":110,"column":7}},"51":{"start":{"line":101,"column":6},"end":{"line":101,"column":49}},"52":{"start":{"line":101,"column":15},"end":{"line":101,"column":49}},"53":{"start":{"line":103,"column":6},"end":{"line":104,"column":42}},"54":{"start":{"line":103,"column":15},"end":{"line":103,"column":32}},"55":{"start":{"line":104,"column":11},"end":{"line":104,"column":42}},"56":{"start":{"line":106,"column":6},"end":{"line":106,"column":29}},"57":{"start":{"line":107,"column":6},"end":{"line":109,"column":7}},"58":{"start":{"line":108,"column":8},"end":{"line":108,"column":69}}},"branchMap":{"1":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":28,"column":2}},{"start":{"line":28,"column":2},"end":{"line":28,"column":2}}]},"2":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":22}},{"start":{"line":28,"column":26},"end":{"line":28,"column":54}}]},"3":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}]},"4":{"line":37,"type":"if","locations":[{"start":{"line":37,"column":8},"end":{"line":37,"column":8}},{"start":{"line":37,"column":8},"end":{"line":37,"column":8}}]},"5":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":8},"end":{"line":45,"column":8}},{"start":{"line":45,"column":8},"end":{"line":45,"column":8}}]},"6":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":10},"end":{"line":49,"column":10}},{"start":{"line":49,"column":10},"end":{"line":49,"column":10}}]},"7":{"line":55,"type":"if","locations":[{"start":{"line":55,"column":14},"end":{"line":55,"column":14}},{"start":{"line":55,"column":14},"end":{"line":55,"column":14}}]},"8":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":12}},{"start":{"line":62,"column":12},"end":{"line":62,"column":12}}]},"9":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":2},"end":{"line":93,"column":2}},{"start":{"line":93,"column":2},"end":{"line":93,"column":2}}]},"10":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":6},"end":{"line":93,"column":12}},{"start":{"line":93,"column":16},"end":{"line":93,"column":29}},{"start":{"line":93,"column":33},"end":{"line":93,"column":52}}]},"11":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":6},"end":{"line":101,"column":6}},{"start":{"line":101,"column":6},"end":{"line":101,"column":6}}]},"12":{"line":103,"type":"if","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":6}},{"start":{"line":103,"column":6},"end":{"line":103,"column":6}}]},"13":{"line":107,"type":"if","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":6}},{"start":{"line":107,"column":6},"end":{"line":107,"column":6}}]},"14":{"line":108,"type":"cond-expr","locations":[{"start":{"line":108,"column":40},"end":{"line":108,"column":44}},{"start":{"line":108,"column":47},"end":{"line":108,"column":53}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/branch_manager.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/branch_manager.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":35,"9":35,"10":35,"11":35,"12":35,"13":1,"14":35,"15":23,"16":23,"17":0,"18":23,"19":35,"20":29,"21":29,"22":29,"23":0,"24":29,"25":35,"26":21,"27":35,"28":23,"29":35,"30":64,"31":35,"32":143,"33":35,"34":219,"35":35,"36":46,"37":35,"38":18,"39":18,"40":18,"41":18,"42":18,"43":18,"44":2,"45":2,"46":2,"47":2,"48":18,"49":35,"50":20,"51":2,"52":2,"53":2,"54":18,"55":35,"56":35,"57":35,"58":12,"59":12,"60":1,"61":11,"62":11,"63":0,"64":11,"65":11,"66":23,"67":23,"68":0,"69":23,"70":23,"71":0,"72":23,"73":23},"b":{"1":[0,23],"2":[0,29],"3":[2,16],"4":[2,18],"5":[12,23],"6":[1,11],"7":[0,11],"8":[0,23],"9":[0,23]},"f":{"1":35,"2":35,"3":23,"4":23,"5":29,"6":29,"7":21,"8":23,"9":64,"10":143,"11":219,"12":46,"13":18,"14":18,"15":2,"16":2,"17":20,"18":35,"19":12,"20":11,"21":23,"22":23},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":30},"end":{"line":10,"column":86}}},"2":{"name":"BranchManager","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":27}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":14},"end":{"line":28,"column":31}}},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":29,"column":81},"end":{"line":29,"column":103}}},"5":{"name":"(anonymous_5)","line":39,"loc":{"start":{"line":39,"column":33},"end":{"line":39,"column":46}}},"6":{"name":"(anonymous_6)","line":41,"loc":{"start":{"line":41,"column":40},"end":{"line":41,"column":62}}},"7":{"name":"(anonymous_7)","line":47,"loc":{"start":{"line":47,"column":45},"end":{"line":47,"column":76}}},"8":{"name":"(anonymous_8)","line":51,"loc":{"start":{"line":51,"column":41},"end":{"line":51,"column":54}}},"9":{"name":"(anonymous_9)","line":55,"loc":{"start":{"line":55,"column":42},"end":{"line":55,"column":55}}},"10":{"name":"(anonymous_10)","line":59,"loc":{"start":{"line":59,"column":40},"end":{"line":59,"column":51}}},"11":{"name":"(anonymous_11)","line":63,"loc":{"start":{"line":63,"column":42},"end":{"line":63,"column":53}}},"12":{"name":"(anonymous_12)","line":67,"loc":{"start":{"line":67,"column":47},"end":{"line":67,"column":58}}},"13":{"name":"(anonymous_13)","line":76,"loc":{"start":{"line":76,"column":22},"end":{"line":76,"column":39}}},"14":{"name":"(anonymous_14)","line":81,"loc":{"start":{"line":81,"column":11},"end":{"line":81,"column":33}}},"15":{"name":"(anonymous_15)","line":92,"loc":{"start":{"line":92,"column":47},"end":{"line":92,"column":61}}},"16":{"name":"(anonymous_16)","line":93,"loc":{"start":{"line":93,"column":39},"end":{"line":93,"column":66}}},"17":{"name":"(anonymous_17)","line":107,"loc":{"start":{"line":107,"column":44},"end":{"line":107,"column":69}}},"18":{"name":"(anonymous_18)","line":123,"loc":{"start":{"line":123,"column":25},"end":{"line":123,"column":45}}},"19":{"name":"(anonymous_19)","line":126,"loc":{"start":{"line":126,"column":30},"end":{"line":126,"column":49}}},"20":{"name":"(anonymous_20)","line":129,"loc":{"start":{"line":129,"column":16},"end":{"line":129,"column":35}}},"21":{"name":"(anonymous_21)","line":138,"loc":{"start":{"line":138,"column":26},"end":{"line":138,"column":40}}},"22":{"name":"(anonymous_22)","line":142,"loc":{"start":{"line":142,"column":16},"end":{"line":142,"column":35}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":43}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":50}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":54}},"7":{"start":{"line":10,"column":0},"end":{"line":149,"column":2}},"8":{"start":{"line":12,"column":2},"end":{"line":12,"column":66}},"9":{"start":{"line":13,"column":2},"end":{"line":13,"column":69}},"10":{"start":{"line":15,"column":2},"end":{"line":15,"column":33}},"11":{"start":{"line":16,"column":2},"end":{"line":16,"column":37}},"12":{"start":{"line":17,"column":2},"end":{"line":17,"column":29}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":29}},"14":{"start":{"line":28,"column":2},"end":{"line":33,"column":4}},"15":{"start":{"line":29,"column":4},"end":{"line":32,"column":7}},"16":{"start":{"line":30,"column":6},"end":{"line":30,"column":30}},"17":{"start":{"line":30,"column":15},"end":{"line":30,"column":30}},"18":{"start":{"line":31,"column":6},"end":{"line":31,"column":44}},"19":{"start":{"line":39,"column":2},"end":{"line":45,"column":4}},"20":{"start":{"line":40,"column":4},"end":{"line":40,"column":24}},"21":{"start":{"line":41,"column":4},"end":{"line":44,"column":7}},"22":{"start":{"line":42,"column":6},"end":{"line":42,"column":30}},"23":{"start":{"line":42,"column":15},"end":{"line":42,"column":30}},"24":{"start":{"line":43,"column":6},"end":{"line":43,"column":50}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":74}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":52}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":53}},"31":{"start":{"line":59,"column":2},"end":{"line":61,"column":4}},"32":{"start":{"line":60,"column":4},"end":{"line":60,"column":28}},"33":{"start":{"line":63,"column":2},"end":{"line":65,"column":4}},"34":{"start":{"line":64,"column":4},"end":{"line":64,"column":18}},"35":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"36":{"start":{"line":68,"column":4},"end":{"line":68,"column":28}},"37":{"start":{"line":76,"column":2},"end":{"line":105,"column":4}},"38":{"start":{"line":79,"column":4},"end":{"line":79,"column":30}},"39":{"start":{"line":81,"column":4},"end":{"line":104,"column":6}},"40":{"start":{"line":83,"column":6},"end":{"line":83,"column":33}},"41":{"start":{"line":86,"column":6},"end":{"line":86,"column":51}},"42":{"start":{"line":87,"column":6},"end":{"line":91,"column":6}},"43":{"start":{"line":91,"column":6},"end":{"line":100,"column":7}},"44":{"start":{"line":92,"column":8},"end":{"line":96,"column":11}},"45":{"start":{"line":93,"column":10},"end":{"line":95,"column":13}},"46":{"start":{"line":94,"column":12},"end":{"line":94,"column":34}},"47":{"start":{"line":99,"column":8},"end":{"line":99,"column":39}},"48":{"start":{"line":103,"column":6},"end":{"line":103,"column":22}},"49":{"start":{"line":107,"column":2},"end":{"line":117,"column":4}},"50":{"start":{"line":110,"column":4},"end":{"line":114,"column":5}},"51":{"start":{"line":111,"column":6},"end":{"line":111,"column":38}},"52":{"start":{"line":112,"column":6},"end":{"line":112,"column":33}},"53":{"start":{"line":113,"column":6},"end":{"line":113,"column":13}},"54":{"start":{"line":116,"column":4},"end":{"line":116,"column":39}},"55":{"start":{"line":120,"column":2},"end":{"line":120,"column":31}},"56":{"start":{"line":123,"column":2},"end":{"line":148,"column":5}},"57":{"start":{"line":124,"column":4},"end":{"line":135,"column":5}},"58":{"start":{"line":126,"column":6},"end":{"line":134,"column":9}},"59":{"start":{"line":127,"column":8},"end":{"line":127,"column":54}},"60":{"start":{"line":127,"column":17},"end":{"line":127,"column":54}},"61":{"start":{"line":129,"column":8},"end":{"line":133,"column":11}},"62":{"start":{"line":130,"column":10},"end":{"line":130,"column":56}},"63":{"start":{"line":130,"column":19},"end":{"line":130,"column":56}},"64":{"start":{"line":131,"column":10},"end":{"line":131,"column":61}},"65":{"start":{"line":132,"column":10},"end":{"line":132,"column":45}},"66":{"start":{"line":138,"column":4},"end":{"line":147,"column":7}},"67":{"start":{"line":139,"column":6},"end":{"line":139,"column":52}},"68":{"start":{"line":139,"column":15},"end":{"line":139,"column":52}},"69":{"start":{"line":142,"column":6},"end":{"line":146,"column":9}},"70":{"start":{"line":143,"column":8},"end":{"line":143,"column":54}},"71":{"start":{"line":143,"column":17},"end":{"line":143,"column":54}},"72":{"start":{"line":144,"column":8},"end":{"line":144,"column":59}},"73":{"start":{"line":145,"column":8},"end":{"line":145,"column":43}}},"branchMap":{"1":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":6},"end":{"line":30,"column":6}},{"start":{"line":30,"column":6},"end":{"line":30,"column":6}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":6},"end":{"line":42,"column":6}},{"start":{"line":42,"column":6},"end":{"line":42,"column":6}}]},"3":{"line":91,"type":"if","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":6}},{"start":{"line":91,"column":6},"end":{"line":91,"column":6}}]},"4":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":110,"column":4}},{"start":{"line":110,"column":4},"end":{"line":110,"column":4}}]},"5":{"line":124,"type":"if","locations":[{"start":{"line":124,"column":4},"end":{"line":124,"column":4}},{"start":{"line":124,"column":4},"end":{"line":124,"column":4}}]},"6":{"line":127,"type":"if","locations":[{"start":{"line":127,"column":8},"end":{"line":127,"column":8}},{"start":{"line":127,"column":8},"end":{"line":127,"column":8}}]},"7":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":10},"end":{"line":130,"column":10}},{"start":{"line":130,"column":10},"end":{"line":130,"column":10}}]},"8":{"line":139,"type":"if","locations":[{"start":{"line":139,"column":6},"end":{"line":139,"column":6}},{"start":{"line":139,"column":6},"end":{"line":139,"column":6}}]},"9":{"line":143,"type":"if","locations":[{"start":{"line":143,"column":8},"end":{"line":143,"column":8}},{"start":{"line":143,"column":8},"end":{"line":143,"column":8}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/consul_broker.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/consul_broker.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":89,"8":89,"9":89,"10":89,"11":1,"12":88,"13":1,"14":46,"15":46,"16":46,"17":46,"18":0,"19":46,"20":46,"21":1,"22":2,"23":2,"24":2,"25":2,"26":0,"27":2,"28":1,"29":44,"30":44,"31":44,"32":48,"33":1,"34":48,"35":48,"36":44,"37":44,"38":48,"39":48,"40":46,"41":46,"42":46,"43":2,"44":2,"45":2,"46":0,"47":1,"48":52,"49":52,"50":52,"51":0,"52":52,"53":1,"54":43,"55":1,"56":52,"57":52,"58":0,"59":52,"60":44,"61":0,"62":44,"63":44,"64":1,"65":43,"66":43,"67":0,"68":52,"69":52,"70":0,"71":52,"72":23,"73":29,"74":8,"75":21},"b":{"1":[1,88],"2":[0,46],"3":[46,0],"4":[0,2],"5":[1,47],"6":[44,4],"7":[1,43],"8":[25,46,46,2,0],"9":[0,52],"10":[23,29],"11":[0,52],"12":[0,44],"13":[1,43],"14":[0,52],"15":[23,29],"16":[8,21]},"f":{"1":89,"2":89,"3":46,"4":46,"5":2,"6":2,"7":44,"8":48,"9":48,"10":52,"11":52,"12":43,"13":52,"14":52,"15":44,"16":44,"17":43,"18":52},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":30},"end":{"line":9,"column":83}}},"2":{"name":"(anonymous_2)","line":13,"loc":{"start":{"line":13,"column":35},"end":{"line":13,"column":49}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":20},"end":{"line":22,"column":55}}},"4":{"name":"(anonymous_4)","line":28,"loc":{"start":{"line":28,"column":38},"end":{"line":28,"column":58}}},"5":{"name":"(anonymous_5)","line":38,"loc":{"start":{"line":38,"column":19},"end":{"line":38,"column":54}}},"6":{"name":"(anonymous_6)","line":42,"loc":{"start":{"line":42,"column":29},"end":{"line":42,"column":43}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":22},"end":{"line":60,"column":60}}},"8":{"name":"(anonymous_8)","line":65,"loc":{"start":{"line":65,"column":22},"end":{"line":65,"column":36}}},"9":{"name":"(anonymous_9)","line":78,"loc":{"start":{"line":78,"column":18},"end":{"line":78,"column":35}}},"10":{"name":"(anonymous_10)","line":105,"loc":{"start":{"line":105,"column":30},"end":{"line":105,"column":59}}},"11":{"name":"(anonymous_11)","line":107,"loc":{"start":{"line":107,"column":26},"end":{"line":107,"column":47}}},"12":{"name":"(anonymous_12)","line":116,"loc":{"start":{"line":116,"column":30},"end":{"line":116,"column":64}}},"13":{"name":"(anonymous_13)","line":126,"loc":{"start":{"line":126,"column":26},"end":{"line":126,"column":55}}},"14":{"name":"(anonymous_14)","line":129,"loc":{"start":{"line":129,"column":31},"end":{"line":129,"column":50}}},"15":{"name":"(anonymous_15)","line":135,"loc":{"start":{"line":135,"column":25},"end":{"line":135,"column":48}}},"16":{"name":"(anonymous_16)","line":137,"loc":{"start":{"line":137,"column":47},"end":{"line":137,"column":62}}},"17":{"name":"(anonymous_17)","line":142,"loc":{"start":{"line":142,"column":57},"end":{"line":142,"column":71}}},"18":{"name":"(anonymous_18)","line":150,"loc":{"start":{"line":150,"column":48},"end":{"line":150,"column":82}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":43}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":41}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":31}},"6":{"start":{"line":9,"column":0},"end":{"line":17,"column":2}},"7":{"start":{"line":11,"column":2},"end":{"line":11,"column":68}},"8":{"start":{"line":12,"column":2},"end":{"line":12,"column":61}},"9":{"start":{"line":13,"column":2},"end":{"line":16,"column":5}},"10":{"start":{"line":14,"column":4},"end":{"line":14,"column":77}},"11":{"start":{"line":14,"column":13},"end":{"line":14,"column":77}},"12":{"start":{"line":15,"column":4},"end":{"line":15,"column":9}},"13":{"start":{"line":22,"column":0},"end":{"line":33,"column":2}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":66}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":47}},"16":{"start":{"line":28,"column":2},"end":{"line":32,"column":5}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":71}},"18":{"start":{"line":29,"column":13},"end":{"line":29,"column":71}},"19":{"start":{"line":30,"column":4},"end":{"line":30,"column":39}},"20":{"start":{"line":31,"column":4},"end":{"line":31,"column":99}},"21":{"start":{"line":38,"column":0},"end":{"line":46,"column":2}},"22":{"start":{"line":40,"column":2},"end":{"line":40,"column":98}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":44}},"24":{"start":{"line":42,"column":2},"end":{"line":45,"column":5}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":78}},"26":{"start":{"line":43,"column":13},"end":{"line":43,"column":78}},"27":{"start":{"line":44,"column":4},"end":{"line":44,"column":9}},"28":{"start":{"line":60,"column":0},"end":{"line":100,"column":2}},"29":{"start":{"line":62,"column":2},"end":{"line":62,"column":26}},"30":{"start":{"line":63,"column":2},"end":{"line":63,"column":23}},"31":{"start":{"line":65,"column":2},"end":{"line":76,"column":4}},"32":{"start":{"line":66,"column":4},"end":{"line":66,"column":35}},"33":{"start":{"line":66,"column":13},"end":{"line":66,"column":35}},"34":{"start":{"line":68,"column":4},"end":{"line":68,"column":22}},"35":{"start":{"line":71,"column":4},"end":{"line":71,"column":79}},"36":{"start":{"line":71,"column":31},"end":{"line":71,"column":79}},"37":{"start":{"line":78,"column":2},"end":{"line":99,"column":5}},"38":{"start":{"line":79,"column":4},"end":{"line":79,"column":76}},"39":{"start":{"line":81,"column":4},"end":{"line":98,"column":5}},"40":{"start":{"line":87,"column":8},"end":{"line":87,"column":26}},"41":{"start":{"line":88,"column":8},"end":{"line":88,"column":66}},"42":{"start":{"line":89,"column":8},"end":{"line":89,"column":14}},"43":{"start":{"line":92,"column":8},"end":{"line":92,"column":26}},"44":{"start":{"line":93,"column":8},"end":{"line":93,"column":65}},"45":{"start":{"line":94,"column":8},"end":{"line":94,"column":14}},"46":{"start":{"line":97,"column":8},"end":{"line":97,"column":59}},"47":{"start":{"line":105,"column":0},"end":{"line":111,"column":2}},"48":{"start":{"line":106,"column":2},"end":{"line":106,"column":94}},"49":{"start":{"line":107,"column":2},"end":{"line":110,"column":5}},"50":{"start":{"line":108,"column":4},"end":{"line":108,"column":28}},"51":{"start":{"line":108,"column":13},"end":{"line":108,"column":28}},"52":{"start":{"line":109,"column":4},"end":{"line":109,"column":59}},"53":{"start":{"line":116,"column":0},"end":{"line":118,"column":2}},"54":{"start":{"line":117,"column":2},"end":{"line":117,"column":92}},"55":{"start":{"line":126,"column":0},"end":{"line":168,"column":2}},"56":{"start":{"line":129,"column":2},"end":{"line":167,"column":5}},"57":{"start":{"line":130,"column":4},"end":{"line":130,"column":116}},"58":{"start":{"line":130,"column":13},"end":{"line":130,"column":116}},"59":{"start":{"line":135,"column":4},"end":{"line":147,"column":6}},"60":{"start":{"line":136,"column":6},"end":{"line":136,"column":30}},"61":{"start":{"line":136,"column":15},"end":{"line":136,"column":30}},"62":{"start":{"line":137,"column":6},"end":{"line":146,"column":9}},"63":{"start":{"line":138,"column":8},"end":{"line":138,"column":79}},"64":{"start":{"line":138,"column":18},"end":{"line":138,"column":79}},"65":{"start":{"line":142,"column":8},"end":{"line":145,"column":11}},"66":{"start":{"line":143,"column":10},"end":{"line":143,"column":25}},"67":{"start":{"line":144,"column":10},"end":{"line":144,"column":97}},"68":{"start":{"line":150,"column":4},"end":{"line":166,"column":7}},"69":{"start":{"line":151,"column":6},"end":{"line":151,"column":30}},"70":{"start":{"line":151,"column":15},"end":{"line":151,"column":30}},"71":{"start":{"line":153,"column":6},"end":{"line":165,"column":7}},"72":{"start":{"line":156,"column":8},"end":{"line":156,"column":52}},"73":{"start":{"line":158,"column":8},"end":{"line":164,"column":9}},"74":{"start":{"line":160,"column":10},"end":{"line":160,"column":108}},"75":{"start":{"line":163,"column":10},"end":{"line":163,"column":83}}},"branchMap":{"1":{"line":14,"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":4}},{"start":{"line":14,"column":4},"end":{"line":14,"column":4}}]},"2":{"line":29,"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":29,"column":4}},{"start":{"line":29,"column":4},"end":{"line":29,"column":4}}]},"3":{"line":30,"type":"cond-expr","locations":[{"start":{"line":30,"column":22},"end":{"line":30,"column":33}},{"start":{"line":30,"column":36},"end":{"line":30,"column":38}}]},"4":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}]},"5":{"line":66,"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":66,"column":4}},{"start":{"line":66,"column":4},"end":{"line":66,"column":4}}]},"6":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":71,"column":4}},{"start":{"line":71,"column":4},"end":{"line":71,"column":4}}]},"7":{"line":71,"type":"cond-expr","locations":[{"start":{"line":71,"column":59},"end":{"line":71,"column":70}},{"start":{"line":71,"column":73},"end":{"line":71,"column":77}}]},"8":{"line":81,"type":"switch","locations":[{"start":{"line":83,"column":6},"end":{"line":83,"column":15}},{"start":{"line":84,"column":6},"end":{"line":84,"column":15}},{"start":{"line":85,"column":6},"end":{"line":89,"column":14}},{"start":{"line":90,"column":6},"end":{"line":94,"column":14}},{"start":{"line":96,"column":6},"end":{"line":97,"column":59}}]},"9":{"line":108,"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":108,"column":4}},{"start":{"line":108,"column":4},"end":{"line":108,"column":4}}]},"10":{"line":109,"type":"cond-expr","locations":[{"start":{"line":109,"column":35},"end":{"line":109,"column":40}},{"start":{"line":109,"column":43},"end":{"line":109,"column":57}}]},"11":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"12":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":6},"end":{"line":136,"column":6}},{"start":{"line":136,"column":6},"end":{"line":136,"column":6}}]},"13":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":8},"end":{"line":138,"column":8}},{"start":{"line":138,"column":8},"end":{"line":138,"column":8}}]},"14":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":6},"end":{"line":151,"column":6}},{"start":{"line":151,"column":6},"end":{"line":151,"column":6}}]},"15":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":153,"column":6}},{"start":{"line":153,"column":6},"end":{"line":153,"column":6}}]},"16":{"line":158,"type":"if","locations":[{"start":{"line":158,"column":8},"end":{"line":158,"column":8}},{"start":{"line":158,"column":8},"end":{"line":158,"column":8}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/github.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/github.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0,0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":45}}},"2":{"name":"(anonymous_2)","line":21,"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":55}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":40},"end":{"line":22,"column":58}}},"4":{"name":"(anonymous_4)","line":39,"loc":{"start":{"line":39,"column":38},"end":{"line":39,"column":52}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":40}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":44}},"5":{"start":{"line":11,"column":0},"end":{"line":54,"column":2}},"6":{"start":{"line":15,"column":2},"end":{"line":15,"column":22}},"7":{"start":{"line":18,"column":2},"end":{"line":18,"column":29}},"8":{"start":{"line":21,"column":2},"end":{"line":49,"column":5}},"9":{"start":{"line":22,"column":4},"end":{"line":48,"column":7}},"10":{"start":{"line":23,"column":6},"end":{"line":23,"column":65}},"11":{"start":{"line":25,"column":6},"end":{"line":45,"column":7}},"12":{"start":{"line":27,"column":8},"end":{"line":27,"column":31}},"13":{"start":{"line":28,"column":8},"end":{"line":28,"column":46}},"14":{"start":{"line":29,"column":8},"end":{"line":29,"column":75}},"15":{"start":{"line":32,"column":8},"end":{"line":44,"column":9}},"16":{"start":{"line":34,"column":10},"end":{"line":34,"column":46}},"17":{"start":{"line":37,"column":10},"end":{"line":37,"column":61}},"18":{"start":{"line":38,"column":10},"end":{"line":38,"column":98}},"19":{"start":{"line":38,"column":19},"end":{"line":38,"column":98}},"20":{"start":{"line":39,"column":10},"end":{"line":43,"column":13}},"21":{"start":{"line":40,"column":12},"end":{"line":40,"column":46}},"22":{"start":{"line":40,"column":21},"end":{"line":40,"column":46}},"23":{"start":{"line":42,"column":12},"end":{"line":42,"column":71}},"24":{"start":{"line":47,"column":6},"end":{"line":47,"column":21}},"25":{"start":{"line":51,"column":2},"end":{"line":51,"column":34}},"26":{"start":{"line":53,"column":2},"end":{"line":53,"column":95}}},"branchMap":{"1":{"line":22,"type":"binary-expr","locations":[{"start":{"line":22,"column":14},"end":{"line":22,"column":24}},{"start":{"line":22,"column":28},"end":{"line":22,"column":38}}]},"2":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":6}},{"start":{"line":25,"column":6},"end":{"line":25,"column":6}}]},"3":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":10},"end":{"line":25,"column":18}},{"start":{"line":25,"column":22},"end":{"line":25,"column":34}},{"start":{"line":25,"column":38},"end":{"line":25,"column":58}},{"start":{"line":25,"column":62},"end":{"line":25,"column":85}}]},"4":{"line":32,"type":"if","locations":[{"start":{"line":32,"column":8},"end":{"line":32,"column":8}},{"start":{"line":32,"column":8},"end":{"line":32,"column":8}}]},"5":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":10},"end":{"line":38,"column":10}},{"start":{"line":38,"column":10},"end":{"line":38,"column":10}}]},"6":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":12},"end":{"line":40,"column":12}},{"start":{"line":40,"column":12},"end":{"line":40,"column":12}}]},"7":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":13},"end":{"line":51,"column":24}},{"start":{"line":51,"column":28},"end":{"line":51,"column":32}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/polling.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/polling.js","s":{"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"1":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":15},"end":{"line":8,"column":45}}},"2":{"name":"(anonymous_2)","line":12,"loc":{"start":{"line":12,"column":29},"end":{"line":12,"column":42}}},"3":{"name":"(anonymous_3)","line":14,"loc":{"start":{"line":14,"column":16},"end":{"line":14,"column":27}}},"4":{"name":"(anonymous_4)","line":15,"loc":{"start":{"line":15,"column":31},"end":{"line":15,"column":45}}},"5":{"name":"(anonymous_5)","line":22,"loc":{"start":{"line":22,"column":39},"end":{"line":22,"column":56}}},"6":{"name":"(anonymous_6)","line":24,"loc":{"start":{"line":24,"column":15},"end":{"line":24,"column":26}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},"2":{"start":{"line":8,"column":0},"end":{"line":32,"column":2}},"3":{"start":{"line":12,"column":2},"end":{"line":20,"column":4}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":96}},"5":{"start":{"line":14,"column":4},"end":{"line":19,"column":36}},"6":{"start":{"line":15,"column":6},"end":{"line":18,"column":9}},"7":{"start":{"line":16,"column":8},"end":{"line":16,"column":36}},"8":{"start":{"line":16,"column":17},"end":{"line":16,"column":36}},"9":{"start":{"line":17,"column":8},"end":{"line":17,"column":74}},"10":{"start":{"line":22,"column":2},"end":{"line":29,"column":5}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":50}},"12":{"start":{"line":24,"column":4},"end":{"line":28,"column":57}},"13":{"start":{"line":25,"column":6},"end":{"line":25,"column":31}},"14":{"start":{"line":31,"column":2},"end":{"line":31,"column":85}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":8},"end":{"line":16,"column":8}},{"start":{"line":16,"column":8},"end":{"line":16,"column":8}}]}}},"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/stash.js":{"path":"/Users/wrb/vistaprint/code/git_to_consul/lib/hooks/stash.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0,0],"6":[0,0],"7":[0,0],"8":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":45}}},"2":{"name":"(anonymous_2)","line":19,"loc":{"start":{"line":19,"column":10},"end":{"line":19,"column":21}}},"3":{"name":"(anonymous_3)","line":19,"loc":{"start":{"line":19,"column":29},"end":{"line":19,"column":54}}},"4":{"name":"(anonymous_4)","line":25,"loc":{"start":{"line":25,"column":40},"end":{"line":25,"column":55}}},"5":{"name":"(anonymous_5)","line":26,"loc":{"start":{"line":26,"column":40},"end":{"line":26,"column":58}}},"6":{"name":"(anonymous_6)","line":32,"loc":{"start":{"line":32,"column":36},"end":{"line":32,"column":56}}},"7":{"name":"(anonymous_7)","line":44,"loc":{"start":{"line":44,"column":49},"end":{"line":44,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":44}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":40}},"5":{"start":{"line":12,"column":0},"end":{"line":60,"column":2}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":22}},"7":{"start":{"line":19,"column":2},"end":{"line":19,"column":107}},"8":{"start":{"line":19,"column":22},"end":{"line":19,"column":102}},"9":{"start":{"line":19,"column":55},"end":{"line":19,"column":94}},"10":{"start":{"line":19,"column":94},"end":{"line":19,"column":101}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":29}},"12":{"start":{"line":25,"column":2},"end":{"line":55,"column":5}},"13":{"start":{"line":26,"column":4},"end":{"line":54,"column":7}},"14":{"start":{"line":28,"column":6},"end":{"line":28,"column":64}},"15":{"start":{"line":30,"column":6},"end":{"line":51,"column":7}},"16":{"start":{"line":32,"column":8},"end":{"line":50,"column":11}},"17":{"start":{"line":34,"column":10},"end":{"line":34,"column":80}},"18":{"start":{"line":37,"column":10},"end":{"line":49,"column":11}},"19":{"start":{"line":39,"column":12},"end":{"line":39,"column":60}},"20":{"start":{"line":42,"column":12},"end":{"line":42,"column":63}},"21":{"start":{"line":43,"column":12},"end":{"line":43,"column":100}},"22":{"start":{"line":43,"column":21},"end":{"line":43,"column":100}},"23":{"start":{"line":44,"column":12},"end":{"line":48,"column":15}},"24":{"start":{"line":45,"column":14},"end":{"line":45,"column":48}},"25":{"start":{"line":45,"column":23},"end":{"line":45,"column":48}},"26":{"start":{"line":47,"column":14},"end":{"line":47,"column":73}},"27":{"start":{"line":53,"column":6},"end":{"line":53,"column":21}},"28":{"start":{"line":57,"column":2},"end":{"line":57,"column":34}},"29":{"start":{"line":59,"column":2},"end":{"line":59,"column":94}}},"branchMap":{"1":{"line":26,"type":"binary-expr","locations":[{"start":{"line":26,"column":14},"end":{"line":26,"column":24}},{"start":{"line":26,"column":28},"end":{"line":26,"column":38}}]},"2":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":6},"end":{"line":30,"column":6}},{"start":{"line":30,"column":6},"end":{"line":30,"column":6}}]},"3":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":10},"end":{"line":30,"column":18}},{"start":{"line":30,"column":22},"end":{"line":30,"column":41}}]},"4":{"line":37,"type":"if","locations":[{"start":{"line":37,"column":10},"end":{"line":37,"column":10}},{"start":{"line":37,"column":10},"end":{"line":37,"column":10}}]},"5":{"line":37,"type":"binary-expr","locations":[{"start":{"line":37,"column":14},"end":{"line":37,"column":29}},{"start":{"line":37,"column":34},"end":{"line":37,"column":78}},{"start":{"line":37,"column":83},"end":{"line":37,"column":99}}]},"6":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":12},"end":{"line":43,"column":12}},{"start":{"line":43,"column":12},"end":{"line":43,"column":12}}]},"7":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":14},"end":{"line":45,"column":14}},{"start":{"line":45,"column":14},"end":{"line":45,"column":14}}]},"8":{"line":57,"type":"binary-expr","locations":[{"start":{"line":57,"column":13},"end":{"line":57,"column":24}},{"start":{"line":57,"column":28},"end":{"line":57,"column":32}}]}}}}

@@ -15,10 +15,9 @@ var should = require('should');

"path": "./test/logs/test.log"
}/**, {
}/**,{
"level": "trace",
"stream": "process.stdout"
}**/]
}/**/]
}
});
var git_commands = require('../lib/utils/git_commands.js');
var git_utils = require('./utils/git_utils.js');

@@ -30,19 +29,21 @@ var consul_utils = require('./utils/consul_utils.js');

beforeEach(function(done) {
consul_utils.purgeKeys('test', function(err) {
rimraf(git_utils.TEST_REMOTE_REPO, function(err) {
if (err) return done(err);
mkdirp(git_utils.TEST_REMOTE_REPO, function(err) {
consul_utils.purgeKeys('test_repo', function(err) {
consul_utils.purgeKeys('test_github_repo', function(err) {
rimraf(git_utils.TEST_REMOTE_REPO, function(err) {
if (err) return done(err);
rimraf(git_utils.TEST_WORKING_DIR, function(err) {
mkdirp(git_utils.TEST_REMOTE_REPO, function(err) {
if (err) return done(err);
mkdirp(git_utils.TEST_WORKING_DIR, function(err) {
rimraf(git_utils.TEST_WORKING_DIR, function(err) {
if (err) return done(err);
rimraf(git_utils.TEST_GITHUB_WORKING_DIR, function(err) {
mkdirp(git_utils.TEST_WORKING_DIR, function(err) {
if (err) return done(err);
mkdirp(git_utils.TEST_GITHUB_WORKING_DIR, function(err) {
rimraf(git_utils.TEST_GITHUB_WORKING_DIR, function(err) {
if (err) return done(err);
git_commands.init(git_utils.TEST_REMOTE_REPO, function(err) {
mkdirp(git_utils.TEST_GITHUB_WORKING_DIR, function(err) {
if (err) return done(err);
done();
git_utils.initRepo(git_utils.TEST_REMOTE_REPO, function(err) {
if (err) return done(err);
done();
});
});

@@ -52,3 +53,3 @@ });

});
})
});
});

@@ -58,2 +59,1 @@ });

});

@@ -17,3 +17,3 @@ var should = require('should');

var massive_concurrency_test = function(normal_ref_order) {
var my_gm;

@@ -23,53 +23,41 @@

var sample_value = 'test data';
var default_repo_config = git_utils.createConfig().repos[0];
return function(done) {
git_utils.addFileToGitRepo(sample_key, sample_value, "Concurrency test.", function(err) {
git_manager.createGitManager(default_repo_config, function(err, gm) {
if (err) return done(err);
my_gm = gm;
sample_value = 'new value';
git_utils.addFileToGitRepo(sample_key, sample_value, "Concurrency update.", function(err) {
git_utils.addFileToGitRepo(sample_key, sample_value, "Concurrency update.", false, function(err) {
if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REMOTE_REPO, function(err, ref) {
if (err) done(err);
var first_ref = ref;
var sample_key2 = 'sample_key2';
var sample_value2 = 'test data2';
git_utils.addFileToGitRepo(sample_key2, sample_value2, "Second file for concurrencty test.", false, function(err) {
if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REMOTE_REPO, function(err, ref) {
if (err) done(err);
var first_ref = ref;
var sample_key2 = 'sample_key2';
var sample_value2 = 'test data2';
git_utils.addFileToGitRepo(sample_key2, sample_value2, "Second file for concurrencty test.", function(err) {
var second_ref = ref;
var bm = git_utils.GM.getBranchManager('master');
bm.handleRefChange((normal_ref_order ? first_ref : second_ref), function(cb) {
if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REMOTE_REPO, function(err, ref) {
if (err) done(err);
var second_ref = ref;
var bm = my_gm.getBranchManager('master');
bm.handleRefChange((normal_ref_order ? first_ref : second_ref), function(cb) {
});
bm.handleRefChange((normal_ref_order ? second_ref : first_ref), function(cb) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with both sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, sample_value, function(err, value) {
if (err) return done(err);
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key2, sample_value2, function(err, value) {
if (err) return done(err);
done();
});
bm.handleRefChange((normal_ref_order ? second_ref : first_ref), function(cb) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with both sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value);
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key2, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value2);
done();
});
});
});
});

@@ -83,5 +71,5 @@ });

};
it ('should serialize access to a single branch', massive_concurrency_test(true));
it ('should serialize access to a single branch even if updates are out of order', massive_concurrency_test(false));
});
});

@@ -11,12 +11,6 @@ var _ = require('underscore');

describe('Config Validation', function() {
beforeEach(function(done) {
git_utils.addFileToGitRepo('sample', 'wample', 'starter home', function(err) {
done();
});
});
it ('should reject a config with no repos', function(done) {
var count = 3;
git_manager.createGitManagers(null, function(err) {
var count = 3;
git_manager.manageRepos(null, function(err) {
err.should.equal('No array of repo configs provided');

@@ -26,3 +20,3 @@ --count;

});
git_manager.createGitManagers({}, function(err) {
git_manager.manageRepos({}, function(err) {
err.should.equal('No array of repo configs provided');

@@ -32,3 +26,3 @@ --count;

});
git_manager.createGitManagers([], function(err) {
git_manager.manageRepos([], function(err) {
err.should.equal('No array of repo configs provided');

@@ -39,5 +33,19 @@ --count;

});
it ('should reject a config with duplicate repo names', function(done) {
git_manager.manageRepos([{'name': 'test_repo'}, {'name': 'test_repo'}, {'name': 'github_test_repo'}], function(err) {
err.should.startWith('Duplicate name found in repos');
done();
});
});
it ('should reject a repo with duplicate branch names', function(done) {
git_manager.manageRepo({}, function(err) {
err.should.equal('No branches specified');
done();
});
});
it ('should reject a repo with no branches', function(done) {
git_manager.createGitManager({}, function(err) {
git_manager.manageRepo({}, function(err) {
err.should.equal('No branches specified');

@@ -47,5 +55,12 @@ done();

});
it ('should reject a repo with duplicate branches', function(done) {
git_manager.manageRepo({'name': 'busted_repo', 'branches': ['master', 'master', 'commander']}, function(err) {
err.should.startWith('Duplicate name found in branches for repo busted_repo');
done();
});
});
it ('should reject a repo with a bogus local_store', function(done) {
git_manager.createGitManager({'branches': ['master'], 'local_store': '/var/permdenied'}, function(err) {
git_manager.manageRepo({'branches': ['master'], 'local_store': '/var/permdenied'}, function(err) {
err.should.startWith('Failed to create root_directory for git manager:');

@@ -55,5 +70,5 @@ done();

});
it ('should reject a repo with a broken git url', function(done) {
git_manager.createGitManager(_.extend(git_utils.createConfig().repos[0], { url: 'file:///tmp/nobody_home' }), function(err) {
git_manager.manageRepo(_.extend(git_utils.createConfig().repos[0], { local_store:'/tmp/busted', url: 'file:///tmp/nobody_home' }), function(err) {
err.should.startWith('Failed to create manager for branch master');

@@ -63,5 +78,5 @@ done();

});
it ('should reject an invalid git hook type', function(done) {
git_manager.createGitManager(_.extend(git_utils.createConfig().repos[0], { hooks: [ { 'type': 'unknown' }] }), function(err, gm) {
git_manager.manageRepo(_.extend(git_utils.createConfig().repos[0], { hooks: [ { 'type': 'unknown' }] }), function(err, gm) {
err[0].should.startWith('Invalid hook type');

@@ -71,2 +86,2 @@ done();

});
});
});

@@ -18,18 +18,3 @@ var should = require('should');

var default_repo_config = git_utils.createConfig().repos[0];
beforeEach(function(done) {
var sample_key = 'sample_key';
var sample_value = 'test data';
git_utils.addFileToGitRepo(sample_key, sample_value, "Pull test.", function(err) {
if (err) return done(err);
git_manager.createGitManager(default_repo_config, function(err, gm) {
if (err) return done(err);
my_git_manager = gm;
done();
});
});
});
it ('should handle updates to a single file', function(done) {

@@ -42,20 +27,10 @@ // At this point, my_git_manager should have populated consul with our sample_key. Now update it.

if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REPO, function(err, ref) {
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, sample_value, function(err, value) {
if (err) return done(err);
my_git_manager.getBranchManager('master').handleRefChange(ref, function(err) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value);
done();
});
});
done();
});
});
});
it ('should handle additions of new files', function(done) {

@@ -68,20 +43,10 @@ // At this point, my_git_manager should have populated consul with our sample_key. Now update it.

if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REPO, function(err, ref) {
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, sample_value, function(err, value) {
if (err) return done(err);
my_git_manager.getBranchManager('master').handleRefChange(ref, function(err) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value);
done();
});
});
done();
});
});
});
it ('should handle deletions of existing files', function(done) {

@@ -94,34 +59,13 @@ // At this point, my_git_manager should have populated consul with our sample_key. Now update it.

if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REPO, function(err, ref) {
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, sample_value, function(err, value) {
if (err) return done(err);
my_git_manager.getBranchManager('master').handleRefChange(ref, function(err) {
git_utils.deleteFileFromGitRepo(sample_key, "Delete file for pull test.", true, function(err) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
// At this point, the git_manager should have removed our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, undefined, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value);
git_utils.deleteFileFromGitRepo(sample_key, "Delete file for pull test.", function(err) {
if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REPO, function(err, ref) {
if (err) return done(err);
my_git_manager.getBranchManager('master').handleRefChange(ref, function(err) {
if (err) return done(err);
// At this point, the git_manager should have removed our sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
if (err) return done(err);
(value === undefined).should.equal(true);
done();
});
});
});
});
done();
});
});
});
});

@@ -139,39 +83,17 @@ });

if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REPO, function(err, ref) {
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, sample_value, function(err, value) {
if (err) return done(err);
my_git_manager.getBranchManager('master').handleRefChange(ref, function(err) {
git_utils.moveFileInGitRepo(sample_key, sample_moved_key, "Move file for pull test.", function(err) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
// At this point, the git_manager should have populated consul with our moved key, deleting the old name
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, undefined, function(err) {
if (err) return done(err);
value.should.equal(sample_value);
git_utils.moveFileInGitRepo(sample_key, sample_moved_key, "Move file for pull test.", function(err) {
// At this point, the git_manager should have populated consul with our moved key, adding the new name
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_moved_key, sample_value, function(err) {
if (err) return done(err);
git_commands.getCurrentRef(git_utils.TEST_REPO, function(err, ref) {
if (err) return done(err);
my_git_manager.getBranchManager('master').handleRefChange(ref, function(err) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with our moved key, deleting the old name
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
if (err) return done(err);
(value === undefined).should.equal(true);
// At this point, the git_manager should have populated consul with our moved key, adding the new name
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_moved_key, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value);
done();
});
});
});
});
done();
});
});
});
});
});

@@ -178,0 +100,0 @@ });

@@ -15,3 +15,3 @@ var should = require('should');

describe('Cloning a repo for the first time', function() {
it ('should handle a multiple file repo', function(done) {

@@ -21,3 +21,3 @@ var sample_key = 'sample_key';

var default_repo_config = git_utils.createConfig().repos[0];
git_utils.addFileToGitRepo(sample_key, sample_value, "Clone test.", function(err) {
git_utils.addFileToGitRepo(sample_key, sample_value, "Clone test.", false, function(err) {
if (err) return done(err);

@@ -30,15 +30,9 @@

if (err) return done(err);
git_manager.createGitManager(default_repo_config, function(err) {
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, sample_value, function(err, value) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key, function(err, value) {
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key2, sample_value2, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value);
consul_utils.getValue('/' + default_repo_config.name + '/master/' + sample_key2, function(err, value) {
if (err) return done(err);
value.should.equal(sample_value2);
done();
});
done();
});

@@ -58,13 +52,60 @@ });

var sample_value = 'test data';
// This addFileToGitRepo will automatically create a git_manager in git_utils, so once the callback
// has fired we know that we are mirroring and managing the master branch locally.
git_utils.addFileToGitRepo(sample_key, sample_value, "Pull test.", function(err) {
if (err) return done(err);
git_manager.createGitManager(default_repo_config, function(err, gm) {
// Now we create another git_manager around the same repo with the same local address. This tells
// us that a git_manager can be created around an existing repo without issue.
git_manager.manageRepo(default_repo_config, function(err, gm) {
(err === null).should.equal(true);
git_manager.createGitManager(default_repo_config, function(err, gm) {
(err === null).should.equal(true);
done();
});
});
});
it ('should handle populating consul when you create a git_manager around a repo that is already on disk', function(done) {
var default_repo_config = git_utils.createConfig().repos[0];
var sample_key = 'sample_key';
var sample_value = 'test data';
// Create a git_manager and validate that the expected contents are present. This should only be run
// once we know the consul cluster has been purged of the previously cached values.
var test_git_manager = function(done) {
// Now we create another git_manager around the same repo with the same local address. This tells
// us that a git_manager can be created around an existing repo without issue.
git_manager.manageRepo(default_repo_config, function(err, gm) {
(err === null).should.equal(true);
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + sample_key, sample_value, function(err, value) {
if (err) return done(err);
done();
});
});
};
// This addFileToGitRepo will automatically create a git_manager in git_utils, so once the callback
// has fired we know that we are mirroring and managing the master branch locally.
git_utils.addFileToGitRepo(sample_key, sample_value, "Stale repo test.", function(err) {
if (err) return done(err);
// Now we want to delete the KVs from Consul and create another git_manager with the same configuration.
consul_utils.purgeKeys('test_repo', function(err) {
if (err) return done(err);
var check_value = function() {
consul_utils.getValue('/test_repo/master/sample_key', function(err, value) {
if (err) return done(err);
if (value) return setTimeout(check_value, 500);
// If we get here, we know the value was purged.
test_git_manager(done);
});
};
setTimeout(check_value, 500);
});
});

@@ -77,2 +118,4 @@ });

var default_repo_config = git_utils.createConfig();
// Add a Github repo to our repo config because we want to initialize multiple repos at once.
default_repo_config.repos.push({

@@ -84,9 +127,12 @@ name: 'test_github_repo',

});
git_utils.addFileToGitRepo(sample_key, sample_value, "Multi repo test.", function(err) {
// We use 'false' for the auto-commit flag on this call because we don't want a git_manager to be
// created in git_utils. We want the manageRepos call to be the first time we create any repos
// in this test.
git_utils.addFileToGitRepo(sample_key, sample_value, "Multi repo test.", false, function(err) {
if (err) return done(err);
git_manager.createGitManagers(default_repo_config.repos, function(err, gms) {
git_manager.manageRepos(default_repo_config.repos, function(err, gms) {
if (err) return done(err);
(err == null).should.equal(true);

@@ -93,0 +139,0 @@ gms.length.should.equal(2);

@@ -13,24 +13,6 @@ var should = require('should');

var my_git_manager;
describe('Key names', function() {
describe('Key names', function() {
var default_repo_config = git_utils.createConfig().repos[0];
beforeEach(function(done) {
git_utils.addFileToGitRepo("iceice", "baby", "Init repo.", function(err) {
if (err) return done(err);
git_manager.createGitManager(default_repo_config, function(err, gm) {
if (err) return done(err);
my_git_manager = gm;
done();
});
});
});
var default_repo_config = git_utils.createConfig().repos[0];
var test_add = function(key_name, key_value) {

@@ -40,12 +22,7 @@ return function(done) {

if (err) return done(err);
my_git_manager.getBranchManager('master').handleRefChange(0, function(err) {
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.validateValue('/' + default_repo_config.name + '/master/' + key_name, key_value, function(err, value) {
if (err) return done(err);
// At this point, the git_manager should have populated consul with our sample_key
consul_utils.getValue('/' + default_repo_config.name + '/master/' + key_name, function(err, value) {
if (err) return done(err);
value.should.equal(key_value);
done();
});
done();
});

@@ -55,3 +32,3 @@ });

};
['sample key', 'sample:key', 'sample;key', 'sample\\key', 'sample@key', 'sample!key'].forEach(function(key_name) {

@@ -61,4 +38,4 @@ var sample_value = 'new test data';

});
});

@@ -8,3 +8,3 @@ ##### TODO

* ✓ Initializing multiple repos at once
* Initialize with an empty consul config but repos already on disk
* ✓ Initialize with an empty consul config but repos already on disk
* Create test cases around all git operations

@@ -26,11 +26,11 @@ * ✓ Add

* ✓ Exclamation point
* Create boundary check test cases
* Test keys with values above 512kB
* ✓ Create boundary check test cases
* ✓ Test keys with values above 512kB
* Test config validation
* repo
* git repos do not have the same names
* no duplicate branches in a repo
* hooks
* stash hook
* github hook
* polling hook
* ✓ repo
* ✓ git repos do not have the same names
* ✓ no duplicate branches in a repo
* hooks
* stash hook
* github hook
* polling hook

@@ -0,1 +1,3 @@

var should = require('should');
var ConsulClass = require('consul-node');

@@ -9,3 +11,3 @@ var consul = new ConsulClass();

if (err) return cb(err);
cb(null, value === undefined ? value : value[0].value);

@@ -15,2 +17,11 @@ });

exports.validateValue = function(key, expected_value, cb) {
exports.getValue(key, function(err, value) {
if (err) return cb(err);
if (!expected_value) (value == undefined).should.equal(true)
else value.should.equal(expected_value);
cb();
})
};
var kill_entry = function(key) {

@@ -27,3 +38,3 @@ logger.trace('Deleting %s', key);

if (err) return console.error(err);
if (items && items.length > 0) {

@@ -34,5 +45,5 @@ items.forEach(function(item) {

}
cb();
});
}
}
var fs = require('fs');
var git_commands = require('../../lib/utils/git_commands.js');
var git_manager = require('../../lib/git_manager.js');

@@ -22,13 +23,43 @@ exports.TEST_REMOTE_REPO = '/tmp/test_repo/';

exports.addFileToGitRepo = function(name, content, commit_message, cb) {
exports.initRepo = function(name, cb) {
git_commands.init(exports.TEST_REMOTE_REPO, function(err) {
if (err) return cb(err);
exports.addFileToGitRepo("readme.md", "Stub file to give us something to commit.", "Init repo.", false, function(err) {
if (err) return cb(err);
git_manager.manageRepo(exports.createConfig().repos[0], function(err, gm) {
if (err) return cb(err);
exports.GM = gm;
cb(null);
});
});
});
};
exports.addFileToGitRepo = function(name, content, commit_message, update, cb) {
if (!cb) {
cb = update;
update = true;
}
fs.writeFile(exports.TEST_REMOTE_REPO + name, content, function(err) {
if (err) return cb(err);
git_commands.add(name, exports.TEST_REMOTE_REPO, function(err) {
if (err) return cb(err);
git_commands.commit(commit_message, exports.TEST_REMOTE_REPO, function(err) {
if (err) return cb(err);
cb();
if (update) {
exports.GM.getBranchManager('master').handleRefChange(0, function(err) {
if (err) return cb(err);
cb();
});
} else {
cb();
}
});

@@ -39,10 +70,23 @@ });

exports.deleteFileFromGitRepo = function(name, commit_message, cb) {
exports.deleteFileFromGitRepo = function(name, commit_message, update, cb) {
if (!cb) {
cb = update;
update = true;
}
git_commands.delete(name, exports.TEST_REMOTE_REPO, function(err) {
if (err) return cb(err);
git_commands.commit(commit_message, exports.TEST_REMOTE_REPO, function(err) {
if (err) return cb(err);
cb();
if (update) {
exports.GM.getBranchManager('master').handleRefChange(0, function(err) {
if (err) return cb(err);
cb();
});
} else {
cb();
}
});

@@ -52,12 +96,24 @@ });

exports.moveFileInGitRepo = function(old_name, new_name, commit_message, cb) {
exports.moveFileInGitRepo = function(old_name, new_name, commit_message, update, cb) {
if (!cb) {
cb = update;
update = true;
}
git_commands.mv(old_name, new_name, exports.TEST_REMOTE_REPO, function(err) {
if (err) return cb(err);
git_commands.commit(commit_message, exports.TEST_REMOTE_REPO, function(err) {
if (err) return cb(err);
cb();
if (update) {
exports.GM.getBranchManager('master').handleRefChange(0, function(err) {
if (err) return cb(err);
cb();
});
} else {
cb();
}
});
});
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc