You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-18 23:57:33 +02:00
Improvements to documentation engine:
* Documentation can now be built with reusable blocks to reduce duplication. * Added ability to pass options to containers within the documentation. * Add proper tag to slightly emphasize proper nouns.
This commit is contained in:
@ -38,7 +38,8 @@ sub new
|
||||
$self->{strImage},
|
||||
$self->{strUser},
|
||||
$self->{strOS},
|
||||
$self->{stryMount}
|
||||
$self->{stryMount},
|
||||
$self->{strOption},
|
||||
) =
|
||||
logDebugParam
|
||||
(
|
||||
@ -48,12 +49,14 @@ sub new
|
||||
{name => 'strImage', trace => true},
|
||||
{name => 'strUser', trace => true},
|
||||
{name => 'strOS', trace => true},
|
||||
{name => 'stryMount', required => false, trace => true}
|
||||
{name => 'stryMount', required => false, trace => true},
|
||||
{name => 'strOption', required => false, trace => true},
|
||||
);
|
||||
|
||||
executeTest("docker rm -f $self->{strContainer}", {bSuppressError => true});
|
||||
|
||||
executeTest("docker run -itd -h $self->{strName} --name=$self->{strContainer}" .
|
||||
(defined($self->{strOption}) ? ' ' . $self->{strOption} : '') .
|
||||
(defined($self->{stryMount}) ? ' -v ' . join(' -v ', @{$self->{stryMount}}) : '') .
|
||||
" $self->{strImage}");
|
||||
|
||||
|
Reference in New Issue
Block a user