Alien-Ditaa
view release on metacpan or search on metacpan
SYNOPSIS
use Alien::Ditaa;
my $ditaa = Alien::Ditaa->new;
$ditaa->run_ditaa($input_fn, $output_dn, @args);
DESCRIPTION
Trivial wrapper to run ditaa from perl.
METHODS
run_ditaa ($input_fn, $output_fn, [@args])
Runs ditaa on the input file to produce an output png.
See the ditaa documentation for additional arguments you may want (but
probably don't).
Returns the exit status of the java process (i.e. 0 for success)
last_run_output
The STDOUT of the child java process running ditaa for the last call to
the "run_ditaa" method. This is not normally useful except as
information to help debug the problem when a run fails.
lib/Alien/Ditaa.pm view on Meta::CPAN
$ditaa->run_ditaa($input_fn, $output_dn, @args);
=head1 DESCRIPTION
Trivial wrapper to run ditaa from perl.
=head1 METHODS
=head2 run_ditaa ($input_fn, $output_fn, [@args])
Runs ditaa on the input file to produce an output png.
See the ditaa documentation for additional arguments you
may want (but probably don't).
Returns the exit status of the java process (i.e. 0 for success)
=head2 last_run_output
The STDOUT of the child java process running ditaa for the last
call to the C<< run_ditaa >> method. This is not normally useful
script/ditaa view on Meta::CPAN
Alien::Ditaa->new->run_ditaa(@ARGV);
1;
=head1 NAME
ditaa - Trivial wrapper script for ditaa.jar
=head1 SYNOPSIS
ditaa infile.txt outfile.png
=head1 DESCRIPTION
Trivial wrapper to run ditaa.jar.
=head1 SEE ALSO
L<http://ditaa.sourceforge.net>
=head1 INCLUDED SOFTWARE
t/01basic.t view on Meta::CPAN
use strict;
use warnings;
use File::Temp qw/tempfile/;
use Test::More;
use Alien::Ditaa;
my ($fh, $in_fn) = tempfile;
my $out_fn = "$in_fn.png";
print $fh q{
+-------------+
| Hello world |
+-------------+
};
close $fh;
my $ditaa = Alien::Ditaa->new;
ok $ditaa;
( run in 1.035 second using v1.01-cache-2.11-cpan-df04353d9ac )