line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bat::Interpreter::Delegate::FileStore::LocalFileSystem; |
2
|
|
|
|
|
|
|
|
3
|
25
|
|
|
25
|
|
203
|
use utf8; |
|
25
|
|
|
|
|
88
|
|
|
25
|
|
|
|
|
241
|
|
4
|
|
|
|
|
|
|
|
5
|
25
|
|
|
25
|
|
861
|
use Moo; |
|
25
|
|
|
|
|
62
|
|
|
25
|
|
|
|
|
152
|
|
6
|
25
|
|
|
25
|
|
31077
|
use Path::Tiny; |
|
25
|
|
|
|
|
313167
|
|
|
25
|
|
|
|
|
1599
|
|
7
|
25
|
|
|
25
|
|
247
|
use namespace::autoclean; |
|
25
|
|
|
|
|
74
|
|
|
25
|
|
|
|
|
263
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Bat::Interpreter::Role::FileStore'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.025'; # VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub get_contents { |
14
|
27
|
|
|
27
|
1
|
334
|
my $self = shift(); |
15
|
27
|
|
|
|
|
74
|
my $filename = shift(); |
16
|
27
|
|
|
|
|
153
|
$filename = Path::Tiny::path($filename); |
17
|
27
|
|
|
|
|
1366
|
return $filename->slurp; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |