Sha256: 71850e6bdad93b70155163c4cc7527d35e2ef6dacdb05c13da867afe3ab6e649
Contents?: true
Size: 535 Bytes
Versions: 12
Compression:
Stored size: 535 Bytes
Contents
require 'vagrant/version' require 'rubygems/version' # Check for deprecated Vagrant versions class PEBuild::Action::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( 'pebuild.action.version_check.deprecated_vagrant_version', minimum_version: MINIMUM_VERSION, vagrant_version: Vagrant::VERSION ) end @app.call(env) end end
Version data entries
12 entries across 12 versions & 1 rubygems