1 |
package Frey::SVK; |
package Frey::SVK; |
2 |
use Moose; |
use Moose; |
3 |
|
|
4 |
with 'Frey::Escape'; |
extends 'Frey'; |
5 |
|
with 'Frey::Web'; |
6 |
|
|
7 |
sub svk { |
sub svk { |
8 |
my ( $self, $exec, $coderef ) = @_; |
my ( $self, $exec, $coderef ) = @_; |
29 |
return $info if $info; |
return $info if $info; |
30 |
my $svk = $self->svk('info', sub { |
my $svk = $self->svk('info', sub { |
31 |
my ( $label, $value ) = split(/:\s+/, $_, 2); |
my ( $label, $value ) = split(/:\s+/, $_, 2); |
32 |
$info->{$label} = $value; |
$info->{$label} = $value if $label; |
33 |
}); |
}); |
34 |
return $info; |
return $info; |
35 |
} |
} |
49 |
|
|
50 |
my $html |
my $html |
51 |
= qq|<pre>$status</pre><hr><pre>| |
= qq|<pre>$status</pre><hr><pre>| |
52 |
. $self->html_escape( $diff ) |
# . $self->html_escape( $diff ) |
53 |
|
. $diff |
54 |
. qq|</pre>| |
. qq|</pre>| |
55 |
; |
; |
56 |
warn "diff ",length($html)," bytes"; |
warn "diff ",length($html)," bytes"; |