Module: CapistranoOffroad::VERSION

Defined in:
lib/capistrano-offroad/version.rb

Constant Summary collapse

MAJOR =
0
MINOR =
1
TINY =
3
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/capistrano-offroad/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