[Jifty-commit] r4594 - in jifty/trunk: lib/Jifty/Plugin/Recorder/Command

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Nov 30 18:33:03 EST 2007


Author: sartak
Date: Fri Nov 30 18:33:02 2007
New Revision: 4594

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Recorder/Command/Playback.pm

Log:
 r48462 at onn:  sartak | 2007-11-30 18:31:36 -0500
 Allow playback of multiple files in one command, get rid of -f switch


Modified: jifty/trunk/lib/Jifty/Plugin/Recorder/Command/Playback.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Recorder/Command/Playback.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Recorder/Command/Playback.pm	Fri Nov 30 18:33:02 2007
@@ -17,10 +17,9 @@
 
 sub options {
     (
-     'f|file=s' => 'file',
+     'max=s'    => 'max',
      'quiet'    => 'quiet',
      'dbiprof'  => 'dbiprof',
-     'max=s'    => 'max',
     )
 }
 
@@ -52,8 +51,10 @@
     # to be around.
 
     # now read in the YAML and do our dark deeds
-    my @requests = YAML::LoadFile($self->{file});
-    $self->play_requests(@requests);
+    for my $file (@ARGV) {
+        my @requests = YAML::LoadFile($file);
+        $self->play_requests(@requests);
+    }
 }
 
 sub play_request {


More information about the Jifty-commit mailing list