foreman_maintain 0.1.1 → 0.1.2
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 +4 -4
- data/definitions/features/pulp.rb +9 -0
- data/definitions/procedures/repositories/setup.rb +3 -1
- data/definitions/procedures/sync_plans/disable.rb +4 -0
- data/definitions/procedures/sync_plans/enable.rb +4 -0
- data/lib/foreman_maintain/detector.rb +1 -0
- data/lib/foreman_maintain/executable.rb +1 -0
- data/lib/foreman_maintain/param.rb +1 -0
- data/lib/foreman_maintain/reporter.rb +1 -0
- data/lib/foreman_maintain/reporter/cli_reporter.rb +3 -0
- data/lib/foreman_maintain/runner.rb +4 -1
- data/lib/foreman_maintain/upgrade_runner.rb +1 -0
- data/lib/foreman_maintain/utils/command_runner.rb +1 -0
- data/lib/foreman_maintain/utils/hammer.rb +1 -0
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c76360569117ea968a720fbb493d1348a396b01b
|
4
|
+
data.tar.gz: 746747370c85d10ad6f0dec6dfe7123085485e3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 276ab0eadfd9ac48178a4650aab47e54d215d9504f164f5b8a0342dc4271bea01718a27e49e50ac4fe6768c1e50772d296e493223da8b87d2ec2b468dba12ce4
|
7
|
+
data.tar.gz: 94cce0df009844faad60bb89d81a792a563a9850897d949c2722e35227700d21e554b8ffd1f9321eab243c1b45ef3537ee963d7aeab440b0cd3e168e18ee4bb4
|
@@ -224,6 +224,7 @@ module ForemanMaintain
|
|
224
224
|
ensure
|
225
225
|
clear_line
|
226
226
|
end
|
227
|
+
# rubocop:enable Metrics/MethodLength,Metrics/AbcSize
|
227
228
|
|
228
229
|
# loop over the block until it returns some non-false value
|
229
230
|
def until_valid_decision
|
@@ -269,6 +270,7 @@ module ForemanMaintain
|
|
269
270
|
|
270
271
|
private
|
271
272
|
|
273
|
+
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
272
274
|
def scenario_failure_message(scenario)
|
273
275
|
return if scenario.passed?
|
274
276
|
message = []
|
@@ -306,6 +308,7 @@ module ForemanMaintain
|
|
306
308
|
end
|
307
309
|
puts((message + recommend).join("\n"))
|
308
310
|
end
|
311
|
+
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
|
309
312
|
|
310
313
|
def format_steps(steps, join_with = ', ', indent = 0)
|
311
314
|
steps.map { |s| "#{' ' * indent}[#{s.label_dashed}]" }.join(join_with)
|
@@ -32,7 +32,7 @@ module ForemanMaintain
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# rubocop:disable Metrics/
|
35
|
+
# rubocop:disable Metrics/CyclomaticComplexity
|
36
36
|
def run_scenario(scenario, confirm = true)
|
37
37
|
return if scenario.steps.empty?
|
38
38
|
raise 'The runner is already in quit state' if quit?
|
@@ -47,6 +47,7 @@ module ForemanMaintain
|
|
47
47
|
@last_scenario = scenario unless scenario.steps.empty?
|
48
48
|
@exit_code = 1 if scenario.failed?
|
49
49
|
end
|
50
|
+
# rubocop:enable Metrics/CyclomaticComplexity
|
50
51
|
|
51
52
|
def whitelisted_step?(step)
|
52
53
|
@whitelist.include?(step.label_dashed.to_s)
|
@@ -121,6 +122,7 @@ module ForemanMaintain
|
|
121
122
|
end
|
122
123
|
end
|
123
124
|
|
125
|
+
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity
|
124
126
|
def ask_about_offered_steps(step)
|
125
127
|
if assumeyes? && rerun_check?(step)
|
126
128
|
@reporter.puts 'Check still failing after attempt to fix. Skipping'
|
@@ -141,6 +143,7 @@ module ForemanMaintain
|
|
141
143
|
end
|
142
144
|
end
|
143
145
|
end
|
146
|
+
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity
|
144
147
|
|
145
148
|
def rerun_check?(step)
|
146
149
|
@last_decision_step == step
|
@@ -175,6 +175,7 @@ module ForemanMaintain
|
|
175
175
|
The upgrade failed and system was restored to pre-upgrade state.
|
176
176
|
MESSAGE
|
177
177
|
end
|
178
|
+
# rubocop:enable Metrics/AbcSize, Lint/NonLocalExitFromIterator
|
178
179
|
|
179
180
|
def with_non_empty_scenario(phase)
|
180
181
|
next_scenario = scenario(phase)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_maintain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -99,6 +99,7 @@ description: Provides various features that helps keeping the Foreman/Satellite
|
|
99
99
|
email: inecas@redhat.com
|
100
100
|
executables:
|
101
101
|
- foreman-maintain
|
102
|
+
- passenger-recycler
|
102
103
|
extensions: []
|
103
104
|
extra_rdoc_files:
|
104
105
|
- LICENSE
|
@@ -129,6 +130,7 @@ files:
|
|
129
130
|
- definitions/features/hammer.rb
|
130
131
|
- definitions/features/katello.rb
|
131
132
|
- definitions/features/katello_service.rb
|
133
|
+
- definitions/features/pulp.rb
|
132
134
|
- definitions/features/sync_plans.rb
|
133
135
|
- definitions/features/upstream.rb
|
134
136
|
- definitions/procedures/foreman_tasks/delete.rb
|
@@ -221,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
223
|
version: '0'
|
222
224
|
requirements: []
|
223
225
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.6.12
|
225
227
|
signing_key:
|
226
228
|
specification_version: 4
|
227
229
|
summary: Foreman maintenance tool belt
|