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

Version Path
vagrant-pe_build-0.17.14 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.13 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.12 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.11 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.10 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.9 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.8 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.7 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.6 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.5 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.4 lib/pe_build/action/version_check.rb
vagrant-pe_build-0.17.3 lib/pe_build/action/version_check.rb