File Coverage

blib/lib/App/PM/Website.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1 2     2   164540 use strict;
  2         4  
  2         109  
2 2     2   11 use warnings;
  2         6  
  2         121  
3              
4             package App::PM::Website;
5             {
6             $App::PM::Website::VERSION = '0.131611';
7             }
8             #use App::Cmd::Setup -app;
9 2     2   12 use base 'App::Cmd';
  2         10  
  2         2123  
10              
11             1;
12              
13              
14             =pod
15              
16             =head1 NAME
17              
18             App::PM::Website
19              
20             =head1 VERSION
21              
22             version 0.131611
23              
24             =head1 SYNOPSIS
25              
26             # create and initialize configuration file:
27             pm-website init --build-dir website \
28             --template-dir template \
29             --config-file config/pm-website.yaml \
30             --username your_username \
31             --groupname monger_long_city_name
32              
33             # manually update configfile to list new meeting
34             vim config/pm-website.yaml
35              
36             # create template directory and templates
37             mkdir template/
38             cp examples/template/index.in template/
39             vim templates/index.in
40              
41             # copy cacert for pm.org from examples:
42             cp examples/cacert.pem ./
43              
44             # render website locally to website/ dir
45             pm-website build
46              
47             ... view changes locally ...
48              
49             # upload website/index file to pm.org
50             pm-website upload
51              
52             =head1 DESCRIPTION
53              
54             Use C to render and maintain an up-to-date info page
55             for your Perl Monger group!
56              
57             L provides free hosting for perl monger groups.
58             Pages must be updated with webDAV and server-side scripts are not
59             allowed. C will update and install a static, template-driven
60             page via webDAV with minimal effort. Spend less time while creating a
61             more useful front page. Everyone wins!
62              
63             =head1 COMMANDS
64              
65             =over
66              
67             =item C
68              
69             Initialize a configuration yaml file with the necessary keys
70              
71             =item C
72              
73             Builds the index file (F) by rendering the
74             template (F