Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds some documentation to NPI and make methods #50

Merged
merged 5 commits into from
Feb 12, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/sources/npi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ var shelljs = require('shelljs'),
logger = require('../../logger').data;

module.exports = {

// fetches pending migrations
// and runs them
update: function () {
logger.info('updating NPI datasources');
return sourceMeta.updating('NPI')
Expand Down
2 changes: 1 addition & 1 deletion lib/sources/npi/monthly/indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ module.exports = {
// actually create the indices with SQL using the pg driver
return Q.ninvoke(pg, 'query', indicesSql);
}
}
}
3 changes: 3 additions & 0 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ target.all = function () {
var Q = require('q');
Q.longStackSupport = true;

// calls npi#update
target.fetch = function () {
var pg = require('./lib/sources/pg'),
npi = require('./lib/sources/npi');
Expand All @@ -31,6 +32,8 @@ target.fetch = function () {
});
};

// creates the database and calls
// npi#update
target.bootstrap = function () {
var pg = require('./lib/sources/pg'),
npi = require('./lib/sources/npi'),
Expand Down