foreman_leapp 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1891f98edb810793eaf892578ca6a2fdafe87be017e1e3ee370ebbd008baaeb
4
- data.tar.gz: 3a618bb3303b275113dc3ddaae440971f6f17939d274e4d0263c66424d5511b8
3
+ metadata.gz: f66eb2aaee146f245f45c3806525803d9bf0834035ea62fcde33e666d9df94d7
4
+ data.tar.gz: 20d3e32fc5ab353b5bb0e804bb54a2f937a757cb220a37cb3d1067915f4f7129
5
5
  SHA512:
6
- metadata.gz: 652a75504d5ccfb8b20580043c02335547d0ab1d763f936329558499d9e4bdfe1958c6fc091c76fc8c55a77babeb8b2beb89c655afc8c5ae33f48cf4494a0372
7
- data.tar.gz: 05b6c03d647d507262bb8f7847c87da4cb97facc0ea20d139fd90e788e37bc51664de0bd56d5bba0f89c0731e40eff8f02daadf0beba2dc890a6a2fced63e44e
6
+ metadata.gz: 529c587c622d1d3a131f16d62670c6bb341ae9a762dea74b092d62b8e56b3a7b3b2874be83bc96b83e521f9474123a745d868390162df2836e1a83d73ed10b62
7
+ data.tar.gz: 6efbb688ff2ce91a8181f2698fb4beb9e64b5bb01d95e3ddbb6e91bedac4fbd326e651d3bbe74650ed3c20226c59a56bc19c673762f29f148aa1223b52bdc1f5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ForemanLeapp
2
2
 
3
- This plugin allows to run inplace upgrades for RHEL 7 hosts in Foreman using Leapp tool.
3
+ This plugin allows to run inplace upgrades for RHEL hosts in Foreman using Leapp tool.
4
4
  For more information about Leapp tool check [github](https://github.com/oamg/leapp) or [developer docs](https://leapp.readthedocs.io/en/latest/).
5
5
 
6
6
  ## Installation
@@ -2,14 +2,11 @@
2
2
 
3
3
  module ForemanLeapp
4
4
  module RemoteExecutionHelperExtension
5
- def job_invocation_task_buttons(task)
6
- return super unless ::Helpers::JobHelper.correct_feature?(@job_invocation, 'leapp_remediation_plan')
7
-
8
- super.insert(2, link_to(_('Rerun preupgrade check'),
9
- new_job_invocation_path(host_ids: @resource_base.map(&:id), feature: 'leapp_preupgrade'),
10
- class: 'btn btn-default',
11
- title: _('Run Leapp Preupgrade check again'),
12
- method: :get))
5
+ def rex_host_features(*args)
6
+ super + [link_to(_('Preupgrade check with Leapp'),
7
+ new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_preupgrade')),
8
+ link_to(_('Upgrade with Leapp'),
9
+ new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_upgrade'))]
13
10
  end
14
11
  end
15
12
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ForemanLeapp
4
+ module HostsHelper
5
+ def leapp_hosts_multiple_actions
6
+ [{ action: [_('Preupgrade check with Leapp'), new_job_invocation_path(feature: 'leapp_preupgrade'), false],
7
+ priority: 1000 },
8
+ { action: [_('Upgrade with Leapp'), new_job_invocation_path(feature: 'leapp_upgrade'), false], priority: 1000 }]
9
+ end
10
+ end
11
+ end
@@ -2,7 +2,7 @@
2
2
  kind: job_template
3
3
  name: Run preupgrade via Leapp
4
4
  job_category: Leapp - Preupgrade
5
- description_format: 'Upgradeability check for RHEL 7 host'
5
+ description_format: 'Upgradeability check for RHEL host'
6
6
  provider_type: SSH
7
7
  feature: leapp_preupgrade
8
8
  model: JobTemplate
@@ -2,7 +2,7 @@
2
2
  kind: job_template
3
3
  name: Run upgrade via Leapp
4
4
  job_category: Leapp - Upgrade
5
- description_format: 'Upgrade RHEL 7 host'
5
+ description_format: 'Upgrade RHEL host'
6
6
  provider_type: Ansible
7
7
  feature: leapp_upgrade
8
8
  model: JobTemplate
@@ -41,13 +41,16 @@ module ForemanLeapp
41
41
  permission :view_job_invocations, { :preupgrade_reports => %i[index show job_invocation],
42
42
  'api/v2/preupgrade_reports' => %i[index show job_invocation] }
43
43
  end
44
+
45
+ describe_host do
46
+ multiple_actions_provider :leapp_hosts_multiple_actions
47
+ end
44
48
  end
45
49
  end
46
50
 
47
51
  # Include concerns in this config.to_prepare block
48
52
  config.to_prepare do
49
53
  begin
50
- ::HostsHelper.prepend ForemanLeapp::HostsHelperExtensions
51
54
  ::JobInvocation.include ForemanLeapp::JobInvocationExtensions
52
55
  rescue StandardError => e
53
56
  Rails.logger.warn "ForemanLeapp: skipping engine hook (#{e})"
@@ -88,14 +91,14 @@ module ForemanLeapp
88
91
  RemoteExecutionFeature.register(
89
92
  :leapp_preupgrade,
90
93
  N_('Preupgrade check with Leapp'),
91
- description: N_('Upgradeability check for RHEL 7 host'),
94
+ description: N_('Upgradeability check for RHEL host'),
92
95
  host_action_button: false
93
96
  )
94
97
 
95
98
  RemoteExecutionFeature.register(
96
99
  :leapp_upgrade,
97
100
  N_('Upgrade with Leapp'),
98
- description: N_('Run Leapp upgrade job for RHEL 7 host'),
101
+ description: N_('Run Leapp upgrade job for RHEL host'),
99
102
  host_action_button: false
100
103
  )
101
104
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanLeapp
4
- VERSION = '0.1.10'
4
+ VERSION = '0.1.11'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # Autogenerated!
2
- _("Preupgrade job")
3
2
  _("Remote action:")
4
3
  _("Import Puppet classes")
5
4
  _("Import facts")
6
- _("Action with sub plans")
5
+ _("Action with sub plans")
6
+ _("Preupgrade job")
@@ -0,0 +1,172 @@
1
+ # foreman_leapp
2
+ #
3
+ # This file is distributed under the same license as foreman_leapp.
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: version 0.0.1\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "PO-Revision-Date: 2014-08-20 08:54+0100\n"
10
+ "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
11
+ "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
12
+ "Language: \n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+
18
+ #: ../app/controllers/api/v2/concerns/api_authorizer.rb:16
19
+ msgid "Missing one of the required permissions: view_hosts"
20
+ msgstr ""
21
+
22
+ #: ../app/controllers/api/v2/preupgrade_reports_controller.rb:10
23
+ msgid "List Preupgrade reports"
24
+ msgstr ""
25
+
26
+ #: ../app/controllers/api/v2/preupgrade_reports_controller.rb:16
27
+ msgid "Show Preupgrade report"
28
+ msgstr ""
29
+
30
+ #: ../app/controllers/api/v2/preupgrade_reports_controller.rb:22
31
+ msgid "List Preupgrade reports for Job invocation"
32
+ msgstr ""
33
+
34
+ #: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:6 ../app/helpers/foreman_leapp/hosts_helper.rb:6 ../lib/foreman_leapp/engine.rb:93
35
+ msgid "Preupgrade check with Leapp"
36
+ msgstr ""
37
+
38
+ #: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:8 ../app/helpers/foreman_leapp/hosts_helper.rb:8 ../lib/foreman_leapp/engine.rb:100
39
+ msgid "Upgrade with Leapp"
40
+ msgstr ""
41
+
42
+ #: ../lib/foreman_leapp/engine.rb:32
43
+ msgid "Leapp preupgrade report"
44
+ msgstr ""
45
+
46
+ #: ../lib/foreman_leapp/engine.rb:94
47
+ msgid "Upgradeability check for RHEL host"
48
+ msgstr ""
49
+
50
+ #: ../lib/foreman_leapp/engine.rb:101
51
+ msgid "Run Leapp upgrade job for RHEL host"
52
+ msgstr ""
53
+
54
+ #: ../lib/foreman_leapp/engine.rb:107
55
+ msgid "Remediation plan"
56
+ msgstr ""
57
+
58
+ #: ../lib/foreman_leapp/engine.rb:108
59
+ msgid "Run Remediation plan with Leapp"
60
+ msgstr ""
61
+
62
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:19 ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:38
63
+ msgid "Title"
64
+ msgstr ""
65
+
66
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:20 ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:13
67
+ msgid "Risk Factor"
68
+ msgstr ""
69
+
70
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:21 ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:12
71
+ msgid "Host"
72
+ msgstr ""
73
+
74
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:22
75
+ msgid "Fix Type"
76
+ msgstr ""
77
+
78
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:23 ../webpack/components/PreupgradeReportsList/components/InhibitorInfoItem.js:21
79
+ msgid "Inhibitor"
80
+ msgstr ""
81
+
82
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:27 ../webpack/components/PreupgradeReports/components/EntriesFilter.js:35 ../webpack/components/PreupgradeReports/components/EntriesFilter.js:41
83
+ msgid "All"
84
+ msgstr ""
85
+
86
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:28
87
+ msgid "Low"
88
+ msgstr ""
89
+
90
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:29
91
+ msgid "Medium"
92
+ msgstr ""
93
+
94
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:30
95
+ msgid "High"
96
+ msgstr ""
97
+
98
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:31
99
+ msgid "Info"
100
+ msgstr ""
101
+
102
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:36
103
+ msgid "Hint"
104
+ msgstr ""
105
+
106
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:37
107
+ msgid "Command"
108
+ msgstr ""
109
+
110
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:42
111
+ msgid "Yes"
112
+ msgstr ""
113
+
114
+ #: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:43
115
+ msgid "No"
116
+ msgstr ""
117
+
118
+ #: ../webpack/components/PreupgradeReports/components/FixSelectedButton.js:12
119
+ msgid "Fix Selected"
120
+ msgstr ""
121
+
122
+ #: ../webpack/components/PreupgradeReports/components/NoReports.js:12
123
+ msgid "The preupgrade report could not be generated, check the job details for the reason"
124
+ msgstr ""
125
+
126
+ #: ../webpack/components/PreupgradeReports/components/NoReports.js:17
127
+ msgid "The preupgrade report will be available after the job finishes"
128
+ msgstr ""
129
+
130
+ #: ../webpack/components/PreupgradeReports/components/NoReports.js:25
131
+ msgid "No Preupgrade Report Available"
132
+ msgstr ""
133
+
134
+ #: ../webpack/components/PreupgradeReports/components/UpgradeAllButton.js:8
135
+ msgid "Run Upgrade"
136
+ msgstr ""
137
+
138
+ #: ../webpack/components/PreupgradeReportsList/components/InhibitorInfoItem.js:17
139
+ msgid "This issue inhibits the upgrade."
140
+ msgstr ""
141
+
142
+ #: ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:14
143
+ msgid "Has Remediation?"
144
+ msgstr ""
145
+
146
+ #: ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:15
147
+ msgid "Inhibitor?"
148
+ msgstr ""
149
+
150
+ #: action_names.rb:2
151
+ msgid "Remote action:"
152
+ msgstr ""
153
+
154
+ #: action_names.rb:3
155
+ msgid "Import Puppet classes"
156
+ msgstr ""
157
+
158
+ #: action_names.rb:4
159
+ msgid "Import facts"
160
+ msgstr ""
161
+
162
+ #: action_names.rb:5
163
+ msgid "Action with sub plans"
164
+ msgstr ""
165
+
166
+ #: action_names.rb:6
167
+ msgid "Preupgrade job"
168
+ msgstr ""
169
+
170
+ #: gemspec.rb:4
171
+ msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
172
+ msgstr ""
@@ -15,7 +15,10 @@ msgstr ""
15
15
  "Content-Transfer-Encoding: 8bit\n"
16
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
17
 
18
- msgid "A foreman plugin to support inplace RHEL 7 -> RHEL 8 upgrades with Leapp utility."
18
+ msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
19
+ msgstr ""
20
+
21
+ msgid "Action with sub plans"
19
22
  msgstr ""
20
23
 
21
24
  msgid "All"
@@ -42,6 +45,12 @@ msgstr ""
42
45
  msgid "Host"
43
46
  msgstr ""
44
47
 
48
+ msgid "Import Puppet classes"
49
+ msgstr ""
50
+
51
+ msgid "Import facts"
52
+ msgstr ""
53
+
45
54
  msgid "Info"
46
55
  msgstr ""
47
56
 
@@ -78,19 +87,19 @@ msgstr ""
78
87
  msgid "Preupgrade check with Leapp"
79
88
  msgstr ""
80
89
 
81
- msgid "Remediation plan"
90
+ msgid "Preupgrade job"
82
91
  msgstr ""
83
92
 
84
- msgid "Rerun preupgrade check"
93
+ msgid "Remediation plan"
85
94
  msgstr ""
86
95
 
87
- msgid "Risk Factor"
96
+ msgid "Remote action:"
88
97
  msgstr ""
89
98
 
90
- msgid "Run Leapp Preupgrade check again"
99
+ msgid "Risk Factor"
91
100
  msgstr ""
92
101
 
93
- msgid "Run Leapp upgrade job for RHEL 7 host"
102
+ msgid "Run Leapp upgrade job for RHEL host"
94
103
  msgstr ""
95
104
 
96
105
  msgid "Run Remediation plan with Leapp"
@@ -102,6 +111,9 @@ msgstr ""
102
111
  msgid "Show Preupgrade report"
103
112
  msgstr ""
104
113
 
114
+ msgid "The preupgrade report could not be generated, check the job details for the reason"
115
+ msgstr ""
116
+
105
117
  msgid "The preupgrade report will be available after the job finishes"
106
118
  msgstr ""
107
119
 
@@ -114,7 +126,7 @@ msgstr ""
114
126
  msgid "Upgrade with Leapp"
115
127
  msgstr ""
116
128
 
117
- msgid "Upgradeability check for RHEL 7 host"
129
+ msgid "Upgradeability check for RHEL host"
118
130
  msgstr ""
119
131
 
120
132
  msgid "Yes"
File without changes
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_leapp 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2020-07-20 08:46+0200\n"
12
- "PO-Revision-Date: 2020-07-20 08:46+0200\n"
11
+ "POT-Creation-Date: 2022-10-10 10:24+0200\n"
12
+ "PO-Revision-Date: 2022-10-10 10:24+0200\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -34,44 +34,35 @@ msgstr ""
34
34
  msgid "List Preupgrade reports for Job invocation"
35
35
  msgstr ""
36
36
 
37
- #: ../app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb:6
38
- #: ../app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb:11
39
- #: ../lib/foreman_leapp/engine.rb:53
37
+ #: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:6
38
+ #: ../app/helpers/foreman_leapp/hosts_helper.rb:6
39
+ #: ../lib/foreman_leapp/engine.rb:93
40
40
  msgid "Preupgrade check with Leapp"
41
41
  msgstr ""
42
42
 
43
- #: ../app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb:7
44
- #: ../app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb:13
45
- #: ../lib/foreman_leapp/engine.rb:60
46
- msgid "Upgrade with Leapp"
47
- msgstr ""
48
-
49
43
  #: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:8
50
- msgid "Rerun preupgrade check"
51
- msgstr ""
52
-
53
- #:
54
- #: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:11
55
- msgid "Run Leapp Preupgrade check again"
44
+ #: ../app/helpers/foreman_leapp/hosts_helper.rb:8
45
+ #: ../lib/foreman_leapp/engine.rb:100
46
+ msgid "Upgrade with Leapp"
56
47
  msgstr ""
57
48
 
58
49
  #: ../lib/foreman_leapp/engine.rb:32
59
50
  msgid "Leapp preupgrade report"
60
51
  msgstr ""
61
52
 
62
- #: ../lib/foreman_leapp/engine.rb:54
63
- msgid "Upgradeability check for RHEL 7 host"
53
+ #: ../lib/foreman_leapp/engine.rb:94
54
+ msgid "Upgradeability check for RHEL host"
64
55
  msgstr ""
65
56
 
66
- #: ../lib/foreman_leapp/engine.rb:61
67
- msgid "Run Leapp upgrade job for RHEL 7 host"
57
+ #: ../lib/foreman_leapp/engine.rb:101
58
+ msgid "Run Leapp upgrade job for RHEL host"
68
59
  msgstr ""
69
60
 
70
- #: ../lib/foreman_leapp/engine.rb:67
61
+ #: ../lib/foreman_leapp/engine.rb:107
71
62
  msgid "Remediation plan"
72
63
  msgstr ""
73
64
 
74
- #: ../lib/foreman_leapp/engine.rb:68
65
+ #: ../lib/foreman_leapp/engine.rb:108
75
66
  msgid "Run Remediation plan with Leapp"
76
67
  msgstr ""
77
68
 
@@ -141,6 +132,12 @@ msgstr ""
141
132
  msgid "Fix Selected"
142
133
  msgstr ""
143
134
 
135
+ #: ../webpack/components/PreupgradeReports/components/NoReports.js:12
136
+ msgid ""
137
+ "The preupgrade report could not be generated, check the job details for the re"
138
+ "ason"
139
+ msgstr ""
140
+
144
141
  #: ../webpack/components/PreupgradeReports/components/NoReports.js:17
145
142
  msgid "The preupgrade report will be available after the job finishes"
146
143
  msgstr ""
@@ -149,7 +146,7 @@ msgstr ""
149
146
  msgid "No Preupgrade Report Available"
150
147
  msgstr ""
151
148
 
152
- #: ../webpack/components/PreupgradeReports/components/UpgradeAllButton.js:13
149
+ #: ../webpack/components/PreupgradeReports/components/UpgradeAllButton.js:8
153
150
  msgid "Run Upgrade"
154
151
  msgstr ""
155
152
 
@@ -168,8 +165,26 @@ msgstr ""
168
165
  msgid "Inhibitor?"
169
166
  msgstr ""
170
167
 
168
+ #: action_names.rb:2
169
+ msgid "Remote action:"
170
+ msgstr ""
171
+
172
+ #: action_names.rb:3
173
+ msgid "Import Puppet classes"
174
+ msgstr ""
175
+
176
+ #: action_names.rb:4
177
+ msgid "Import facts"
178
+ msgstr ""
179
+
180
+ #: action_names.rb:5
181
+ msgid "Action with sub plans"
182
+ msgstr ""
183
+
184
+ #: action_names.rb:6
185
+ msgid "Preupgrade job"
186
+ msgstr ""
187
+
171
188
  #: gemspec.rb:4
172
- msgid ""
173
- "A foreman plugin to support inplace RHEL 7 -> RHEL 8 upgrades with Leapp utili"
174
- "ty."
189
+ msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
175
190
  msgstr ""
data/locale/gemspec.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Matches foreman_leapp.gemspec
4
- _('A foreman plugin to support inplace RHEL 7 -> RHEL 8 upgrades with Leapp utility.')
4
+ _('A Foreman plugin to support inplace RHEL upgrades with Leapp utility.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_leapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
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: 2022-04-28 00:00:00.000000000 Z
11
+ date: 2022-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman_remote_execution
@@ -52,8 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '6.2'
55
- description: A Foreman plugin to support inplace RHEL 7 -> RHEL 8 upgrades with Leapp
56
- utility.
55
+ description: A Foreman plugin to support inplace RHEL upgrades with Leapp utility.
57
56
  email:
58
57
  - foreman-dev@googlegroups.com
59
58
  executables: []
@@ -66,8 +65,8 @@ files:
66
65
  - app/controllers/api/v2/concerns/api_authorizer.rb
67
66
  - app/controllers/api/v2/preupgrade_reports_controller.rb
68
67
  - app/controllers/preupgrade_reports_controller.rb
69
- - app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb
70
68
  - app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
69
+ - app/helpers/foreman_leapp/hosts_helper.rb
71
70
  - app/helpers/foreman_leapp/template_helper.rb
72
71
  - app/lib/actions/preupgrade_job.rb
73
72
  - app/lib/helpers/job_helper.rb
@@ -99,7 +98,9 @@ files:
99
98
  - lib/tasks/foreman_leapp_tasks.rake
100
99
  - locale/Makefile
101
100
  - locale/action_names.rb
101
+ - locale/en/foreman_leapp.edit.po
102
102
  - locale/en/foreman_leapp.po
103
+ - locale/en/foreman_leapp.po.time_stamp
103
104
  - locale/foreman_leapp.pot
104
105
  - locale/gemspec.rb
105
106
  - package.json
@@ -198,17 +199,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
199
  - !ruby/object:Gem::Version
199
200
  version: '0'
200
201
  requirements: []
201
- rubygems_version: 3.3.7
202
+ rubygems_version: 3.1.6
202
203
  signing_key:
203
204
  specification_version: 4
204
205
  summary: A Foreman plugin for Leapp utility.
205
206
  test_files:
207
+ - test/factories/foreman_leapp_factories.rb
206
208
  - test/functional/api/v2/preupgrade_reports_controller_test.rb
207
209
  - test/functional/preupgrade_reports_controller_test.rb
208
- - test/models/preupgrade_report_test.rb
210
+ - test/helpers/template_helper_test.rb
209
211
  - test/models/preupgrade_report_entry_test.rb
210
- - test/unit/helpers/job_helper_test.rb
212
+ - test/models/preupgrade_report_test.rb
211
213
  - test/unit/actions/preupgrade_job_test.rb
214
+ - test/unit/helpers/job_helper_test.rb
212
215
  - test/test_plugin_helper.rb
213
- - test/helpers/template_helper_test.rb
214
- - test/factories/foreman_leapp_factories.rb
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ForemanLeapp
4
- module HostsHelperExtensions
5
- def multiple_actions
6
- super + [[_('Preupgrade check with Leapp'), new_job_invocation_path(feature: 'leapp_preupgrade'), false],
7
- [_('Upgrade with Leapp'), new_job_invocation_path(feature: 'leapp_upgrade'), false]]
8
- end
9
-
10
- def rex_host_features(*args)
11
- super + [link_to(_('Preupgrade check with Leapp'),
12
- new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_preupgrade')),
13
- link_to(_('Upgrade with Leapp'),
14
- new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_upgrade'))]
15
- end
16
- end
17
- end