App-Oozie
view release on metacpan or search on metacpan
lib/App/Oozie/Deploy/Template/ttree.pm view on Meta::CPAN
123456789101112131415161718192021222324252627282930package
App::Oozie::Deploy::Template::ttree;
use
strict;
use
warnings;
our
$VERSION
=
'0.020'
;
# VERSION
sub
new {
my
(
$class
,
$log_collector
,
@pass_through
) =
@_
;
my
$self
=
$class
->SUPER::new(
@pass_through
,
);
$self
->{log_collector} =
$log_collector
;
return
$self
;
}
sub
run {
my
(
$self
,
@args
) =
@_
;
local
@ARGV
=
@args
;
return
$self
->SUPER::run();
}
sub
emit_warn {
my
(
$self
,
$msg
) =
@_
;
return
$self
->{log_collector}->(
level
=>
'warn'
,
msg
=>
$msg
,
);
}
( run in 0.324 second using v1.01-cache-2.11-cpan-00829025b61 )