Class: XSemVer::Runner
Overview
Contains the logic for performing SemVer operations from the command line.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Runner
constructor
Run a semver command.
Methods included from DSL
Constructor Details
#initialize(*args) ⇒ Runner
Run a semver command. Raise a CommandError if the command does not exist. Expects an array of commands, such as ARGV.
13 14 15 16 |
# File 'lib/runner.rb', line 13 def initialize(*args) @args = args run_command(@args.shift || :tag) end |