Sha256: db981ab2f64c508ddbc06db98ad116fa7c1c5ddbf20ed35a746b065cbf6fbe6a
Contents?: true
Size: 744 Bytes
Versions: 75
Compression:
Stored size: 744 Bytes
Contents
/******************************* GitHub Login *******************************/ /* Logs into GitHub using OAuth */ var fs = require('fs'), path = require('path'), githubAPI = require('github'), // stores oauth info for GitHub API oAuthConfig = path.join(__dirname, 'oauth.js'), oAuth = fs.existsSync(oAuthConfig) ? require(oAuthConfig) : false, github ; if(!oAuth) { console.log('here'); console.error('Must add oauth token for GitHub in tasks/config/admin/oauth.js'); } github = new githubAPI({ version : '3.0.0', debug : true, protocol : 'https', timeout : 5000 }); github.authenticate({ type: 'oauth', token: oAuth.token }); module.exports = github;
Version data entries
75 entries across 75 versions & 1 rubygems