mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-03-17 20:58:34 +02:00
Rename BackRestDoc Perl module to pgBackRestDoc.
This is consistent with the way BackRest and BackRest test were renamed way back in 18fd2523. More modules will be moving to pgBackRestDoc soon so renaming now reduces churn later.
This commit is contained in:
parent
36d4ab9bff
commit
731b862e6f
@ -13,8 +13,8 @@ use Exporter qw(import);
|
||||
use File::Basename qw(basename);
|
||||
use Storable qw(dclone);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::Storage;
|
||||
use pgBackRestTest::Common::StoragePosix;
|
||||
|
@ -13,8 +13,8 @@ use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use Storable qw(dclone);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# Constants
|
||||
|
@ -16,8 +16,8 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestBuild::Build::Common;
|
||||
use pgBackRestBuild::Config::BuildDefine;
|
||||
|
@ -16,10 +16,10 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocRender;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocRender;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestBuild::Build::Common;
|
||||
use pgBackRestBuild::Config::Data;
|
||||
@ -345,8 +345,8 @@ sub buildConfigDefine
|
||||
{
|
||||
# Load help data
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
require BackRestDoc::Common::Doc;
|
||||
require BackRestDoc::Common::DocManifest;
|
||||
require pgBackRestDoc::Common::Doc;
|
||||
require pgBackRestDoc::Common::DocManifest;
|
||||
|
||||
my $strDocPath = abs_path(dirname($0) . '/../doc');
|
||||
|
||||
@ -354,13 +354,13 @@ sub buildConfigDefine
|
||||
$strDocPath, new pgBackRestTest::Common::StoragePosix({bFileSync => false, bPathSync => false}));
|
||||
|
||||
my @stryEmpty = [];
|
||||
my $oManifest = new BackRestDoc::Common::DocManifest(
|
||||
my $oManifest = new pgBackRestDoc::Common::DocManifest(
|
||||
$oStorageDoc, \@stryEmpty, \@stryEmpty, \@stryEmpty, \@stryEmpty, undef, $strDocPath, false, false);
|
||||
|
||||
my $oDocRender = new BackRestDoc::Common::DocRender('text', $oManifest, false);
|
||||
my $oDocRender = new pgBackRestDoc::Common::DocRender('text', $oManifest, false);
|
||||
my $oDocConfig =
|
||||
new BackRestDoc::Common::DocConfig(
|
||||
new BackRestDoc::Common::Doc("${strDocPath}/xml/reference.xml"), $oDocRender);
|
||||
new pgBackRestDoc::Common::DocConfig(
|
||||
new pgBackRestDoc::Common::Doc("${strDocPath}/xml/reference.xml"), $oDocRender);
|
||||
my $hConfigHelp = $oDocConfig->{oConfigHash};
|
||||
|
||||
# Build command constants and data
|
||||
|
@ -16,8 +16,8 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestBuild::Build::Common;
|
||||
use pgBackRestBuild::Config::Build;
|
||||
|
@ -68,8 +68,8 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::Wait;
|
||||
|
||||
|
@ -11,7 +11,7 @@ use English '-no_match_vars';
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestBuild::Build::Common;
|
||||
use pgBackRestBuild::Error::Data;
|
||||
|
36
doc/doc.pl
36
doc/doc.pl
@ -24,23 +24,23 @@ use lib dirname(dirname(abs_path($0))) . '/lib';
|
||||
use lib dirname(dirname(abs_path($0))) . '/build/lib';
|
||||
use lib dirname(dirname(abs_path($0))) . '/test/lib';
|
||||
|
||||
use BackRestDoc::Common::Doc;
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::DocRender;
|
||||
use BackRestDoc::Html::DocHtmlSite;
|
||||
use BackRestDoc::Latex::DocLatex;
|
||||
use BackRestDoc::Markdown::DocMarkdown;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRest::Version;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
use pgBackRestTest::Common::Storage;
|
||||
use pgBackRestTest::Common::StoragePosix;
|
||||
|
||||
use pgBackRestDoc::Common::Doc;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::DocRender;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Html::DocHtmlSite;
|
||||
use pgBackRestDoc::Latex::DocLatex;
|
||||
use pgBackRestDoc::Markdown::DocMarkdown;
|
||||
|
||||
####################################################################################################################################
|
||||
# Usage
|
||||
####################################################################################################################################
|
||||
@ -222,7 +222,7 @@ eval
|
||||
}
|
||||
|
||||
# Load the manifest
|
||||
my $oManifest = new BackRestDoc::Common::DocManifest(
|
||||
my $oManifest = new pgBackRestDoc::Common::DocManifest(
|
||||
$oStorageDoc, \@stryRequire, \@stryInclude, \@stryExclude, $rhKeyVariableOverride, $rhVariableOverride,
|
||||
$strDocPath, $bDeploy, $bCacheOnly, $bPre);
|
||||
|
||||
@ -302,7 +302,7 @@ eval
|
||||
if ($strOutput eq 'markdown')
|
||||
{
|
||||
my $oMarkdown =
|
||||
new BackRestDoc::Markdown::DocMarkdown
|
||||
new pgBackRestDoc::Markdown::DocMarkdown
|
||||
(
|
||||
$oManifest,
|
||||
"${strBasePath}/xml",
|
||||
@ -315,10 +315,10 @@ eval
|
||||
elsif ($strOutput eq 'man' && $oManifest->isBackRest())
|
||||
{
|
||||
# Generate the command-line help
|
||||
my $oRender = new BackRestDoc::Common::DocRender('text', $oManifest, !$bNoExe);
|
||||
my $oRender = new pgBackRestDoc::Common::DocRender('text', $oManifest, !$bNoExe);
|
||||
my $oDocConfig =
|
||||
new BackRestDoc::Common::DocConfig(
|
||||
new BackRestDoc::Common::Doc("${strBasePath}/xml/reference.xml"), $oRender);
|
||||
new pgBackRestDoc::Common::DocConfig(
|
||||
new pgBackRestDoc::Common::Doc("${strBasePath}/xml/reference.xml"), $oRender);
|
||||
|
||||
$oStorageDoc->pathCreate(
|
||||
"${strBasePath}/output/man", {strMode => '0770', bIgnoreExists => true, bCreateParent => true});
|
||||
@ -327,7 +327,7 @@ eval
|
||||
elsif ($strOutput eq 'html')
|
||||
{
|
||||
my $oHtmlSite =
|
||||
new BackRestDoc::Html::DocHtmlSite
|
||||
new pgBackRestDoc::Html::DocHtmlSite
|
||||
(
|
||||
$oManifest,
|
||||
"${strBasePath}/xml",
|
||||
@ -345,7 +345,7 @@ eval
|
||||
elsif ($strOutput eq 'pdf')
|
||||
{
|
||||
my $oLatex =
|
||||
new BackRestDoc::Latex::DocLatex
|
||||
new pgBackRestDoc::Latex::DocLatex
|
||||
(
|
||||
$oManifest,
|
||||
"${strBasePath}/xml",
|
||||
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::Doc;
|
||||
package pgBackRestDoc::Common::Doc;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -13,8 +13,8 @@ use File::Basename qw(dirname);
|
||||
use Scalar::Util qw(blessed);
|
||||
use XML::Checker::Parser;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@ -806,7 +806,7 @@ sub textSet
|
||||
my $self = shift;
|
||||
my $oText = shift;
|
||||
|
||||
if (blessed($oText) && $oText->isa('BackRestDoc::Common::Doc'))
|
||||
if (blessed($oText) && $oText->isa('pgBackRestDoc::Common::Doc'))
|
||||
{
|
||||
$oText = $oText->{oDoc};
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC CONFIG MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::DocConfig;
|
||||
package pgBackRestDoc::Common::DocConfig;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -15,8 +15,8 @@ use pgBackRest::Version;
|
||||
|
||||
use pgBackRestBuild::Config::Data;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# Help types
|
||||
@ -608,7 +608,7 @@ sub helpConfigDocGet
|
||||
}
|
||||
}
|
||||
|
||||
my $oDoc = new BackRestDoc::Common::Doc();
|
||||
my $oDoc = new pgBackRestDoc::Common::Doc();
|
||||
$oDoc->paramSet('title', $oConfigDoc->paramGet('title'));
|
||||
|
||||
# set the description for use as a meta tag
|
||||
@ -664,7 +664,7 @@ sub helpCommandDocGet
|
||||
my $oOperationDoc = $self->{oDoc}->nodeGet('operation');
|
||||
my $oOptionDefine = cfgDefine();
|
||||
|
||||
my $oDoc = new BackRestDoc::Common::Doc();
|
||||
my $oDoc = new pgBackRestDoc::Common::Doc();
|
||||
$oDoc->paramSet('title', $oOperationDoc->paramGet('title'));
|
||||
|
||||
# set the description for use as a meta tag
|
@ -1,8 +1,8 @@
|
||||
####################################################################################################################################
|
||||
# DOC EXECUTE MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::DocExecute;
|
||||
use parent 'BackRestDoc::Common::DocRender';
|
||||
package pgBackRestDoc::Common::DocExecute;
|
||||
use parent 'pgBackRestDoc::Common::DocRender';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -23,11 +23,11 @@ use pgBackRestTest::Common::ExecuteTest;
|
||||
use pgBackRestTest::Common::HostTest;
|
||||
use pgBackRestTest::Common::HostGroupTest;
|
||||
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# User that's building the docs
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC MANIFEST MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::DocManifest;
|
||||
package pgBackRestDoc::Common::DocManifest;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -13,8 +13,8 @@ use Exporter qw(import);
|
||||
use File::Basename qw(dirname);
|
||||
use JSON::PP;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# File constants
|
||||
@ -95,7 +95,7 @@ sub new
|
||||
$self->{strExeCacheDeploy} = $self->{strDocPath} . "/resource/exe.cache";
|
||||
|
||||
# Load the manifest
|
||||
$self->{oManifestXml} = new BackRestDoc::Common::Doc("$self->{strDocPath}/manifest.xml");
|
||||
$self->{oManifestXml} = new pgBackRestDoc::Common::Doc("$self->{strDocPath}/manifest.xml");
|
||||
|
||||
# Iterate the sources
|
||||
$self->{oManifest} = {};
|
||||
@ -119,7 +119,7 @@ sub new
|
||||
next;
|
||||
}
|
||||
|
||||
$$oSourceHash{doc} = new BackRestDoc::Common::Doc("$self->{strDocPath}/xml/${strKey}.xml");
|
||||
$$oSourceHash{doc} = new pgBackRestDoc::Common::Doc("$self->{strDocPath}/xml/${strKey}.xml");
|
||||
|
||||
# Read variables from source
|
||||
$self->variableListParse($$oSourceHash{doc}->nodeGet('variable-list', false), $rhVariableOverride);
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC RENDER MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::DocRender;
|
||||
package pgBackRestDoc::Common::DocRender;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -12,9 +12,9 @@ use Exporter qw(import);
|
||||
use JSON::PP;
|
||||
use Storable qw(dclone);
|
||||
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# XML tag/param constants
|
||||
@ -197,7 +197,7 @@ sub new
|
||||
if ($self->{oManifest}->isBackRest())
|
||||
{
|
||||
$self->{oReference} =
|
||||
new BackRestDoc::Common::DocConfig(${$self->{oManifest}->sourceGet('reference')}{doc}, $self);
|
||||
new pgBackRestDoc::Common::DocConfig(${$self->{oManifest}->sourceGet('reference')}{doc}, $self);
|
||||
}
|
||||
|
||||
if (defined($$oRenderOut{source}) && $$oRenderOut{source} eq 'reference' && $self->{oManifest}->isBackRest())
|
||||
@ -217,11 +217,11 @@ sub new
|
||||
}
|
||||
elsif (defined($$oRenderOut{source}) && $$oRenderOut{source} eq 'release' && $self->{oManifest}->isBackRest())
|
||||
{
|
||||
require BackRestDoc::Custom::DocCustomRelease;
|
||||
BackRestDoc::Custom::DocCustomRelease->import();
|
||||
require pgBackRestDoc::Custom::DocCustomRelease;
|
||||
pgBackRestDoc::Custom::DocCustomRelease->import();
|
||||
|
||||
$self->{oDoc} =
|
||||
(new BackRestDoc::Custom::DocCustomRelease(
|
||||
(new pgBackRestDoc::Custom::DocCustomRelease(
|
||||
${$self->{oManifest}->sourceGet('release')}{doc},
|
||||
defined($self->{oManifest}->variableGet('dev')) && $self->{oManifest}->variableGet('dev') eq 'y'))->docGet();
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# COMMON EXCEPTION MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::Exception;
|
||||
package pgBackRestDoc::Common::Exception;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -201,7 +201,7 @@ sub isException
|
||||
# If a standard Exception
|
||||
if (blessed($$roException))
|
||||
{
|
||||
return $$roException->isa('BackRestDoc::Common::Exception') ? 1 : 0;
|
||||
return $$roException->isa('pgBackRestDoc::Common::Exception') ? 1 : 0;
|
||||
}
|
||||
# Else if a specially formatted string from the C library
|
||||
elsif ($$roException =~ /^PGBRCLIB\:[0-9]+\:/)
|
||||
@ -216,7 +216,7 @@ sub isException
|
||||
my $strMessage = join(':', @stryException);
|
||||
|
||||
# Create exception
|
||||
$$roException = new BackRestDoc::Common::Exception("ERROR", $iCode, $strMessage, $strTrace, undef, 1);
|
||||
$$roException = new pgBackRestDoc::Common::Exception("ERROR", $iCode, $strMessage, $strTrace, undef, 1);
|
||||
|
||||
return 1;
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# COMMON INI MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::Ini;
|
||||
package pgBackRestDoc::Common::Ini;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -17,9 +17,9 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# Boolean constants
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# COMMON LOG MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::Log;
|
||||
package pgBackRestDoc::Common::Log;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -15,8 +15,8 @@ use File::Basename qw(dirname);
|
||||
use Scalar::Util qw(blessed reftype);
|
||||
use Time::HiRes qw(gettimeofday usleep);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# Boolean constants
|
||||
@ -751,7 +751,7 @@ sub log
|
||||
# Return a typed exception if code is defined
|
||||
if (defined($iCode))
|
||||
{
|
||||
$oErrorLast = new BackRestDoc::Common::Exception($strLevel, $iCode, $strMessage, longmess(), $rExtra);
|
||||
$oErrorLast = new pgBackRestDoc::Common::Exception($strLevel, $iCode, $strMessage, longmess(), $rExtra);
|
||||
return $oErrorLast;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# COMMON STRING MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Common::String;
|
||||
package pgBackRestDoc::Common::String;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC RELEASE MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Custom::DocCustomRelease;
|
||||
package pgBackRestDoc::Custom::DocCustomRelease;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -16,9 +16,9 @@ use pgBackRest::Version;
|
||||
|
||||
use pgBackRestBuild::Config::Data;
|
||||
|
||||
use BackRestDoc::Common::DocRender;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::DocRender;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# XML node constants
|
||||
@ -321,11 +321,11 @@ sub docGet
|
||||
my @hyGitLog = @{(JSON::PP->new()->allow_nonref())->decode(${$oStorageDoc->get("resource/git-history.cache")})};
|
||||
|
||||
# Get renderer
|
||||
my $oRender = new BackRestDoc::Common::DocRender('text');
|
||||
my $oRender = new pgBackRestDoc::Common::DocRender('text');
|
||||
$oRender->tagSet('backrest', PROJECT_NAME);
|
||||
|
||||
# Create the doc
|
||||
my $oDoc = new BackRestDoc::Common::Doc();
|
||||
my $oDoc = new pgBackRestDoc::Common::Doc();
|
||||
$oDoc->paramSet('title', $self->{oDoc}->paramGet('title'));
|
||||
$oDoc->paramSet('toc-number', $self->{oDoc}->paramGet('toc-number'));
|
||||
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC HTML BUILDER MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Html::DocHtmlBuilder;
|
||||
package pgBackRestDoc::Html::DocHtmlBuilder;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -10,9 +10,9 @@ use Carp qw(confess);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use BackRestDoc::Html::DocHtmlElement;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Html::DocHtmlElement;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@ -52,7 +52,7 @@ sub new
|
||||
{name => 'strCss', required => false},
|
||||
);
|
||||
|
||||
$self->{oBody} = new BackRestDoc::Html::DocHtmlElement(HTML_BODY);
|
||||
$self->{oBody} = new pgBackRestDoc::Html::DocHtmlElement(HTML_BODY);
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC HTML ELEMENT MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Html::DocHtmlElement;
|
||||
package pgBackRestDoc::Html::DocHtmlElement;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -11,7 +11,7 @@ use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use Scalar::Util qw(blessed);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
####################################################################################################################################
|
||||
# Html Element Types
|
||||
@ -108,7 +108,7 @@ sub addNew
|
||||
{name => 'oParam', required => false, trace => true}
|
||||
);
|
||||
|
||||
my $oElement = new BackRestDoc::Html::DocHtmlElement($strType, $strClass, $oParam);
|
||||
my $oElement = new pgBackRestDoc::Html::DocHtmlElement($strType, $strClass, $oParam);
|
||||
|
||||
$self->add($oElement);
|
||||
|
||||
@ -140,7 +140,7 @@ sub add
|
||||
{name => 'oElement', trace => true}
|
||||
);
|
||||
|
||||
if (!(blessed($oElement) && $oElement->isa('BackRestDoc::Html::DocHtmlElement')))
|
||||
if (!(blessed($oElement) && $oElement->isa('pgBackRestDoc::Html::DocHtmlElement')))
|
||||
{
|
||||
confess &log(ASSERT, 'oElement must be a valid element object');
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
####################################################################################################################################
|
||||
# DOC HTML PAGE MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Html::DocHtmlPage;
|
||||
use parent 'BackRestDoc::Common::DocExecute';
|
||||
package pgBackRestDoc::Html::DocHtmlPage;
|
||||
use parent 'pgBackRestDoc::Common::DocExecute';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -12,13 +12,13 @@ use Data::Dumper;
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::DocRender;
|
||||
use BackRestDoc::Html::DocHtmlBuilder;
|
||||
use BackRestDoc::Html::DocHtmlElement;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::DocRender;
|
||||
use pgBackRestDoc::Html::DocHtmlBuilder;
|
||||
use pgBackRestDoc::Html::DocHtmlElement;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@ -88,7 +88,7 @@ sub process
|
||||
my $strTitle = $oPage->paramGet('title');
|
||||
my $strSubTitle = $oPage->paramGet('subtitle', false);
|
||||
|
||||
my $oHtmlBuilder = new BackRestDoc::Html::DocHtmlBuilder(
|
||||
my $oHtmlBuilder = new pgBackRestDoc::Html::DocHtmlBuilder(
|
||||
$self->{oManifest}->variableReplace('{[project]}' . (defined($self->{oManifest}->variableGet('project-tagline')) ?
|
||||
' - ' . $self->{oManifest}->variableGet('project-tagline') : '')),
|
||||
$self->{oManifest}->variableReplace($strTitle . (defined($strSubTitle) ? " - ${strSubTitle}" : '')),
|
||||
@ -232,10 +232,10 @@ sub sectionProcess
|
||||
$oSection->paramGet('id');
|
||||
|
||||
# Create the section toc element
|
||||
my $oSectionTocElement = new BackRestDoc::Html::DocHtmlElement(HTML_DIV, "section${iDepth}-toc");
|
||||
my $oSectionTocElement = new pgBackRestDoc::Html::DocHtmlElement(HTML_DIV, "section${iDepth}-toc");
|
||||
|
||||
# Create the section element
|
||||
my $oSectionElement = new BackRestDoc::Html::DocHtmlElement(HTML_DIV, "section${iDepth}");
|
||||
my $oSectionElement = new pgBackRestDoc::Html::DocHtmlElement(HTML_DIV, "section${iDepth}");
|
||||
|
||||
# Add the section anchor
|
||||
$oSectionElement->addNew(HTML_A, undef, {strId => $strAnchor});
|
||||
@ -611,7 +611,7 @@ sub backrestConfigProcess
|
||||
my $strHostName = $self->{oManifest}->variableReplace($oConfig->paramGet('host'));
|
||||
|
||||
# Render the config
|
||||
$oConfigElement = new BackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
$oConfigElement = new pgBackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
|
||||
$oConfigElement->
|
||||
addNew(HTML_DIV, "config-title",
|
||||
@ -668,7 +668,7 @@ sub postgresConfigProcess
|
||||
{
|
||||
# Render the config
|
||||
my $strHostName = $self->{oManifest}->variableReplace($oConfig->paramGet('host'));
|
||||
$oConfigElement = new BackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
$oConfigElement = new pgBackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
|
||||
$oConfigElement->
|
||||
addNew(HTML_DIV, "config-title",
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC HTML SITE MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Html::DocHtmlSite;
|
||||
package pgBackRestDoc::Html::DocHtmlSite;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -20,12 +20,12 @@ use pgBackRest::Version;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use BackRestDoc::Html::DocHtmlPage;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Html::DocHtmlPage;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@ -124,7 +124,7 @@ sub process
|
||||
eval
|
||||
{
|
||||
$strHtml = $self->{oManifest}->variableReplace(
|
||||
new BackRestDoc::Html::DocHtmlPage(
|
||||
new pgBackRestDoc::Html::DocHtmlPage(
|
||||
$self->{oManifest}, $strPageId, $bMenu, $self->{bExe}, $bCompact,
|
||||
${$self->{oManifest}->storage()->get($self->{strCssFile})}, $bPretty)->process());
|
||||
|
||||
@ -140,7 +140,7 @@ sub process
|
||||
$self->{oManifest}->cacheReset($$oRenderOut{source});
|
||||
|
||||
$strHtml = $self->{oManifest}->variableReplace(
|
||||
new BackRestDoc::Html::DocHtmlPage(
|
||||
new pgBackRestDoc::Html::DocHtmlPage(
|
||||
$self->{oManifest}, $strPageId, $bMenu, $self->{bExe}, $bCompact,
|
||||
${$self->{oManifest}->storage()->get($self->{strCssFile})}, $bPretty)->process());
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC LATEX MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Latex::DocLatex;
|
||||
package pgBackRestDoc::Latex::DocLatex;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -19,15 +19,15 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Latex::DocLatexSection;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Latex::DocLatexSection;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@ -113,7 +113,7 @@ sub process
|
||||
eval
|
||||
{
|
||||
my $oDocLatexSection =
|
||||
new BackRestDoc::Latex::DocLatexSection($self->{oManifest}, $strPageId, $self->{bExe});
|
||||
new pgBackRestDoc::Latex::DocLatexSection($self->{oManifest}, $strPageId, $self->{bExe});
|
||||
|
||||
# Save the html page
|
||||
$strLatex .= $oDocLatexSection->process();
|
||||
@ -130,7 +130,7 @@ sub process
|
||||
$self->{oManifest}->cacheReset($$oRenderOut{source});
|
||||
|
||||
my $oDocLatexSection =
|
||||
new BackRestDoc::Latex::DocLatexSection($self->{oManifest}, $strPageId, $self->{bExe});
|
||||
new pgBackRestDoc::Latex::DocLatexSection($self->{oManifest}, $strPageId, $self->{bExe});
|
||||
|
||||
# Save the html page
|
||||
$strLatex .= $oDocLatexSection->process();
|
@ -1,8 +1,8 @@
|
||||
####################################################################################################################################
|
||||
# DOC LATEX SECTION MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Latex::DocLatexSection;
|
||||
use parent 'BackRestDoc::Common::DocExecute';
|
||||
package pgBackRestDoc::Latex::DocLatexSection;
|
||||
use parent 'pgBackRestDoc::Common::DocExecute';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -11,10 +11,10 @@ use Carp qw(confess);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
@ -1,7 +1,7 @@
|
||||
####################################################################################################################################
|
||||
# DOC MARKDOWN MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Markdown::DocMarkdown;
|
||||
package pgBackRestDoc::Markdown::DocMarkdown;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -19,11 +19,11 @@ use pgBackRest::Version;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use BackRestDoc::Markdown::DocMarkdownRender;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Markdown::DocMarkdownRender;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@ -84,7 +84,7 @@ sub process
|
||||
|
||||
# Save the html page
|
||||
$self->{oManifest}->storage()->put(
|
||||
$strFile, $self->{oManifest}->variableReplace((new BackRestDoc::Markdown::DocMarkdownRender($self->{oManifest},
|
||||
$strFile, $self->{oManifest}->variableReplace((new pgBackRestDoc::Markdown::DocMarkdownRender($self->{oManifest},
|
||||
$strRenderOutId, $self->{bExe}))->process()));
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
####################################################################################################################################
|
||||
# DOC MARKDOWN RENDER MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Markdown::DocMarkdownRender;
|
||||
use parent 'BackRestDoc::Common::DocExecute';
|
||||
package pgBackRestDoc::Markdown::DocMarkdownRender;
|
||||
use parent 'pgBackRestDoc::Common::DocExecute';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -15,10 +15,10 @@ use File::Basename qw(dirname);
|
||||
use File::Copy;
|
||||
use Storable qw(dclone);
|
||||
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@ -78,7 +78,7 @@ sub process
|
||||
$strMarkdown .= ' <br/> ' . $oPage->paramGet('subtitle') . '';
|
||||
}
|
||||
|
||||
# my $oHtmlBuilder = new BackRestDoc::Html::DocHtmlBuilder("{[project]} - Reliable PostgreSQL Backup",
|
||||
# my $oHtmlBuilder = new pgBackRestDoc::Html::DocHtmlBuilder("{[project]} - Reliable PostgreSQL Backup",
|
||||
# $strTitle . (defined($strSubTitle) ? " - ${strSubTitle}" : ''),
|
||||
# $self->{bPretty});
|
||||
#
|
||||
@ -480,7 +480,7 @@ sub backrestConfigProcess
|
||||
# my $strHostName = $self->{oManifest}->variableReplace($oConfig->paramGet('host'));
|
||||
#
|
||||
# # Render the config
|
||||
# $oConfigElement = new BackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
# $oConfigElement = new pgBackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
#
|
||||
# $oConfigElement->
|
||||
# addNew(HTML_DIV, "config-title",
|
||||
@ -537,7 +537,7 @@ sub postgresConfigProcess
|
||||
# {
|
||||
# # Render the config
|
||||
# my $strHostName = $self->{oManifest}->variableReplace($oConfig->paramGet('host'));
|
||||
# $oConfigElement = new BackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
# $oConfigElement = new pgBackRestDoc::Html::DocHtmlElement(HTML_DIV, "config");
|
||||
#
|
||||
# $oConfigElement->
|
||||
# addNew(HTML_DIV, "config-title",
|
@ -7,10 +7,10 @@
|
||||
<variable key="project-tagline">Reliable PostgreSQL Backup & Restore</variable>
|
||||
<variable key="version" eval="y">use pgBackRest::Version; PROJECT_VERSION</variable>
|
||||
<variable key="version-stable" eval="y">
|
||||
use BackRestDoc::Custom::DocCustomRelease;
|
||||
use pgBackRestDoc::Custom::DocCustomRelease;
|
||||
|
||||
(new BackRestDoc::Custom::DocCustomRelease(
|
||||
new BackRestDoc::Common::Doc("{[doc-path]}/xml/release.xml")))->currentStableVersion();
|
||||
(new pgBackRestDoc::Custom::DocCustomRelease(
|
||||
new pgBackRestDoc::Common::Doc("{[doc-path]}/xml/release.xml")))->currentStableVersion();
|
||||
</variable>
|
||||
<variable key="project-exe">pgbackrest</variable>
|
||||
<variable key="project-url-root">/</variable>
|
||||
@ -27,15 +27,15 @@
|
||||
<variable key="release-date-static">n</variable>
|
||||
<variable key="release-date" eval="y">
|
||||
use Time::Local;
|
||||
use BackRestDoc::Custom::DocCustomRelease;
|
||||
use pgBackRestDoc::Custom::DocCustomRelease;
|
||||
|
||||
my ($second, $minute , $hour, $mday, $month, $year) = localtime();
|
||||
$year += 1900;
|
||||
|
||||
if ('{[release-date-static]}' eq 'y')
|
||||
{
|
||||
my $strDate = (new BackRestDoc::Custom::DocCustomRelease(
|
||||
new BackRestDoc::Common::Doc("{[doc-path]}/xml/release.xml")))->releaseLast()->paramGet('date');
|
||||
my $strDate = (new pgBackRestDoc::Custom::DocCustomRelease(
|
||||
new pgBackRestDoc::Common::Doc("{[doc-path]}/xml/release.xml")))->releaseLast()->paramGet('date');
|
||||
|
||||
if ($strDate eq 'XXXX-XX-XX')
|
||||
{
|
||||
|
@ -24,17 +24,6 @@ use lib dirname(dirname($0)) . '/build/lib';
|
||||
use lib dirname(dirname($0)) . '/lib';
|
||||
use lib dirname(dirname($0)) . '/test/lib';
|
||||
|
||||
use BackRestDoc::Common::Doc;
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::DocRender;
|
||||
use BackRestDoc::Html::DocHtmlSite;
|
||||
use BackRestDoc::Latex::DocLatex;
|
||||
use BackRestDoc::Markdown::DocMarkdown;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRest::Version;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
@ -42,6 +31,17 @@ use pgBackRestTest::Common::Storage;
|
||||
use pgBackRestTest::Common::StoragePosix;
|
||||
use pgBackRestTest::Common::VmTest;
|
||||
|
||||
use pgBackRestDoc::Common::Doc;
|
||||
use pgBackRestDoc::Common::DocConfig;
|
||||
use pgBackRestDoc::Common::DocManifest;
|
||||
use pgBackRestDoc::Common::DocRender;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Html::DocHtmlSite;
|
||||
use pgBackRestDoc::Latex::DocLatex;
|
||||
use pgBackRestDoc::Markdown::DocMarkdown;
|
||||
|
||||
####################################################################################################################################
|
||||
# Usage
|
||||
####################################################################################################################################
|
||||
|
@ -15,8 +15,8 @@ use English '-no_match_vars';
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
####################################################################################################################################
|
||||
# VM hash keywords
|
||||
|
@ -14,7 +14,7 @@ use English '-no_match_vars';
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
||||
|
@ -20,8 +20,8 @@ use Getopt::Long qw(GetOptions);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
use pgBackRestTest::Common::VmTest;
|
||||
|
@ -17,10 +17,10 @@ use File::Basename qw(dirname);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use BackRestDoc::Html::DocHtmlBuilder;
|
||||
use BackRestDoc::Html::DocHtmlElement;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Html::DocHtmlBuilder;
|
||||
use pgBackRestDoc::Html::DocHtmlElement;
|
||||
|
||||
####################################################################################################################################
|
||||
# Generate an lcov configuration file
|
||||
@ -253,7 +253,7 @@ sub coverageGenerate
|
||||
my $strGray = '#555555';
|
||||
my $strDarkGray = '#333333';
|
||||
|
||||
my $oHtml = new BackRestDoc::Html::DocHtmlBuilder(
|
||||
my $oHtml = new pgBackRestDoc::Html::DocHtmlBuilder(
|
||||
PROJECT_NAME, $strTitle,
|
||||
undef, undef, undef,
|
||||
true, true,
|
||||
|
@ -10,7 +10,7 @@ use Carp qw(confess);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
####################################################################################################################################
|
||||
# PostgreSQL version numbers
|
||||
|
@ -13,8 +13,8 @@ use Carp qw(confess);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::VmTest;
|
||||
|
||||
|
@ -17,7 +17,7 @@ use IPC::Open3;
|
||||
use POSIX ':sys_wait_h';
|
||||
use Symbol 'gensym';
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::Io::Handle;
|
||||
use pgBackRestTest::Common::Io::Buffered;
|
||||
|
@ -21,9 +21,9 @@ use IPC::Open3;
|
||||
use POSIX ':sys_wait_h';
|
||||
use Symbol 'gensym';
|
||||
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
use pgBackRestTest::Common::HostGroupTest;
|
||||
|
@ -14,8 +14,8 @@ use Cwd qw(abs_path);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
||||
|
@ -14,8 +14,8 @@ use Cwd qw(abs_path);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
||||
|
@ -12,7 +12,7 @@ use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use Scalar::Util qw(blessed);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
####################################################################################################################################
|
||||
# Package name constant
|
||||
|
@ -14,8 +14,8 @@ use Exporter qw(import);
|
||||
use IO::Select;
|
||||
use Time::HiRes qw(gettimeofday);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::Io::Base;
|
||||
use pgBackRestTest::Common::Io::Handle;
|
||||
|
@ -12,7 +12,7 @@ use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use Scalar::Util qw(blessed);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
####################################################################################################################################
|
||||
# new
|
||||
|
@ -12,8 +12,8 @@ use English '-no_match_vars';
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
####################################################################################################################################
|
||||
# Package name constant
|
||||
|
@ -15,8 +15,8 @@ use IPC::Open3 qw(open3);
|
||||
use POSIX qw(:sys_wait_h);
|
||||
use Symbol 'gensym';
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::Io::Buffered;
|
||||
use pgBackRestTest::Common::Wait;
|
||||
|
@ -20,9 +20,9 @@ use Time::HiRes qw(gettimeofday);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::BuildTest;
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
|
@ -13,8 +13,8 @@ use Carp qw(confess);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::DefineTest;
|
||||
use pgBackRestTest::Common::VmTest;
|
||||
|
@ -17,7 +17,7 @@ use File::Basename qw(dirname);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
@ -17,9 +17,9 @@ use File::Basename qw(dirname);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::BuildTest;
|
||||
use pgBackRestTest::Common::DefineTest;
|
||||
|
@ -11,9 +11,9 @@ use English '-no_match_vars';
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::StorageBase;
|
||||
|
||||
|
@ -13,8 +13,8 @@ use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::Io::Base;
|
||||
|
||||
|
@ -16,8 +16,8 @@ use File::Basename qw(basename dirname);
|
||||
use Fcntl qw(:mode);
|
||||
use File::stat qw{lstat};
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::StorageBase;
|
||||
use pgBackRestTest::Common::StoragePosixRead;
|
||||
|
@ -11,8 +11,8 @@ use English '-no_match_vars';
|
||||
|
||||
use Fcntl qw(O_RDONLY);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
|
@ -12,8 +12,8 @@ use English '-no_match_vars';
|
||||
use Fcntl qw(O_RDONLY O_WRONLY O_CREAT O_TRUNC);
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::Io::Handle;
|
||||
use pgBackRestTest::Common::StorageBase;
|
||||
|
@ -19,8 +19,8 @@ use JSON::PP;
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::Io::Handle;
|
||||
use pgBackRestTest::Common::Io::Process;
|
||||
|
@ -13,8 +13,8 @@ use Carp qw(confess);
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
|
||||
|
@ -13,7 +13,7 @@ use File::Basename qw(dirname);
|
||||
use POSIX qw(ceil);
|
||||
use Time::HiRes qw(gettimeofday usleep);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
####################################################################################################################################
|
||||
# Wait constants
|
||||
|
@ -6,7 +6,7 @@
|
||||
# performed on the proper database.
|
||||
####################################################################################################################################
|
||||
package pgBackRestTest::Env::ArchiveInfo;
|
||||
use parent 'BackRestDoc::Common::Ini';
|
||||
use parent 'pgBackRestDoc::Common::Ini';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -17,9 +17,9 @@ use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use File::Basename qw(dirname basename);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
use pgBackRestTest::Common::StorageBase;
|
||||
|
@ -2,7 +2,7 @@
|
||||
# BACKUP INFO MODULE
|
||||
####################################################################################################################################
|
||||
package pgBackRestTest::Env::BackupInfo;
|
||||
use parent 'BackRestDoc::Common::Ini';
|
||||
use parent 'pgBackRestDoc::Common::Ini';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -14,9 +14,9 @@ use Exporter qw(import);
|
||||
use File::Basename qw(dirname basename);
|
||||
use File::stat;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::StorageRepo;
|
||||
use pgBackRestTest::Env::ArchiveInfo;
|
||||
|
@ -16,9 +16,9 @@ use File::Basename qw(basename);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
@ -20,10 +20,10 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
use pgBackRestTest::Common::StorageBase;
|
||||
@ -1426,13 +1426,13 @@ sub infoMunge
|
||||
# If the original file content does not exist then load it
|
||||
if (!defined($self->{hInfoFile}{$strFileName}))
|
||||
{
|
||||
$self->{hInfoFile}{$strFileName} = new BackRestDoc::Common::Ini(
|
||||
$self->{hInfoFile}{$strFileName} = new pgBackRestDoc::Common::Ini(
|
||||
storageRepo(), $strFileName,
|
||||
{strCipherPass => !$bManifest ? undef : $self->cipherPassManifest()});
|
||||
}
|
||||
|
||||
# Make a copy of the original file contents
|
||||
my $oMungeIni = new BackRestDoc::Common::Ini(
|
||||
my $oMungeIni = new pgBackRestDoc::Common::Ini(
|
||||
storageRepo(), $strFileName,
|
||||
{bLoad => false, strContent => iniRender($self->{hInfoFile}{$strFileName}->{oContent}),
|
||||
strCipherPass => !$bManifest ? undef : $self->cipherPassManifest()});
|
||||
|
@ -18,7 +18,7 @@ use File::Basename qw(dirname);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
@ -18,10 +18,10 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
@ -19,9 +19,9 @@ use File::stat;
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
|
@ -18,9 +18,9 @@ use File::Basename qw(basename);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
|
@ -19,9 +19,9 @@ use Storable qw(dclone);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
@ -16,7 +16,7 @@ use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use Storable qw(dclone);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
|
@ -2,7 +2,7 @@
|
||||
# MANIFEST MODULE
|
||||
####################################################################################################################################
|
||||
package pgBackRestTest::Env::Manifest;
|
||||
use parent 'BackRestDoc::Common::Ini';
|
||||
use parent 'pgBackRestDoc::Common::Ini';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
@ -13,9 +13,9 @@ use Exporter qw(import);
|
||||
use File::Basename qw(dirname basename);
|
||||
use Time::Local qw(timelocal);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
use pgBackRestTest::Common::StorageRepo;
|
||||
|
@ -15,10 +15,10 @@ use File::Basename qw(basename dirname);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
|
@ -13,9 +13,9 @@ use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Env::ArchiveInfo;
|
||||
use pgBackRestTest::Env::BackupInfo;
|
||||
|
@ -13,9 +13,9 @@ use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Env::ArchiveInfo;
|
||||
use pgBackRestTest::Env::BackupInfo;
|
||||
|
@ -14,9 +14,9 @@ use Carp qw(confess);
|
||||
use File::Basename qw(dirname);
|
||||
use Storable qw(dclone);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Env::ArchiveInfo;
|
||||
use pgBackRestTest::Env::BackupInfo;
|
||||
|
@ -13,9 +13,9 @@ use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Env::ArchiveInfo;
|
||||
use pgBackRestTest::Env::BackupInfo;
|
||||
|
@ -15,7 +15,7 @@ use English '-no_match_vars';
|
||||
use Storable qw(dclone);
|
||||
use Time::HiRes qw(gettimeofday);
|
||||
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
use pgBackRestTest::Common::RunTest;
|
||||
|
@ -15,9 +15,9 @@ use File::Basename qw(dirname);
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Ini;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Ini;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::DbVersion;
|
||||
@ -779,7 +779,7 @@ sub run
|
||||
else
|
||||
{
|
||||
# Backup info will have the catalog number
|
||||
my $oBackupInfo = new BackRestDoc::Common::Ini(
|
||||
my $oBackupInfo = new pgBackRestDoc::Common::Ini(
|
||||
storageRepo(), $oHostBackup->repoBackupPath(FILE_BACKUP_INFO),
|
||||
{bLoad => false, strContent => ${storageRepo()->get($oHostBackup->repoBackupPath(FILE_BACKUP_INFO))}});
|
||||
|
||||
|
16
test/test.pl
16
test/test.pl
@ -29,9 +29,9 @@ use lib dirname(dirname($0)) . '/doc/lib';
|
||||
|
||||
use pgBackRest::Version;
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use BackRestDoc::Common::String;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::String;
|
||||
|
||||
use pgBackRestBuild::Build;
|
||||
use pgBackRestBuild::Build::Common;
|
||||
@ -597,14 +597,14 @@ eval
|
||||
&log(INFO, "check version info");
|
||||
|
||||
# Load the doc modules dynamically since they are not supported on all systems
|
||||
require BackRestDoc::Common::Doc;
|
||||
BackRestDoc::Common::Doc->import();
|
||||
require BackRestDoc::Custom::DocCustomRelease;
|
||||
BackRestDoc::Custom::DocCustomRelease->import();
|
||||
require pgBackRestDoc::Common::Doc;
|
||||
pgBackRestDoc::Common::Doc->import();
|
||||
require pgBackRestDoc::Custom::DocCustomRelease;
|
||||
pgBackRestDoc::Custom::DocCustomRelease->import();
|
||||
|
||||
my $strReleaseFile = dirname(dirname(abs_path($0))) . '/doc/xml/release.xml';
|
||||
my $oRelease =
|
||||
(new BackRestDoc::Custom::DocCustomRelease(new BackRestDoc::Common::Doc($strReleaseFile)))->releaseLast();
|
||||
(new pgBackRestDoc::Custom::DocCustomRelease(new pgBackRestDoc::Common::Doc($strReleaseFile)))->releaseLast();
|
||||
my $strVersion = $oRelease->paramGet('version');
|
||||
$bVersionDev = false;
|
||||
$strVersionBase = $strVersion;
|
||||
|
@ -23,8 +23,8 @@ use lib dirname($0) . '/lib';
|
||||
use lib dirname(dirname($0)) . '/lib';
|
||||
use lib dirname(dirname($0)) . '/doc/lib';
|
||||
|
||||
use BackRestDoc::Common::Exception;
|
||||
use BackRestDoc::Common::Log;
|
||||
use pgBackRestDoc::Common::Exception;
|
||||
use pgBackRestDoc::Common::Log;
|
||||
|
||||
use pgBackRestTest::Common::ContainerTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
Loading…
x
Reference in New Issue
Block a user