kafo 7.4.0 → 7.5.0

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: 2d04f6f1cc8a7839323067b6cf40b090fe57a19674c73aa9571e95e8f93521d3
4
- data.tar.gz: d0274c02639fe01e19aa6ef79fcd5e86cd29f45b8b8f28461c59a192559a21b1
3
+ metadata.gz: 91ef4a820b10df46e9932cd8bea2648b3794943898c89072ecd27aaef1dda6e0
4
+ data.tar.gz: cd59dcdc373d221140fefa6bccbc6e163d52f103ec60f11c1b87fdb98b7ee26d
5
5
  SHA512:
6
- metadata.gz: df7b79c1ab6245d04018b0890ea04db6e6e6585fd05ca75ac6782d81b35078b3e0043c60ab86a4072f727440b904ca706e2daf2083858b50fa3eb1e2c4956acf
7
- data.tar.gz: 8b2fcefa6a4bf7789b4fcd081a10630ace85c2901f94e9f2dd7778f7e32c45273d195383e387e57ff36f83dcfe0176d7d263adb02693937f1319da7bd9ac3c8b
6
+ metadata.gz: 1e6687473d85f8fbbf4581f91863440ccdcde7ea6232ef82d54707adf83adaab130386d3c2fbde2729b9c1578fdeb32cbeb61a76a0a9f2ffaa1ff415b2e9d450
7
+ data.tar.gz: c6964bcaa58287b6490705e5905633e0d0dd7a26c83ef88e2fb45f8dfd02cc4d97b0b5d50590671246c4ee07822a522ac053473c87ac575b5c611aaf365ee371
@@ -193,13 +193,18 @@ module Kafo
193
193
  @progress_bar = config.app[:colors] ? ProgressBars::Colored.new : ProgressBars::BlackWhite.new
194
194
  end
195
195
 
196
- unless skip_checks_i_know_better?
197
- unless SystemChecker.check
198
- puts "Your system does not meet configuration criteria"
196
+ if checks_only? || !skip_checks_i_know_better?
197
+ logger = Logger.new('checks')
198
+ if SystemChecker.check
199
+ logger.notice("System checks passed")
200
+ else
201
+ logger.error("Your system does not meet configuration criteria")
199
202
  self.class.exit(:invalid_system)
200
203
  end
201
204
  end
202
205
 
206
+ self.class.exit(0) if checks_only?
207
+
203
208
  self.class.hooking.execute(:pre_validations)
204
209
  if interactive?
205
210
  wizard = Wizard.new(self)
@@ -363,6 +368,8 @@ module Kafo
363
368
  :default => false, :advanced => true
364
369
  app_option ['-s', '--skip-checks-i-know-better'], :flag, 'Skip all system checks',
365
370
  :default => false
371
+ app_option ['--checks-only'], :flag, 'Run only system checks and exit',
372
+ :default => false
366
373
  app_option ['--skip-puppet-version-check'], :flag, 'Skip check for compatible Puppet versions',
367
374
  :default => false, :advanced => true
368
375
  app_option ['-v', '--[no-]verbose'], :flag, 'Display log on STDOUT instead of progressbar',
data/lib/kafo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
3
  PARSER_CACHE_VERSION = 1
4
- VERSION = "7.4.0"
4
+ VERSION = "7.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.0
4
+ version: 7.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-19 00:00:00.000000000 Z
11
+ date: 2024-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler