Sha256: 719f3f928bf40a6ebdd84088e929258d90ce16b235b1359784e2674707e33434
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
require 'vagrant/version' require 'rubygems/version' # Check for deprecated Vagrant versions module ConfigBuilder 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( 'config_builder.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-config_builder-1.3.0 | lib/config_builder/action/version_check.rb |