Class: Inquirex::Tools::Commands::VersionsCheck

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/inquirex/tools/commands/versions_check.rb

Overview

inquirex versions-check — reports the family's lockstep version.

Plural on purpose: inquirex version prints this tool's own version, inquirex versions-check reports the family's. Read-only; the write counterpart is inquirex versions-bump.

Instance Method Summary collapse

Instance Method Details

#call(preflight: false) ⇒ void

This method returns an undefined value.

Parameters:

  • preflight (Boolean) (defaults to: false)

    also report git release readiness



26
27
28
29
30
31
32
# File 'lib/inquirex/tools/commands/versions_check.rb', line 26

def call(preflight: false, **)
  checker = Inquirex::Tools::VersionChecker.new
  exit(1) unless preflight ? checker.preflight : checker.call
rescue Inquirex::Tools::Error => e
  warn "ERROR: #{e.message}"
  exit 1
end