| 1 | #ABSTRACT: Role for the 'publishes_drafts' attr | ||
| 2 | |||
| 3 | package HiD::Role::PublishesDrafts; | ||
| 4 | 7 | our $AUTHORITY = 'cpan:GENEHACK'; | |
| 5 | 7 | $HiD::Role::PublishesDrafts::VERSION = '1.96'; | |
| 6 | 7 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 7 | requires '_run'; | |
| 9 | |||
| 10 | |||
| 11 | 7 | has publish_drafts=> ( | |
| 12 | is => 'ro' , | ||
| 13 | isa => 'Bool' , | ||
| 14 | cmd_aliases => 'D' , | ||
| 15 | traits => [ 'Getopt' ] , | ||
| 16 | ); | ||
| 17 | |||
| 18 | 7 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 7 | 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.96 | ||
| 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 | ||