manageiq-appliance_console 5.3.0 → 5.3.1

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: c6ba8e9cdf053c6d1eee9360c074ed3584d54e848d7d60e4f63c77a9d673ad60
4
- data.tar.gz: 1ade599ce3628695ecf5b6a0444195ab3593e5ab539f5c3585f1ceffc9ace600
3
+ metadata.gz: 7c04199e075927842681f7aad9d1cc81fd7be4320e9a30ece2e18bf2c8188567
4
+ data.tar.gz: 207f9b85fbb22c346a531423b36a1d10de707567f1679f829d73ee7f5c3d0068
5
5
  SHA512:
6
- metadata.gz: fd63b37fb4fb850a6b94efe35ebbb4d643992e7a9855fed584fb267b8939c122b93d4488c1b3eb2caaba37e7871e74280c07a4c5944f783a01cf10cb55ffd521
7
- data.tar.gz: 9aa0a97f69f677a8b395c1fbaa724ae136f297f77ec9874ad7ffbbe4239b7d8b4e93bb619f8c43a271e36d0cf89f14cce264ebcb36a5e54cdb1b31f8e9b16cdd
6
+ metadata.gz: b87201ac79bde869f66484e431a75f5f13adefc3bd0a92c76f7b9bef9b0f8bdd2156a78386fd37315754727c578d9583517f2240eabe994df51f54419f64a9a0
7
+ data.tar.gz: c72233eadfb6a07f50ac53df833246d048b1d319afc7a257a1d50c989a94bf92bb570697e5b5d9ba38378af405c7c25fe260c68f0e45d1e72ff00c847c907b28
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
+ source 'http://rubygems.manageiq.org'
1
2
  source 'https://rubygems.org'
2
3
 
3
4
  # Specify your gem's dependencies in manageiq-smartstate.gemspec
@@ -19,8 +19,6 @@ include HighLine::SystemExtensions
19
19
 
20
20
  require 'manageiq/appliance_console/i18n'
21
21
 
22
- SCAP_RULES_DIR = File.expand_path("productization/appliance_console/config", ManageIQ::ApplianceConsole::RAILS_ROOT)
23
-
24
22
  $terminal.wrap_at = 80
25
23
  $terminal.page_at = 35
26
24
 
@@ -280,7 +278,7 @@ Static Network Configuration
280
278
 
281
279
  when 'hostname'
282
280
  say("Hostname Configuration\n\n")
283
- new_host = just_ask("new hostname", host)
281
+ new_host = just_ask("new hostname", host, HOSTNAME_REGEXP, "Please enter a valid hostname")
284
282
 
285
283
  if new_host != host
286
284
  say("Applying new hostname...")
@@ -538,7 +536,7 @@ Static Network Configuration
538
536
 
539
537
  when I18n.t("advanced_settings.scap")
540
538
  say("#{selection}\n\n")
541
- ManageIQ::ApplianceConsole::Scap.new(SCAP_RULES_DIR).lockdown
539
+ ManageIQ::ApplianceConsole::Scap.new.lockdown
542
540
  press_any_key
543
541
 
544
542
  when I18n.t("advanced_settings.summary")
@@ -8,9 +8,6 @@ unless defined?(say)
8
8
  end
9
9
  end
10
10
 
11
- # define SCAP_RULES_DIR for scap fucntionality
12
- SCAP_RULES_DIR = File.expand_path("productization/appliance_console/config", ManageIQ::ApplianceConsole::RAILS_ROOT)
13
-
14
11
  module ManageIQ
15
12
  module ApplianceConsole
16
13
  class CliError < StandardError; end
@@ -355,7 +352,7 @@ module ApplianceConsole
355
352
 
356
353
  def openscap
357
354
  say("Configuring Openscap")
358
- ManageIQ::ApplianceConsole::Scap.new(SCAP_RULES_DIR).lockdown
355
+ ManageIQ::ApplianceConsole::Scap.new.lockdown
359
356
  end
360
357
 
361
358
  def config_tmp_disk
@@ -13,7 +13,7 @@ module ApplianceConsole
13
13
  DOMAIN_REGEXP = /^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*(\.[a-z]{2,13})?$/
14
14
  INT_REGEXP = /^[0-9]+$/
15
15
  NONE_REGEXP = /^('?NONE'?)?$/i.freeze
16
- HOSTNAME_REGEXP = /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/
16
+ HOSTNAME_REGEXP = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/.freeze
17
17
 
18
18
  def ask_for_uri(prompt, expected_scheme, opts = {})
19
19
  require 'uri'
@@ -3,7 +3,9 @@ require 'linux_admin'
3
3
  module ManageIQ
4
4
  module ApplianceConsole
5
5
  class Scap
6
- def initialize(rules_dir)
6
+ RULES_DIR = File.expand_path("productization/appliance_console/config", ManageIQ::ApplianceConsole::RAILS_ROOT).freeze
7
+
8
+ def initialize(rules_dir = RULES_DIR)
7
9
  @rules_dir = rules_dir
8
10
  end
9
11
 
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '5.3.0'.freeze
3
+ VERSION = '5.3.1'.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: 5.3.0
4
+ version: 5.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-12 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -310,7 +310,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  - !ruby/object:Gem::Version
311
311
  version: '0'
312
312
  requirements: []
313
- rubygems_version: 3.0.6
313
+ rubyforge_project:
314
+ rubygems_version: 2.7.6.2
314
315
  signing_key:
315
316
  specification_version: 4
316
317
  summary: ManageIQ Appliance Console