Created
September 24, 2013 05:53
-
-
Save lightsofapollo/6680848 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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