lib/bootstrap.js
function bootstrapPath(dir, site) {
  let promise,
    data = getConfig(dir);

  if (data) {
    promise = load(data, site);
  } else {
    promise = Promise.reject(new Error(`No bootstrap found at ${dir}`));
  }

  return promise;
}
function bootstrapPath(dir, site) {
  let promise,
    data = getConfig(dir);

  if (data) {
    promise = load(data, site);
  } else {
    promise = Promise.reject(new Error(`No bootstrap found at ${dir}`));
  }

  return promise;
}
function bootstrapPath ( dir , site ) { let promise , data = getConfig ( dir ) ; if ( data ) { promise = load ( data , site ) ; } else { promise = Promise . reject ( new Error ( ` ${ dir } ` ) ) ; } return promise ; }
Load items into db from yaml file
@param {string} dir
@param {object} site
@returns {Promise}
Load items into db from yaml file