Module: Evoker::VERSION

Defined in:
lib/evoker/version.rb

Constant Summary collapse

MAJOR =
0
MINOR =
0
TINY =
1
STRING =
[MAJOR, MINOR, TINY].join('.')

Class Method Summary collapse

Class Method Details

.require_version(major, minor = 0, tiny = 0) ⇒ Object



8
9
10
11
12
# File 'lib/evoker/version.rb', line 8

def VERSION.require_version(major, minor=0, tiny=0)
  unless ([MAJOR, MINOR, TINY] <=> [major, minor, tiny]) >= 0
    raise Capistrano::Error, "capistrano-offroad version #{MAJOR}.#{MINOR}.#{TINY} is below required #{major}.#{minor}.#{tiny}"
  end
end