Class: XSemVer::Runner

Inherits:
Object
  • Object
show all
Includes:
DSL
Defined in:
lib/runner.rb

Overview

Contains the logic for performing SemVer operations from the command line.

Instance Method Summary collapse

Methods included from DSL

included

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