Class: Inquirex::Tools::Commands::VersionsBump

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

Overview

inquirex versions-bump — moves every lockstep package to one version.

The write counterpart of inquirex versions-check. Separate commands rather than one command with a --set flag, so nothing that writes can be reached by accident from a command meant to report.

Instance Method Summary collapse

Instance Method Details

#call(version: nil) ⇒ void

This method returns an undefined value.

Parameters:

  • version (String, nil) (defaults to: nil)

    target version



25
26
27
28
29
30
# File 'lib/inquirex/tools/commands/versions_bump.rb', line 25

def call(version: nil, **)
  exit(1) unless Inquirex::Tools::VersionBumper.new.call(version)
rescue Inquirex::Tools::Error => e
  warn "ERROR: #{e.message}"
  exit 1
end