Miril/App/Cmd/Command/publish.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
opt_spec
2.0
execute
2.0
BEGIN
2.0
CRAP 2.0
1 package Miril::App::Cmd::Command::publish;
2
3 use strict;
4 use warnings;
5 use autodie;
6
7 use Miril::App::Cmd -command;
8
9 use Class::Autouse;
10 Class::Autouse->autouse('Miril');
11
12 sub opt_spec
13 {
14 return (
15 [ 'dir|d=s', "miril base dir", { default => 'example' } ],
16 [ 'site|s=s', "website", { default => 'example.com' } ],
17 );
18 }
19
20 sub execute
21 {
22 my ($self, $opt, $args) = @_;
23
24 my $miril = Miril->new($opt->dir, $opt->site);
25 $miril->publish;
26 }
27
28 1;