lib/bootstrap.js
function getConfig(dir) {
  dir = path.resolve(dir);

  if (dir.indexOf('.', 2) > 0) {
    // remove extension
    dir = dir.substring(0, dir.indexOf('.', 2));
  }

  if (files.isDirectory(dir)) {
    // default to bootstrap.yaml or bootstrap.yml
    dir = path.join(dir, 'bootstrap');
  }

  return files.getYaml(dir);
}
function getConfig(dir) {
  dir = path.resolve(dir);

  if (dir.indexOf('.', 2) > 0) {
    // remove extension
    dir = dir.substring(0, dir.indexOf('.', 2));
  }

  if (files.isDirectory(dir)) {
    // default to bootstrap.yaml or bootstrap.yml
    dir = path.join(dir, 'bootstrap');
  }

  return files.getYaml(dir);
}
function getConfig ( dir ) { dir = path . resolve ( dir ) ; if ( dir . indexOf ( '.' , 2 ) > 0 ) { // remove extension dir = dir . substring ( 0 , dir . indexOf ( '.' , 2 ) ) ; } if ( files . isDirectory ( dir ) ) { // default to bootstrap.yaml or bootstrap.yml dir = path . join ( dir , 'bootstrap' ) ; } return files . getYaml ( dir ) ; }
Get yaml file as object

@param {string} dir
@returns {object}
Get yaml file as object