Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
[api] Better names for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Nov 21, 2011
1 parent 664f4b8 commit 0cd1508
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/travis-ci.js
Expand Up @@ -2,21 +2,21 @@ var request = require('request');

var remoteHost = exports.remoteHost = 'http://travis-ci.org';

exports.repositories = function (callback) {
exports.listRepositories = function (callback) {
request({
url: remoteHost + '/repositories.json',
json: true
}, callback);
};

exports.show = function (owner, repo, callback) {
exports.getRepository = function (owner, repo, callback) {
request({
url: remoteHost + '/' + owner + '/' + repo + '.json',
json: true
}, callback);
};

exports.builds = function (owner, repo, callback) {
exports.listBuilds = function (owner, repo, callback) {
request({
url: remoteHost + '/' + owner + '/' + repo + '/builds.json',
json: true
Expand Down

0 comments on commit 0cd1508

Please sign in to comment.