manageiq-appliance_console 7.0.2 → 7.0.3

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: 0bd1a3dd9e162ed9ac08eb8ff6b19cdee44dc53ceefd0264f1634b2969e4280b
4
- data.tar.gz: 7a67c4fadf2f58b10a147e9aa1e8868be5d546eb4dcbab5a20c787bf7fd04594
3
+ metadata.gz: 1b3c172dfc96c2277b77bbfa23a5fe937b6b9243976eadb498494bcdc7f13f0e
4
+ data.tar.gz: bd35b1485091ee2ecbaaa9e19c284cce56f9de56791ecc38e6d079e2efba0026
5
5
  SHA512:
6
- metadata.gz: 73a9f64122a24403e2914ff6505d9b7266dc672a1569d4c3c9289fe999f95adc54be4051299e3bf95c1643c3e48eaa8ebc21cc8d63bb7b6fdedb22f7e00e54e1
7
- data.tar.gz: 5bc8dcd47e5d82b4e2eb2aad8294b73b369c1119b0af08652d83f3733c7ff6e92b97542ba6bf9fafbc2344482af996a7d1ef2238223de87f0147b04d6412db45
6
+ metadata.gz: 26750dd440a5f6155e224195ec9725642d555c4086d1f05779dd75a49477d50454bd1f54e58bc951718e63a820ebe77f310beea60705eba66d5f3887fbf37689
7
+ data.tar.gz: 3d239c39f695539198de07539ee366060475a2efa285fdd6e5085345f36a1ef9a35cbd0fef021be784bbaadc7c94b74c7c39d7b15c4b8994e7a78dd08061fd25
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  [![Build Status](https://travis-ci.com/ManageIQ/manageiq-appliance_console.svg?branch=master)](https://travis-ci.com/github/ManageIQ/manageiq-appliance_console)
5
5
  [![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console.svg)](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console)
6
6
  [![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console/coverage)
7
- [![Security](https://hakiri.io/github/ManageIQ/manageiq-appliance_console/master.svg)](https://hakiri.io/github/ManageIQ/manageiq-appliance_console/master)
8
7
 
9
8
  [![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq-appliance_console?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
10
9
 
@@ -425,7 +425,11 @@ Static Network Configuration
425
425
  say("#{selection}\n\n")
426
426
 
427
427
  message_server = MessageServerConfiguration.new
428
- if message_server.ask_questions && message_server.configure
428
+ if !MessageServerConfiguration.available?
429
+ say("\nMessage Server configuration is unavailable!\n")
430
+ press_any_key
431
+ raise MiqSignalError
432
+ elsif message_server.ask_questions && message_server.configure
429
433
  say("\nMessage Server configured successfully.\n")
430
434
  press_any_key
431
435
  else
@@ -438,7 +442,11 @@ Static Network Configuration
438
442
  say("#{selection}\n\n")
439
443
 
440
444
  message_client = MessageClientConfiguration.new
441
- if message_client.ask_questions && message_client.configure
445
+ if !MessageClientConfiguration.available?
446
+ say("\nMessage Client configuration is unavailable!\n")
447
+ press_any_key
448
+ raise MiqSignalError
449
+ elsif message_client.ask_questions && message_client.configure
442
450
  say("\nMessage Client configured successfully.\n")
443
451
  press_any_key
444
452
  else
@@ -509,6 +509,8 @@ module ApplianceConsole
509
509
  end
510
510
 
511
511
  def message_server_config
512
+ raise "Message Server Configuration is not available" unless MessageServerConfiguration.available?
513
+
512
514
  MessageServerConfiguration.new(options).configure
513
515
  end
514
516
 
@@ -517,6 +519,8 @@ module ApplianceConsole
517
519
  end
518
520
 
519
521
  def message_client_config
522
+ raise "Message Client Configuration is not available" unless MessageClientConfiguration.available?
523
+
520
524
  MessageClientConfiguration.new(options).configure
521
525
  end
522
526
 
@@ -22,6 +22,10 @@ module ManageIQ
22
22
  SAMPLE_CONFIG_DIR = "#{BASE_DIR}/config-sample".freeze
23
23
  MIQ_CONFIG_DIR = ManageIQ::ApplianceConsole::RAILS_ROOT.join("config").freeze
24
24
 
25
+ def self.available?
26
+ File.exist?("#{BASE_DIR}/bin/kafka-run-class.sh")
27
+ end
28
+
25
29
  def initialize(options = {})
26
30
  @message_server_port = options[:message_server_port] || 9093
27
31
  @message_keystore_username = options[:message_keystore_username] || "admin"
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '7.0.2'.freeze
3
+ VERSION = '7.0.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.2
4
+ version: 7.0.3
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: 2021-11-03 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -329,7 +329,7 @@ dependencies:
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
331
  description: ManageIQ Appliance Console
332
- email:
332
+ email:
333
333
  executables:
334
334
  - appliance_console
335
335
  - appliance_console_cli
@@ -344,6 +344,7 @@ files:
344
344
  - ".rubocop_cc.yml"
345
345
  - ".rubocop_local.yml"
346
346
  - ".travis.yml"
347
+ - ".whitesource"
347
348
  - ".yamllint"
348
349
  - Gemfile
349
350
  - LICENSE.txt
@@ -394,7 +395,7 @@ homepage: https://github.com/ManageIQ/manageiq-appliance_console
394
395
  licenses:
395
396
  - Apache-2.0
396
397
  metadata: {}
397
- post_install_message:
398
+ post_install_message:
398
399
  rdoc_options: []
399
400
  require_paths:
400
401
  - lib
@@ -409,8 +410,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
409
410
  - !ruby/object:Gem::Version
410
411
  version: '0'
411
412
  requirements: []
412
- rubygems_version: 3.1.6
413
- signing_key:
413
+ rubygems_version: 3.3.5
414
+ signing_key:
414
415
  specification_version: 4
415
416
  summary: ManageIQ Appliance Console
416
417
  test_files: []