| 1 | # | ||
| 2 | # This file is part of App-Magpie | ||
| 3 | # | ||
| 4 | # This software is copyright (c) 2011 by Jerome Quelin. | ||
| 5 | # | ||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||
| 8 | # | ||
| 9 | 1 | ▶ | use 5.012; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | package App::Magpie::App::Command::webstatic; | ||
| 14 | # ABSTRACT: create a static web site | ||
| 15 | 1 | $App::Magpie::App::Command::webstatic::VERSION = '2.010'; | |
| 16 | 1 | ▶ | use App::Magpie::App -command; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | |||
| 19 | # -- public methods | ||
| 20 | |||
| 21 | 0 | ▶ | sub description { |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 22 | 0 | "This command generates a static web site with some statistics & | |
| 23 | information on Perl modules available in Mageia Linux." | ||
| 24 | } | ||
| 25 | |||
| 26 | 0 | ▶ | sub opt_spec { |
|
Subroutine
opt_spec: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | 0 | my $self = shift; | |
| 28 | return ( | ||
| 29 | 0 | [], | |
| 30 | [ | ||
| 31 | 'directory|d=s' | ||
| 32 | => "directory where website will be created" | ||
| 33 | => { required => 1 } | ||
| 34 | ], | ||
| 35 | [], | ||
| 36 | $self->verbose_options, | ||
| 37 | ); | ||
| 38 | } | ||
| 39 | |||
| 40 | 0 | ▶ | sub execute { |
|
Subroutine
execute: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | 0 | my ($self, $opts, $args) = @_; | |
| 42 | 0 | $self->log_init($opts); | |
| 43 | 0 | require App::Magpie::Action::WebStatic; | |
| 44 | 0 | App::Magpie::Action::WebStatic->new->run($opts); | |
| 45 | } | ||
| 46 | |||
| 47 | 1 | 1; | |
| 48 | |||
| 49 | __END__ | ||