Skip to content

Commit

Permalink
me: implement createRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
booo committed Mar 9, 2012
1 parent 2c002de commit 1b5ac88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/octonode/me.coffee
Expand Up @@ -136,5 +136,12 @@ class Me
return cb(err) if err
if s isnt 204 then cb(new Error('User delKey error')) else cb null, b

# Create a repository
# '/user/repos' POST
createRepo: (repo, cb) ->
@client.post "/user/repos", repo, (err, s, b) ->
return cb(err) if err
if s isnt 201 then cb(new Error('User createRepo error')) else cb null, b

# Export module
module.exports = Me

0 comments on commit 1b5ac88

Please sign in to comment.