--- trunk/lib/Frey/Pipe.pm 2008/11/19 19:28:09 467 +++ trunk/lib/Frey/Pipe.pm 2008/11/25 00:26:15 507 @@ -35,19 +35,20 @@ my $out; my $pipe; - $self->title( ref($self) . ' | ' . $self->pipe ); + $self->title( $self->pipe ); + + my @parts; foreach my $part ( split(/\|/, $self->pipe ) ) { warn "# part: '$part'"; if ( $part =~ m{^([^/]+)/([^\+\?]+)(.*)?$} ) { my ( $class, $method, $args ) = ( $1, $2, $3 ); - push @{ $self->status }, { $class => { method => $method, args => $args } }; + push @parts, { $class => { method => $method, args => $args } }; my $params = $pipe; $params = {} unless defined $params; if ( defined $args ) { $args =~ s{^[\?\+\s]}{}; warn "# class $class method $method args '$args'", $pipe ? " pipe args " . join(',',keys %$pipe) : '' if $self->debug; - push @{ $self->status }, { $class =>$args }; map { my ( $name, $value ) = ( $1, $2 ) if m{^([^=]+)=(.+)$} || confess "can't parse '$_'"; $params->{$name} = $value; @@ -72,8 +73,8 @@ } } - warn "# pipe ", $self->title; - + warn "# pipe ", $self->title, " parts ",dump( @parts ); + $self->add_status( $_ ) foreach @parts; return $out; }