Sha256: bb629e92b3aad995784bc69f8988015d392fd893b96b0207cc469d572a94e2fc

Contents?: true

Size: 517 Bytes

Versions: 69

Compression:

Stored size: 517 Bytes

Contents

module VagrantPlugins
  module ProviderVirtualBox
    module Action
      class Boot
        def initialize(app, env)
          @app = app
        end

        def call(env)
          @env = env

          boot_mode = @env[:machine].provider_config.gui ? "gui" : "headless"

          # Start up the VM and wait for it to boot.
          env[:ui].info I18n.t("vagrant.actions.vm.boot.booting")
          env[:machine].provider.driver.start(boot_mode)

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

Version data entries

69 entries across 62 versions & 9 rubygems

Version Path
vagrant-unbundled-1.8.1.2 plugins/providers/virtualbox/action/boot.rb
vagrant-unbundled-1.8.1.1 plugins/providers/virtualbox/action/boot.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/providers/virtualbox/action/boot.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/providers/virtualbox/action/boot.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/providers/virtualbox/action/boot.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/providers/virtualbox/action/boot.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/providers/virtualbox/action/boot.rb
tnargav-1.3.6 plugins/providers/virtualbox/action/boot.rb
tnargav-1.3.3 plugins/providers/virtualbox/action/boot.rb