manageiq-appliance_console 7.0.0 → 7.0.3

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: 797309808ab952ceb8d17fc6fab131bf79b05f368880f888a01e107e093feca5
4
- data.tar.gz: d4070fb3ca9be9277bb5cafefd6e873431596c034932f903ed33ee49459cbcbb
3
+ metadata.gz: 1b3c172dfc96c2277b77bbfa23a5fe937b6b9243976eadb498494bcdc7f13f0e
4
+ data.tar.gz: bd35b1485091ee2ecbaaa9e19c284cce56f9de56791ecc38e6d079e2efba0026
5
5
  SHA512:
6
- metadata.gz: 76b149807bed8d49aa84ca00b422b7d57ad4db10df43b50e83a768f32a7d826d751d25d8f56fb670a775589d8848524f10cac696f4d46a3039900fe11f3e8cb9
7
- data.tar.gz: 97439d9affd187790f55f0340b0750f975acff4d69306097869f67f98b5e60ddaccaf3bce429382fa9d5e54819474ef5f17f7c609cca4dc1d43731a71d406bdf
6
+ metadata.gz: 26750dd440a5f6155e224195ec9725642d555c4086d1f05779dd75a49477d50454bd1f54e58bc951718e63a820ebe77f310beea60705eba66d5f3887fbf37689
7
+ data.tar.gz: 3d239c39f695539198de07539ee366060475a2efa285fdd6e5085345f36a1ef9a35cbd0fef021be784bbaadc7c94b74c7c39d7b15c4b8994e7a78dd08061fd25
data/.travis.yml CHANGED
@@ -19,3 +19,4 @@ notifications:
19
19
  on_success: change
20
20
  on_failure: always
21
21
  on_start: never
22
+ dist: bionic
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # ManageIQ::ApplianceConsole
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/manageiq-appliance_console.svg)](http://badge.fury.io/rb/manageiq-appliance_console)
4
- [![Build Status](https://travis-ci.com/ManageIQ/manageiq-appliance_console.svg?branch=master)](https://travis-ci.com/ManageIQ/manageiq-appliance_console)
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"
@@ -27,8 +27,13 @@ module ApplianceConsole
27
27
  end
28
28
 
29
29
  def self.db_connections
30
+ code = [
31
+ "database ||= ActiveRecord::Base.configurations[Rails.env]['database']",
32
+ "conn = ActiveRecord::Base.connection",
33
+ "exit conn.client_connections.count { |c| c['database'] == database }"
34
+ ]
30
35
  result = AwesomeSpawn.run("bin/rails runner",
31
- :params => ["exit EvmDatabaseOps.database_connections"],
36
+ :params => [code.join("; ")],
32
37
  :chdir => ManageIQ::ApplianceConsole::RAILS_ROOT
33
38
  )
34
39
  Integer(result.exit_status)
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '7.0.0'.freeze
3
+ VERSION = '7.0.3'.freeze
4
4
  end
5
5
  end
@@ -20,15 +20,15 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_runtime_dependency "activerecord", "~> 6.0.3.5"
24
- spec.add_runtime_dependency "activesupport", "~> 6.0.3.5"
23
+ spec.add_runtime_dependency "activerecord", "~> 6.0.4", ">= 6.0.4.1"
24
+ spec.add_runtime_dependency "activesupport", "~> 6.0.4", ">= 6.0.4.1"
25
25
  spec.add_runtime_dependency "awesome_spawn", "~> 1.4"
26
26
  spec.add_runtime_dependency "bcrypt", "~> 3.1.10"
27
27
  spec.add_runtime_dependency "bcrypt_pbkdf", ">= 1.0", "< 2.0"
28
28
  spec.add_runtime_dependency "highline", "~> 1.6.21"
29
29
  spec.add_runtime_dependency "i18n", "~> 0.8"
30
30
  spec.add_runtime_dependency "linux_admin", "~> 2.0"
31
- spec.add_runtime_dependency "manageiq-password", "~> 0.3"
31
+ spec.add_runtime_dependency "manageiq-password", "< 2"
32
32
  spec.add_runtime_dependency "net-scp", "~> 1.2.1"
33
33
  spec.add_runtime_dependency "optimist", "~> 3.0"
34
34
  spec.add_runtime_dependency "pg"
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.0
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-08-04 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
@@ -16,28 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.3.5
19
+ version: 6.0.4
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
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:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: 6.0.3.5
29
+ version: 6.0.4
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
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:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: 6.0.3.5
39
+ version: 6.0.4
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
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:
38
47
  - - "~>"
39
48
  - !ruby/object:Gem::Version
40
- version: 6.0.3.5
49
+ version: 6.0.4
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 6.0.4.1
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: awesome_spawn
43
55
  requirement: !ruby/object:Gem::Requirement
@@ -132,16 +144,16 @@ dependencies:
132
144
  name: manageiq-password
133
145
  requirement: !ruby/object:Gem::Requirement
134
146
  requirements:
135
- - - "~>"
147
+ - - "<"
136
148
  - !ruby/object:Gem::Version
137
- version: '0.3'
149
+ version: '2'
138
150
  type: :runtime
139
151
  prerelease: false
140
152
  version_requirements: !ruby/object:Gem::Requirement
141
153
  requirements:
142
- - - "~>"
154
+ - - "<"
143
155
  - !ruby/object:Gem::Version
144
- version: '0.3'
156
+ version: '2'
145
157
  - !ruby/object:Gem::Dependency
146
158
  name: net-scp
147
159
  requirement: !ruby/object:Gem::Requirement
@@ -317,7 +329,7 @@ dependencies:
317
329
  - !ruby/object:Gem::Version
318
330
  version: '0'
319
331
  description: ManageIQ Appliance Console
320
- email:
332
+ email:
321
333
  executables:
322
334
  - appliance_console
323
335
  - appliance_console_cli
@@ -332,6 +344,7 @@ files:
332
344
  - ".rubocop_cc.yml"
333
345
  - ".rubocop_local.yml"
334
346
  - ".travis.yml"
347
+ - ".whitesource"
335
348
  - ".yamllint"
336
349
  - Gemfile
337
350
  - LICENSE.txt
@@ -382,7 +395,7 @@ homepage: https://github.com/ManageIQ/manageiq-appliance_console
382
395
  licenses:
383
396
  - Apache-2.0
384
397
  metadata: {}
385
- post_install_message:
398
+ post_install_message:
386
399
  rdoc_options: []
387
400
  require_paths:
388
401
  - lib
@@ -397,8 +410,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
397
410
  - !ruby/object:Gem::Version
398
411
  version: '0'
399
412
  requirements: []
400
- rubygems_version: 3.2.17
401
- signing_key:
413
+ rubygems_version: 3.3.5
414
+ signing_key:
402
415
  specification_version: 4
403
416
  summary: ManageIQ Appliance Console
404
417
  test_files: []