Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Created September 24, 2013 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lightsofapollo/6680848 to your computer and use it in GitHub Desktop.
Save lightsofapollo/6680848 to your computer and use it in GitHub Desktop.
/**
Job information type.
We might put things like the bugzilla # and other details here that persist across tasks for our bugs
*/
function Job(options) {
}
/**
Project details like oauth tokens and landing locations.
*/
function Project() {}
function TaskOptions() {}
TaskOptions = {
tries: 0,
started_at: Date,
ended_at: Date,
last_try: Date,
options: Object,
type: 'ci-github-commit-status'
};
/**
Task interface as used by an actual task
Ideas taken from: https://github.com/collectiveidea/delayed_job
*/
function Task(TaskOptions, Job, Project) {
}
Task.prototype = {
/**
@param {Object} options (same as TaskOptions.options)
@param {Function} callback [Error, Result]
*/
perform: function(options, callback) {
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment