App::Hachero::Plugin::Output::Dump - dumps result to STDOUT (for debug)


App-Hachero documentation Contained in the App-Hachero distribution.

Index


Code Index:

NAME

Top

App::Hachero::Plugin::Output::Dump - dumps result to STDOUT (for debug)

SYNOPSIS

Top

  ---
  plugins:
    - module: Output::Dump

DESCRIPTION

Top

dumps result to STDOUT (for debug)

implemented hooks

* output

AUTHOR

Top

Takaaki Mizuno <cpan@takaaki.info>

Nobuo Danjou <nobuo.danjou@gmail.com>

SEE ALSO

Top

App::Hachero

YAML


App-Hachero documentation Contained in the App-Hachero distribution.

package App::Hachero::Plugin::Output::Dump;
use strict;
use warnings;
use base qw(App::Hachero::Plugin::Base);
use YAML;

sub output : Hook {
    my ($self, $context, $args) = @_;
    my $fh = \*STDOUT;
    print $fh Dump $context->result;
}

1;
__END__