strider-runner-core

2.0.3 • Public • Published

strider-runner-core

Just run those jobs. Decoupled from load balancing, job queues, etc.

Build Status

Usage

var core = require('strider-runner-core');
 
core.process(data, provider, plugins, config, next);

API

  • data is the mongoose job object. See the main strider repo for a schema.
  • provider is an instantiated provider, such as strider-git.
  • plugins is a map of instantiated plugins (such as strider-node) {id: plugin, ...}
  • config - object attributes:
    • env - a map for augmenting the ENV variables in all commands run
    • io - an eventemitter for communication.
    • dataDir - the directory to hold your code
    • baseDir - base directory for this job
    • cacheDir - cache directory
    • cachier (see this file)
    • logger
    • log - log fn
    • error - log errors
  • next is called with any errors as the first argument.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.3
    5
    • latest

Version History

Package Sidebar

Install

npm i strider-runner-core

Weekly Downloads

6

Version

2.0.3

License

MIT

Unpacked Size

43.3 kB

Total Files

22

Last publish

Collaborators

  • jabapyth
  • knownasilya
  • niallo
  • oliversalzburg