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
814250f0
Commit
814250f0
authored
1 year ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- init
parent
d0e5c5ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SLUB/LZA/TA/Command/info.pm
+49
-0
49 additions, 0 deletions
lib/SLUB/LZA/TA/Command/info.pm
with
49 additions
and
0 deletions
lib/SLUB/LZA/TA/Command/info.pm
0 → 100644
+
49
−
0
View file @
814250f0
package
SLUB::LZA::TA::Command::
info
;
use
SLUB::LZA::
TA
-
command
;
use
strict
;
use
warnings
;
use
feature
qw(say)
;
use
SLUB::LZA::TA::Archivematica::
Elasticsearch
;
# VERSION
# ABSTRACT: search IEs module for ta-tool
sub
abstract
{"
information about Archival Information System (AIS)
";}
my
$description
=
<<"DESCR";
Reports information about AIS
DESCR
sub
description
{
"
$description
"
}
sub
opt_spec
{
return
(
[
'
help|h
',
'
print usage message and exit
',
{
shortcircuit
=>
1
}
],
[
'
target-version|V
'
=>
'
get current elasticsearch version
',
{
shortcircuit
=>
1
}
],
[
'
version|v
',
'
print version information
',
{
shortcircuit
=>
1
}
],
);
}
sub
validate_args
{
my
(
$self
,
$opt
,
$args
)
=
@_
;
# no args allowed but options!
$self
->
usage_error
("
No args allowed
")
if
@$args
;
1
;
}
sub
execute
{
my
(
$self
,
$opt
,
$args
)
=
@_
;
if
(
$opt
->
{
target_version
})
{
say
SLUB::LZA::TA::Archivematica::Elasticsearch::
version_elasticsearch
(
$
SLUB::LZA::TA::
config
{
elasticsearchprotocol
},
$
SLUB::LZA::TA::
config
{
elasticsearchhost
},
$
SLUB::LZA::TA::
config
{
elasticsearchport
}
);
}
return
1
;
}
1
;
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