File Coverage

blib/lib/HiD/Role/PublishesDrafts.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             #ABSTRACT: Role for the 'publishes_drafts' attr
2              
3             package HiD::Role::PublishesDrafts;
4             our $AUTHORITY = 'cpan:GENEHACK';
5             $HiD::Role::PublishesDrafts::VERSION = '1.99';
6 4     4   2422 use Moose::Role;
  4         10  
  4         37  
7              
8             requires '_run';
9              
10              
11             has publish_drafts=> (
12             is => 'ro' ,
13             isa => 'Bool' ,
14             cmd_aliases => 'D' ,
15             traits => [ 'Getopt' ] ,
16             );
17              
18 4     4   21320 no Moose::Role;
  4         11  
  4         23  
19             1;
20              
21             __END__
22              
23             =pod
24              
25             =encoding UTF-8
26              
27             =head1 NAME
28              
29             HiD::Role::PublishesDrafts - Role for the 'publishes_drafts' attr
30              
31             =head1 ATTRIBUTES
32              
33             =head2 publish_drafts
34              
35             Flag indicating whether or not to publish draft posts stored in the drafts
36             directory (which defaults to '_drafts' but can be set with the 'drafts_dir'
37             config key).
38              
39             =head1 VERSION
40              
41             version 1.99
42              
43             =head1 AUTHOR
44              
45             John SJ Anderson <genehack@genehack.org>
46              
47             =head1 COPYRIGHT AND LICENSE
48              
49             This software is copyright (c) 2015 by John SJ Anderson.
50              
51             This is free software; you can redistribute it and/or modify it under
52             the same terms as the Perl 5 programming language system itself.
53              
54             =cut