Sha256: 825b25a3a94b3c6c9244b828d22c5eaee0234692c03e8de48bf28079b5e3e617

Contents?: true

Size: 459 Bytes

Versions: 10

Compression:

Stored size: 459 Bytes

Contents

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

        def call(env)
          begin
            env.logger.info "Verifying box..."
            VirtualBox::Appliance.new(env["box"].ovf_file)
          rescue Exception
            return env.error!(:box_verification_failed)
          end

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrantup-0.5.4 lib/vagrant/action/box/verify.rb
vagrantup-0.5.3 lib/vagrant/action/box/verify.rb
vagrantup-0.5.2 lib/vagrant/action/box/verify.rb
vagrantup-0.5.1 lib/vagrant/action/box/verify.rb
vagrantup-0.5.0 lib/vagrant/action/box/verify.rb
vagrant-0.5.4 lib/vagrant/action/box/verify.rb
vagrant-0.5.3 lib/vagrant/action/box/verify.rb
vagrant-0.5.2 lib/vagrant/action/box/verify.rb
vagrant-0.5.1 lib/vagrant/action/box/verify.rb
vagrant-0.5.0 lib/vagrant/action/box/verify.rb