2008-11-25 11:01:42 +00:00
|
|
|
package Hydra::View::TT;
|
2008-10-28 10:19:31 +00:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use base 'Catalyst::View::TT';
|
2013-01-22 21:48:02 +00:00
|
|
|
use Hydra::Helper::Nix;
|
2008-10-28 10:19:31 +00:00
|
|
|
|
2013-01-22 21:48:02 +00:00
|
|
|
__PACKAGE__->config(
|
|
|
|
TEMPLATE_EXTENSION => '.tt',
|
|
|
|
expose_methods => [qw/log_exists/]);
|
|
|
|
|
|
|
|
sub log_exists {
|
|
|
|
my ($self, $c, $drvPath) = @_;
|
|
|
|
my $x = getDrvLogPath($drvPath);
|
|
|
|
return defined $x;
|
|
|
|
}
|
2008-10-28 10:19:31 +00:00
|
|
|
|
|
|
|
1;
|