Class: Kettle::Family::CLI::Bump

Inherits:
BaseCommand
  • Object
show all
Includes:
CommitOptions, ExecutionOptions
Defined in:
lib/kettle/family/cli.rb

Direct Known Subclasses

BumpVersion

Instance Method Summary collapse

Methods included from CommitOptions

included

Methods included from ExecutionOptions

included

Methods inherited from BaseCommand

#initialize

Methods included from SelectionOptions

included

Methods included from SharedOptions

included

Methods included from ReturningMain

#main

Constructor Details

This class inherits a constructor from Kettle::Family::CLI::BaseCommand

Instance Method Details

#run(target_version = nil) ⇒ Object

Raises:



371
372
373
374
375
# File 'lib/kettle/family/cli.rb', line 371

def run(target_version = nil)
  raise Error, "#{workflow_command_name} requires VERSION, major, minor, patch, or pre" unless target_version

  run_family(workflow_command_name, target_version: target_version, from_version: options[:from])
end