Permalink
Browse files

readme notes and a bump for autocreate

  • Loading branch information...
1 parent b664978 commit c6408de6d8e81b33d59c2085095d1014472eb09b @substack committed Nov 24, 2011
Showing with 6 additions and 5 deletions.
  1. +5 −3 README.markdown
  2. +0 −1 example/simple.js
  3. +1 −1 package.json
View
@@ -15,7 +15,6 @@ simple.js
var pushover = require('pushover');
var repos = pushover(__dirname + '/repos');
-repos.create('beep');
repos.on('push', function (repo) {
console.log('received a push to ' + repo);
});
@@ -55,15 +54,18 @@ methods
var pushover = require('pushover')
-var repos = pushover(repoDir)
------------------------------
+var repos = pushover(repoDir, opts={autoCreate:true})
+-----------------------------------------------------
Create a new repository collection from the directory `repoDir`.
`repoDir` should be entirely empty except for git repo directories.
`repos` is an EventEmitter. Right now it only emits "push" events with the repo
name as the only argument.
+By default, repository targets will be created if they don't exist. You can
+disable that behavior with `opts.autoCreate`.
+
repos.handle(req, res, next)
----------------------------
View
@@ -1,7 +1,6 @@
var pushover = require('pushover');
var repos = pushover(__dirname + '/repos');
-repos.create('beep');
repos.on('push', function (repo) {
console.log('received a push to ' + repo);
});
View
@@ -1,7 +1,7 @@
{
"name" : "pushover",
"description" : "git push deploy server over http",
- "version" : "0.0.0",
+ "version" : "0.1.0",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/pushover.git"

0 comments on commit c6408de

Please sign in to comment.