File Coverage

blib/lib/Sweet/Home.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Sweet::Home;
2 1     1   91555 use strict;
  1         8  
  1         72  
3 1     1   4 use warnings;
  1         1  
  1         107  
4              
5             our $VERSION = '0.02';
6              
7             1;
8              
9             =encoding utf8
10              
11             =head1 NAME
12              
13             Sweet::Home - Dir, File, HomeDir, and other sweet classes
14              
15             =begin HTML
16              
17             <p><a href="https://metacpan.org/pod/Sweet::Home" target="_blank"><img alt="CPAN version" src="https://badge.fury.io/pl/Sweet-Home.svg"></a> <a href="https://travis-ci.org/fibo/Sweet-Home-pm" target="_blank"><img alt="Build Status" src="https://travis-ci.org/fibo/Sweet-Home-pm.svg?branch=master"></a></p>
18              
19             =end HTML
20              
21             =head1 SYNOPSIS
22              
23             use Sweet::Dir;
24              
25             my $dir = Sweet::Dir->new(path => '/path/to/mydir');
26              
27             $dir->is_a_directory or $dir->create;
28              
29             my $dir2 = $dir->sub_dir('foo');
30              
31             $dir2->create;
32              
33             say $dir2; # /path/to/mydir/foo
34              
35             my $file = $dir2->file('bar');
36              
37             say $file; # /path/to/mydir/foo/bar
38              
39             =head1 DESCRIPTION
40              
41             Nothing is better than feel at home. Where is the home? The home is where I can feel comfortable (cit. Jovanotti).
42              
43             This package provides a set of features to make you feel comfortable when working with files and folders.
44              
45             It is just syntactic sugar on top of packages like L<'File::Basename'>, L<'File::Copy'>, L<'File::HomeDir'>, L<'File::Path'>, L<'File::Remove'>, L<'File::Spec'>, etc.
46              
47             =head1 CLASSES
48              
49             =over 4
50              
51             =item L<Sweet::Dir>
52              
53             =item L<Sweet::File>
54              
55             =item L<Sweet::HomeDir>
56              
57             =back
58              
59             =head1 COPYRIGHT AND LICENSE
60              
61             This software is copyright (c) 2014 by G. Casati.
62              
63             This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
64              
65             =cut
66