projects
/
angular-mojolicious.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update upstream Mojolicious
[angular-mojolicious.git]
/
couchdb-trigger.pl
diff --git
a/couchdb-trigger.pl
b/couchdb-trigger.pl
index
db5acb0
..
1724b67
100755
(executable)
--- a/
couchdb-trigger.pl
+++ b/
couchdb-trigger.pl
@@
-25,6
+25,8
@@
my ( $url, $trigger_path ) = @ARGV;
$url ||= 'http://localhost:5984/monitor';
$trigger_path ||= 'trigger/shell.pm' ;
$url ||= 'http://localhost:5984/monitor';
$trigger_path ||= 'trigger/shell.pm' ;
+our $database = $1 if $url =~ m{/(\w+)/?$};
+
sub commit { warn "# commit ignored\n"; }
require $trigger_path if -e $trigger_path;
sub commit { warn "# commit ignored\n"; }
require $trigger_path if -e $trigger_path;