HiD/Role/PublishesDrafts.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« HiD/App.pm ↑ Summary
1 #ABSTRACT: Role for the 'publishes_drafts' attr
2  
3 package HiD::Role::PublishesDrafts;
4 4 $HiD::Role::PublishesDrafts::VERSION = '1.5';
5 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 requires '_run';
8  
9  
10 4 has publish_drafts=> (
11 is => 'ro' ,
12 isa => 'Bool' ,
13 cmd_aliases => 'D' ,
14 traits => [ 'Getopt' ] ,
15 );
16  
17 4 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 4 1;
19  
20 __END__
21  
22 =pod
23  
24 =encoding utf-8
25  
26 =head1 NAME
27  
28 HiD::Role::PublishesDrafts - Role for the 'publishes_drafts' attr
29  
30 =head1 ATTRIBUTES
31  
32 =head2 publish_drafts
33  
34 Flag indicating whether or not to publish draft posts stored in the drafts
35 directory (which defaults to '_drafts' but can be set with the 'drafts_dir'
36 config key).
37  
38 =head1 VERSION
39  
40 version 1.5
41  
42 =head1 AUTHOR
43  
44 John SJ Anderson <genehack@genehack.org>
45  
46 =head1 COPYRIGHT AND LICENSE
47  
48 This software is copyright (c) 2014 by John SJ Anderson.
49  
50 This is free software; you can redistribute it and/or modify it under
51 the same terms as the Perl 5 programming language system itself.
52  
53 =cut
« HiD/App.pm ↑ Summary