line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bat::Interpreter::Delegate::FileStore::LocalFileSystem; |
2
|
|
|
|
|
|
|
|
3
|
23
|
|
|
23
|
|
263
|
use utf8; |
|
23
|
|
|
|
|
58
|
|
|
23
|
|
|
|
|
177
|
|
4
|
|
|
|
|
|
|
|
5
|
23
|
|
|
23
|
|
716
|
use Moo; |
|
23
|
|
|
|
|
44
|
|
|
23
|
|
|
|
|
145
|
|
6
|
23
|
|
|
23
|
|
24806
|
use Path::Tiny; |
|
23
|
|
|
|
|
268212
|
|
|
23
|
|
|
|
|
1468
|
|
7
|
23
|
|
|
23
|
|
248
|
use namespace::autoclean; |
|
23
|
|
|
|
|
51
|
|
|
23
|
|
|
|
|
227
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Bat::Interpreter::Role::FileStore'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.023'; # VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub get_contents { |
14
|
25
|
|
|
25
|
1
|
271
|
my $self = shift(); |
15
|
25
|
|
|
|
|
63
|
my $filename = shift(); |
16
|
25
|
|
|
|
|
134
|
$filename = Path::Tiny::path($filename); |
17
|
25
|
|
|
|
|
1219
|
return $filename->slurp; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |