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