File Coverage

blib/lib/App/Embra/Role/SitePublisher.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 6     6   10321 use strict;
  6         11  
  6         236  
2 6     6   27 use warnings;
  6         10  
  6         398  
3              
4             package App::Embra::Role::SitePublisher;
5             $App::Embra::Role::SitePublisher::VERSION = '0.001'; # TRIAL
6             # ABSTRACT: something that publishs files to a site
7              
8 6     6   30 use Method::Signatures;
  6         8  
  6         47  
9 6     6   2372 use Moo::Role;
  6         8  
  6         40  
10              
11              
12             with 'App::Embra::Role::Plugin';
13              
14             requires 'publish_site';
15              
16             1;
17              
18             __END__
19              
20             =pod
21              
22             =encoding UTF-8
23              
24             =head1 NAME
25              
26             App::Embra::Role::SitePublisher - something that publishs files to a site
27              
28             =head1 VERSION
29              
30             version 0.001
31              
32             =head1 DESCRIPTION
33              
34             This role should be implemented by any plugin which publishes your site. It requires plugins provide a C<publish_site> method, which will be called as the final step of collating your site.
35              
36             Plugins which implement this role can access the site's files via the C<L<files|App::Embra/files>> attribute of its C<L<embra|App::Embra::Role::Plugin/embra>> attribute, and should publish all files.
37              
38             =head1 AUTHOR
39              
40             Daniel Holz <dgholz@gmail.com>
41              
42             =head1 COPYRIGHT AND LICENSE
43              
44             This software is copyright (c) 2015 by Daniel Holz.
45              
46             This is free software; you can redistribute it and/or modify it under
47             the same terms as the Perl 5 programming language system itself.
48              
49             =cut