App-Pipeline-Simple
view release on metacpan or search on metacpan
Reports parsing and logical errors.
=item B<--graphviz>
Print out a graphviz dot file.
Example one liner to display a graph of the pipeline:
spipe -config t/data/string_manipulation.yml -graph > \
/tmp/p.dot; dot -Tpng /tmp/p.dot| display
=item B<-c | --config> string
Path to the config file. Required unless there is a file called
config.yml in the current directory.
=item B<-d | --directory> string
Directory to keep all files.
spipe -config t/data/string_manipulation.xml -dir /tmp/test
An other tool integrated in the system is visualization of the
execution graph. It is done with the help of L<GraphViz> perl
interface module that will need to be installed from CPAN.
The following command line creates a Graphviz dot file, converts it
into an image file and opens it with the Imagemagic display program:
spipe -config t/data/string_manipulation.xml -graph > \
/tmp/p.dot; dot -Tpng /tmp/p.dot | display
=head1 CONFIGURATION
The default configuration is written in YAML, a simple and human
readable language that can be parsed in many languages cleanly into
data structures.
The YAML file contains four top level keys for the hash that the file
will be read into: 1) C<name> to give the pipeline a short name, 2)
C<version> to indicate the version number, 3) C<description> to give a
lib/App/Pipeline/Simple.pm view on Meta::CPAN
} else {
$end++;
$g->add_node($end, label => ' ');
$g->add_edge($step->id => $end, label => " ". $step->render('display') );
}
}
return $g->as_dot;
$self->logger->info("Graphing done. Process the dot ".
"file (e.g. dot -Tpng p.dot|display " );
}
1;
__END__
=pod
=head1 NAME
( run in 1.284 second using v1.01-cache-2.11-cpan-df04353d9ac )