Sha256: 91938db8358c89b5c6507ee0e793e151d789b65fd435c3ba5ae7d626b0ece1ed
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 Bytes
Contents
require 'vagrant/version' require 'rubygems/version' # Check for deprecated Vagrant versions module VagrantHosts::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_hosts.action.version_check.deprecated_vagrant_version', minimum_version: MINIMUM_VERSION, vagrant_version: Vagrant::VERSION ) end @app.call(env) end end end
Version data entries
4 entries across 4 versions & 1 rubygems