Module: ReleaseCeremony::Command

Included in:
Prepare, Publish
Defined in:
lib/release_ceremony/command.rb

Overview

Shared entry point behaviour for the ceremony commands: --help handling and strict VERSION argument parsing.

Instance Method Summary collapse

Instance Method Details

#run(arguments, runner: Runner.new, **options) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/release_ceremony/command.rb', line 7

def run(arguments, runner: Runner.new, **options)
  if arguments == ['--help']
    runner.puts(self::HELP)
    return true
  end

  new(version: parse_version(arguments), runner: runner, **options).call
end