Sha256: 53dbd97b28c589896ed4f38242c6b43d6606c42da7266a31f5102d24243bf08a
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
require 'vagrant/version' require 'rubygems/version' # Check for deprecated Vagrant versions module AutoNetwork module Action class VersionCheck MINIMUM_VERSION = '1.8.0' def initialize(app, env) @app = app end def call(env) unless Gem::Version.new(Vagrant::VERSION) > Gem::Version.new(MINIMUM_VERSION) env[:env].ui.warn I18n.t( 'vagrant_auto_network.action.version_check.deprecated_vagrant_version', minimum_version: MINIMUM_VERSION, vagrant_version: Vagrant::VERSION ) end @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-auto_network-1.0.3 | lib/auto_network/action/version_check.rb |