[Bps-public-commit] r14250 - in sd/trunk: . lib/App/SD/CLI/Command/Ticket
sartak at bestpractical.com
sartak at bestpractical.com
Thu Jul 17 23:31:54 EDT 2008
Author: sartak
Date: Thu Jul 17 23:31:54 2008
New Revision: 14250
Added:
sd/trunk/lib/App/SD/CLI/Command/Ticket/Resolve.pm
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/CLI/Command/Help.pm
Log:
r64549 at onn: sartak | 2008-07-17 23:31:47 -0400
Add a ticket resolve command
Modified: sd/trunk/lib/App/SD/CLI/Command/Help.pm
==============================================================================
--- sd/trunk/lib/App/SD/CLI/Command/Help.pm (original)
+++ sd/trunk/lib/App/SD/CLI/Command/Help.pm Thu Jul 17 23:31:54 2008
@@ -9,7 +9,8 @@
$0 @{[$App::SD::VERSION]}
$0 ticket create --summary "This is a summary" --status new --somekey value
-$0 ticket update --uuid <uuid> --status resolved
+$0 ticket update --uuid <uuid> --status closed
+$0 ticket resolve --uuid <uuid>
$0 ticket search --regex .
$0 ticket delete --uuid <uuid>
$0 ticket show --uuid <uuid>
Added: sd/trunk/lib/App/SD/CLI/Command/Ticket/Resolve.pm
==============================================================================
--- (empty file)
+++ sd/trunk/lib/App/SD/CLI/Command/Ticket/Resolve.pm Thu Jul 17 23:31:54 2008
@@ -0,0 +1,14 @@
+package App::SD::CLI::Command::Ticket::Resolve;
+use Moose;
+extends 'Prophet::CLI::Command::Update';
+
+before run => sub {
+ my $self = shift;
+ $self->set_prop(status => 'closed');
+};
+
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
+1;
+
More information about the Bps-public-commit
mailing list