Sha256: 1ac32423b27c2d4d755a41b1f1a729df0f6bd3c44d25b562ff66e71c9cea24e8

Contents?: true

Size: 500 Bytes

Versions: 40

Compression:

Stored size: 500 Bytes

Contents

module Vagrant
  module Action
    module Box
      class Verify
        def initialize(app, env)
          @app = app
          @env = env
        end

        def call(env)
          @env[:ui].info I18n.t("vagrant.actions.box.verify.verifying")

          driver = Driver::VirtualBox.new(nil)
          if !driver.verify_image(env["box_directory"].join("box.ovf").to_s)
            raise Errors::BoxVerificationFailed
          end

          @app.call(env)
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 lib/vagrant/action/box/verify.rb
bmhatfield-vagrant-1.0.9 lib/vagrant/action/box/verify.rb
bmhatfield-vagrant-1.0.8 lib/vagrant/action/box/verify.rb
bmhatfield-vagrant-1.0.7 lib/vagrant/action/box/verify.rb
vagrantup-1.0.7 lib/vagrant/action/box/verify.rb
vagrantup-1.0.6 lib/vagrant/action/box/verify.rb
vagrantup-1.0.5 lib/vagrant/action/box/verify.rb
vagrantup-1.0.4 lib/vagrant/action/box/verify.rb
vagrantup-1.0.3 lib/vagrant/action/box/verify.rb
vagrantup-1.0.2 lib/vagrant/action/box/verify.rb
vagrantup-1.0.1 lib/vagrant/action/box/verify.rb
vagrantup-1.0.0 lib/vagrant/action/box/verify.rb
vagrantup-0.9.99.2 lib/vagrant/action/box/verify.rb
vagrantup-0.9.99.1 lib/vagrant/action/box/verify.rb
vagrantup-0.9.7 lib/vagrant/action/box/verify.rb
vagrantup-0.9.6 lib/vagrant/action/box/verify.rb
vagrantup-0.9.5 lib/vagrant/action/box/verify.rb
vagrantup-0.9.4 lib/vagrant/action/box/verify.rb
vagrantup-0.9.3 lib/vagrant/action/box/verify.rb
vagrantup-0.9.2 lib/vagrant/action/box/verify.rb