manageiq-appliance_console 5.4.0 → 6.1.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,43 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.4
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: 4.2.2
22
+ version: 6.0.4.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 6.0.4
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: 4.2.2
32
+ version: 6.0.4.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: activesupport
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 6.0.4
31
40
  - - ">="
32
41
  - !ruby/object:Gem::Version
33
- version: 4.2.2
42
+ version: 6.0.4.1
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 6.0.4
38
50
  - - ">="
39
51
  - !ruby/object:Gem::Version
40
- version: 4.2.2
52
+ version: 6.0.4.1
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: awesome_spawn
43
55
  requirement: !ruby/object:Gem::Requirement
@@ -205,13 +217,13 @@ dependencies:
205
217
  - !ruby/object:Gem::Version
206
218
  version: '5.0'
207
219
  - !ruby/object:Gem::Dependency
208
- name: rbnacl-libsodium
220
+ name: bundler
209
221
  requirement: !ruby/object:Gem::Requirement
210
222
  requirements:
211
223
  - - ">="
212
224
  - !ruby/object:Gem::Version
213
225
  version: '0'
214
- type: :runtime
226
+ type: :development
215
227
  prerelease: false
216
228
  version_requirements: !ruby/object:Gem::Requirement
217
229
  requirements:
@@ -219,33 +231,33 @@ dependencies:
219
231
  - !ruby/object:Gem::Version
220
232
  version: '0'
221
233
  - !ruby/object:Gem::Dependency
222
- name: bundler
234
+ name: codeclimate-test-reporter
223
235
  requirement: !ruby/object:Gem::Requirement
224
236
  requirements:
225
- - - ">="
237
+ - - "~>"
226
238
  - !ruby/object:Gem::Version
227
- version: '0'
239
+ version: 1.0.0
228
240
  type: :development
229
241
  prerelease: false
230
242
  version_requirements: !ruby/object:Gem::Requirement
231
243
  requirements:
232
- - - ">="
244
+ - - "~>"
233
245
  - !ruby/object:Gem::Version
234
- version: '0'
246
+ version: 1.0.0
235
247
  - !ruby/object:Gem::Dependency
236
- name: codeclimate-test-reporter
248
+ name: manageiq-style
237
249
  requirement: !ruby/object:Gem::Requirement
238
250
  requirements:
239
- - - "~>"
251
+ - - ">="
240
252
  - !ruby/object:Gem::Version
241
- version: 1.0.0
253
+ version: '0'
242
254
  type: :development
243
255
  prerelease: false
244
256
  version_requirements: !ruby/object:Gem::Requirement
245
257
  requirements:
246
- - - "~>"
258
+ - - ">="
247
259
  - !ruby/object:Gem::Version
248
- version: 1.0.0
260
+ version: '0'
249
261
  - !ruby/object:Gem::Dependency
250
262
  name: rake
251
263
  requirement: !ruby/object:Gem::Requirement
@@ -303,7 +315,7 @@ dependencies:
303
315
  - !ruby/object:Gem::Version
304
316
  version: '0'
305
317
  description: ManageIQ Appliance Console
306
- email:
318
+ email:
307
319
  executables:
308
320
  - appliance_console
309
321
  - appliance_console_cli
@@ -347,8 +359,11 @@ files:
347
359
  - lib/manageiq/appliance_console/logger.rb
348
360
  - lib/manageiq/appliance_console/logging.rb
349
361
  - lib/manageiq/appliance_console/logical_volume_management.rb
350
- - lib/manageiq/appliance_console/messaging_configuration.rb
362
+ - lib/manageiq/appliance_console/message_configuration.rb
363
+ - lib/manageiq/appliance_console/message_configuration_client.rb
364
+ - lib/manageiq/appliance_console/message_configuration_server.rb
351
365
  - lib/manageiq/appliance_console/oidc_authentication.rb
366
+ - lib/manageiq/appliance_console/postgres_admin.rb
352
367
  - lib/manageiq/appliance_console/principal.rb
353
368
  - lib/manageiq/appliance_console/prompts.rb
354
369
  - lib/manageiq/appliance_console/saml_authentication.rb
@@ -364,7 +379,7 @@ homepage: https://github.com/ManageIQ/manageiq-appliance_console
364
379
  licenses:
365
380
  - Apache-2.0
366
381
  metadata: {}
367
- post_install_message:
382
+ post_install_message:
368
383
  rdoc_options: []
369
384
  require_paths:
370
385
  - lib
@@ -379,8 +394,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
379
394
  - !ruby/object:Gem::Version
380
395
  version: '0'
381
396
  requirements: []
382
- rubygems_version: 3.0.6
383
- signing_key:
397
+ rubygems_version: 3.2.22
398
+ signing_key:
384
399
  specification_version: 4
385
400
  summary: ManageIQ Appliance Console
386
401
  test_files: []
@@ -1,92 +0,0 @@
1
- require "pathname"
2
-
3
- module ManageIQ
4
- module ApplianceConsole
5
- class MessagingConfiguration
6
- include ManageIQ::ApplianceConsole::Logging
7
- include ManageIQ::ApplianceConsole::Prompts
8
-
9
- MESSAGING_YML = ManageIQ::ApplianceConsole::RAILS_ROOT.join("config/messaging.yml")
10
-
11
- attr_accessor :host, :password, :port, :username
12
-
13
- def run_interactive
14
- ask_questions
15
-
16
- clear_screen
17
- say("Activating the configuration using the following settings...\n#{friendly_inspect}\n")
18
-
19
- raise MiqSignalError unless activate
20
-
21
- say("\nConfiguration activated successfully.\n")
22
- rescue RuntimeError => e
23
- puts "Configuration failed#{": " + e.message unless e.class == MiqSignalError}"
24
- press_any_key
25
- raise MiqSignalError
26
- end
27
-
28
- def ask_questions
29
- ask_for_messaging_credentials
30
- end
31
-
32
- def ask_for_messaging_credentials
33
- self.host = ask_for_ip_or_hostname("messaging hostname or IP address")
34
- self.port = ask_for_integer("port number", (1..65_535), 9_092).to_i
35
- self.username = just_ask("username")
36
- count = 0
37
- loop do
38
- password1 = ask_for_password("messaging password on #{host}")
39
-
40
- if password1.strip.empty?
41
- say("\nPassword can not be empty, please try again")
42
- next
43
- end
44
-
45
- password2 = ask_for_password("messaging password again")
46
- if password1 == password2
47
- self.password = password1
48
- break
49
- elsif count > 0 # only reprompt password once
50
- raise "passwords did not match"
51
- else
52
- count += 1
53
- say("\nThe passwords did not match, please try again")
54
- end
55
- end
56
- end
57
-
58
- def friendly_inspect
59
- <<~END_OF_INSPECT
60
- Host: #{host}
61
- Username: #{username}
62
- Port: #{port}
63
- END_OF_INSPECT
64
- end
65
-
66
- def activate
67
- save
68
- true
69
- end
70
-
71
- private
72
-
73
- def settings_from_input
74
- {
75
- "hostname" => host,
76
- "password" => password,
77
- "port" => port,
78
- "username" => username
79
- }
80
- end
81
-
82
- def save(settings = nil)
83
- settings ||= settings_from_input
84
-
85
- settings["password"] = MiqPassword.try_encrypt(settings.delete("password"))
86
-
87
- require 'yaml'
88
- File.write(MESSAGING_YML, YAML.dump("production" => settings))
89
- end
90
- end
91
- end
92
- end