Sha256: 25b760528c55fd4155e70bfbad1ddecefa38b23e32e9d77f67a4c3f2bfc193c7
Contents?: true
Size: 552 Bytes
Versions: 3
Compression:
Stored size: 552 Bytes
Contents
module Capistrano class VersionValidator def initialize(version) @version = version end def verify if match? self else raise "Capfile locked at #{version}, but #{current_version} is loaded" end end private attr_reader :version def match? available =~ requested end def current_version VERSION end def available Gem::Dependency.new("cap", version) end def requested Gem::Dependency.new("cap", current_version) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capistrano-3.6.1 | lib/capistrano/version_validator.rb |
capistrano-3.6.0 | lib/capistrano/version_validator.rb |
capistrano-3.5.0 | lib/capistrano/version_validator.rb |