2.0.3 • Published 11 years ago

jepso-ci-config v2.0.3

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

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