more comments, support for txt and pod upgrade files
This commit is contained in:
parent
29c01ffad7
commit
8326c63c1e
9 changed files with 201 additions and 142 deletions
19
lib/WebGUI/Upgrade/File/pod.pm
Normal file
19
lib/WebGUI/Upgrade/File/pod.pm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package WebGUI::Upgrade::File::pod;
|
||||
use Moose;
|
||||
with 'WebGUI::Upgrade::File';
|
||||
|
||||
sub once { 1 }
|
||||
|
||||
sub run {
|
||||
my $class = shift;
|
||||
my ($upgrade, $configFile, $version, $file) = @_;
|
||||
if ( ! $upgrade->quiet ) {
|
||||
system { $^X } $^X, '-MPod::Perldoc', '-ePod::Perldoc->run', $file;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
__PACKAGE__->meta->make_immutable;
|
||||
1;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue