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