Class: Inquirex::Tools::Commands::VersionsCheck
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Inquirex::Tools::Commands::VersionsCheck
- 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.
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.}" exit 1 end |