| Bread-Board documentation | Contained in the Bread-Board distribution. |
Bread::Board::GraphViz::App - display a Bread::Board's dependency graph
See visualize-breadboard.pl.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Jonathan Rockway - <jrockway@cpan.org>
Copyright 2007-2011 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Bread-Board documentation | Contained in the Bread-Board distribution. |
package Bread::Board::GraphViz::App; use Moose; use Bread::Board::GraphViz; our $AUTHORITY = 'cpan:STEVAN'; our $VERSION = '0.20'; with 'MooseX::Runnable'; sub run { my ($self, @code) = @_; my $board = eval( 'no strict; '. join ' ', @code ); die if $@; if(!blessed $board || !$board->isa('Bread::Board::Container')){ print {*STDERR} "That code did not evaluate to a Bread::Board::Container.\n"; return 1; } my $g = Bread::Board::GraphViz->new; $g->add_container($board); print $g->graph->as_debug; return 0; } __PACKAGE__->meta->make_immutable; no Moose; 1; __END__