API for interacting with jepso-ci config files
JavaScript HTML
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

Build Status Dependency Status

jepso-ci-config

API for interacting with jepso-ci config files

Installation

$ npm install jepso-ci-config

API

loadLocal(directory, [callback])

Loads and validates/error-corrects jepso-ci configuration from a local directory. If callback is omitted a promise is returned.

var config = require('jepso-ci-config');
config.loadLocal(__dirname, function (err, res) {
  if (err) throw err;
  else console.dir(res);
});

loadLocal.sync(directory)

Loads and validates/error-corrects jepso-ci configuration from a local directory.

var config = require('jepso-ci-config');
console.dir(config.loadLocal.sync(__dirname));

loadRemote(user, repo, [tag = 'master'], [callback])

Loads and validates/error-corrects jepso-ci configuration from a github repository. If callback is omitted a promise is returned.

var config = require('jepso-ci-config');
config.loadRemote('jepso-ci-examples', 'minimum', function (err, res) {
  if (err) throw err;
  else console.dir(res);
});

License

MIT