hammer_cli_foreman_leapp 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '008f142e46ca7067bf83a325e7df0f23136ff60f77dfe0a8db733ad96e2ea348'
|
4
|
+
data.tar.gz: bc1e2ec8bc2535c5132a07b76a9ee7abb0a9eb9aa675b1ce57c541bdb7c71613
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d896ca366b8a955220af13b327f43c03bb40276435a0b5071bc0c1853e7a4d5e8754ddc47a176b73a9329e043b2dcd4b64c51a300a08f708c82b593555b1b29
|
7
|
+
data.tar.gz: 138a69d3f16f37f0cebdcab4b733d224103dead06e3ec99ada1d070a93ff6f4fb3036d8b3d8acf86ffbc38b27cb6d39b00274d025ce5e72224b1ddcb38e2b867
|
data/README.md
CHANGED
@@ -8,9 +8,9 @@ This Hammer CLI plugin contains set of commands for [foreman_leapp](
|
|
8
8
|
|
9
9
|
This is the list of which version of Foreman Leapp is needed to which version of this plugin.
|
10
10
|
|
11
|
-
| hammer_cli_foreman_leapp | 1.0
|
11
|
+
| hammer_cli_foreman_leapp | 0.1.0 |
|
12
12
|
|--------------------------|-------|
|
13
|
-
| foreman_leapp | 1.0
|
13
|
+
| foreman_leapp | 0.1.0 |
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
@@ -7,4 +7,10 @@ require 'hammer_cli_foreman_leapp/version'
|
|
7
7
|
require 'hammer_cli_foreman_leapp/preupgrade_reports'
|
8
8
|
|
9
9
|
module HammerCLIForemanLeapp
|
10
|
+
HammerCLI::MainCommand.lazy_subcommand(
|
11
|
+
'preupgrade-report',
|
12
|
+
'Manage Leapp Preupgrade reports',
|
13
|
+
'HammerCLIForemanLeapp::PreupgradeReportsCommand',
|
14
|
+
'hammer_cli_foreman_leapp/preupgrade_reports'
|
15
|
+
)
|
10
16
|
end
|
@@ -2,5 +2,43 @@
|
|
2
2
|
|
3
3
|
module HammerCLIForemanLeapp
|
4
4
|
class PreupgradeReportsCommand < HammerCLIForeman::Command
|
5
|
+
resource :preupgrade_reports
|
6
|
+
|
7
|
+
class ListCommand < HammerCLIForeman::ListCommand
|
8
|
+
output do
|
9
|
+
field :id, _('Id')
|
10
|
+
field :reported_at, _('Reported at'), Fields::Date
|
11
|
+
field :job_invocation_id, _('Job Invocation Id')
|
12
|
+
field :host_id, _('Host Id')
|
13
|
+
end
|
14
|
+
|
15
|
+
build_options
|
16
|
+
end
|
17
|
+
|
18
|
+
class InfoCommand < HammerCLIForeman::InfoCommand
|
19
|
+
output PreupgradeReportsCommand::ListCommand.output_definition do
|
20
|
+
collection :preupgrade_report_entries, _('Entries'), hide_blank: true do
|
21
|
+
field :id, _('Id')
|
22
|
+
field :hostname, _('Host name')
|
23
|
+
field :title, _('Title')
|
24
|
+
field :actor, _('Actor')
|
25
|
+
field :audience, _('Audience')
|
26
|
+
field :severity, _('Severity')
|
27
|
+
field :tags, _('Tags'), Fields::List
|
28
|
+
field :summary, _('Summary'), Fields::Text
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
build_options
|
33
|
+
end
|
34
|
+
|
35
|
+
class JobInvocationCommand < HammerCLIForeman::ListCommand
|
36
|
+
action :job_invocation
|
37
|
+
command_name 'job-invocation'
|
38
|
+
output PreupgradeReportsCommand::ListCommand.output_definition
|
39
|
+
build_options
|
40
|
+
end
|
41
|
+
|
42
|
+
autoload_subcommands
|
5
43
|
end
|
6
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman_leapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Leapp team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli_foreman
|