Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools for technical analysts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
tools for technical analysts
Commits
83d42b17
Commit
83d42b17
authored
2 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- added logdir
- enhanced explanation
parent
8817ad10
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SLUB/LZA/Rosetta/TA/Command/init.pm
+3
-1
3 additions, 1 deletion
lib/SLUB/LZA/Rosetta/TA/Command/init.pm
with
3 additions
and
1 deletion
lib/SLUB/LZA/Rosetta/TA/Command/init.pm
+
3
−
1
View file @
83d42b17
...
@@ -10,7 +10,8 @@ sub description {"Initialize $0, preparing config"}
...
@@ -10,7 +10,8 @@ sub description {"Initialize $0, preparing config"}
sub
opt_spec
{
sub
opt_spec
{
return
(
return
(
["
verbose|v
"
=>
"
enable verbose output
"],
["
verbose|v
"
=>
"
enable verbose output
"],
["
rosettahost|r=s
"
=>
"
host
",
{
required
=>
1
}],
["
rosettahost|r=s
"
=>
"
host adress where Rosetta runs
",
{
required
=>
1
}],
["
logdir|l=s
"
=>
"
logdir where rosetta stores it server log files
",
{
required
=>
1
}],
);
);
}
}
sub
validate_args
{
sub
validate_args
{
...
@@ -23,6 +24,7 @@ sub execute {
...
@@ -23,6 +24,7 @@ sub execute {
my
(
$self
,
$opt
,
$args
)
=
@_
;
my
(
$self
,
$opt
,
$args
)
=
@_
;
my
%config
;
my
%config
;
$config
{
host
}
=
$opt
->
{
rosettahost
};
$config
{
host
}
=
$opt
->
{
rosettahost
};
$config
{
logdir
}
=
$opt
->
{
logdir
};
if
(
defined
$
SLUB::LZA::Rosetta::TA::
config_file
)
{
if
(
defined
$
SLUB::LZA::Rosetta::TA::
config_file
)
{
if
(
defined
$opt
->
{
verbose
})
{
if
(
defined
$opt
->
{
verbose
})
{
say
"
store config in
$SLUB
::LZA::Rosetta::TA::config_file
";
say
"
store config in
$SLUB
::LZA::Rosetta::TA::config_file
";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment