Module: ReleaseCeremony::Command
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, **) if arguments == ['--help'] runner.puts(self::HELP) return true end new(version: parse_version(arguments), runner: runner, **).call end |