https://github.com/strider-cd/strider-runner-core
Just run those jobs. Decoupled from load balancing, job queues, etc.
https://github.com/strider-cd/strider-runner-core
Last synced: 10 months ago
JSON representation
Just run those jobs. Decoupled from load balancing, job queues, etc.
- Host: GitHub
- URL: https://github.com/strider-cd/strider-runner-core
- Owner: Strider-CD
- License: mit
- Created: 2013-08-03T21:35:13.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-04-15T13:48:03.000Z (about 3 years ago)
- Last Synced: 2025-06-11T00:44:41.832Z (12 months ago)
- Language: JavaScript
- Size: 215 KB
- Stars: 7
- Watchers: 4
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# strider-runner-core
Just run those jobs. Decoupled from load balancing, job queues, etc.
[](https://travis-ci.org/Strider-CD/strider-runner-core)
## Usage
```js
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](https://github.com/Strider-CD/strider-git).
- `plugins` is a map of instantiated plugins (such as [strider-node](https://github.com/Strider-CD/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](https://github.com/Strider-CD/strider-simple-runner/blob/master/lib/cachier.js))
- logger
- log - log fn
- error - log errors
- `next` is called with any errors as the first argument.