[Bps-public-commit] Prophet branch, master, updated. 0.742-5-gd3baf55
Shawn Moore
sartak at bestpractical.com
Fri Jun 18 15:13:11 EDT 2010
The branch, master has been updated
via d3baf555a545bf5dc4f145ef5cf5df5a0188abd6 (commit)
from 5953dbc28a142c80777410c0b9c60c7d1457309b (commit)
Summary of changes:
lib/Prophet/CLI/Dispatcher/Rule/RecordId.pm | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
create mode 100644 lib/Prophet/CLI/Dispatcher/Rule/RecordId.pm
- Log -----------------------------------------------------------------
commit d3baf555a545bf5dc4f145ef5cf5df5a0188abd6
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Jun 18 15:13:58 2010 -0400
First cut of a RecordId rule
For matching (and next, tab-completing) record IDs
diff --git a/lib/Prophet/CLI/Dispatcher/Rule/RecordId.pm b/lib/Prophet/CLI/Dispatcher/Rule/RecordId.pm
new file mode 100644
index 0000000..cd610e0
--- /dev/null
+++ b/lib/Prophet/CLI/Dispatcher/Rule/RecordId.pm
@@ -0,0 +1,14 @@
+package Prophet::CLI::Dispatcher::Rule::RecordId;
+use Any::Moose;
+extends 'Path::Dispatcher::Rule::Regex';
+with 'Prophet::CLI::Dispatcher::Rule';
+
+has '+regex' => (
+ default => qr/^$Prophet::CLIContext::ID_REGEX$/i,
+);
+
+__PACKAGE__->meta->make_immutable;
+no Any::Moose;
+
+1;
+
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list