1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +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:
David Steele
2020-03-10 15:41:56 -04:00
parent 36d4ab9bff
commit 731b862e6f
75 changed files with 287 additions and 287 deletions
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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;
+3 -3
View File
@@ -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;
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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;
+3 -3
View File
@@ -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;
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -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;
+3 -3
View File
@@ -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;
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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;
+4 -4
View File
@@ -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;
+3 -3
View File
@@ -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;
+1 -1
View File
@@ -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;
+4 -4
View File
@@ -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))}});