Sha256: 554a331d8c849287ac297c348273cbe1f7774dae3c1f8a8426036c1db5f361d5

Contents?: true

Size: 601 Bytes

Versions: 13

Compression:

Stored size: 601 Bytes

Contents

require "log4r"

module VagrantPlugins
  module Skytap
    module Action
      # Runs the Skytap VM.
      class RunVm
        include Vagrant::Util::Retryable

        attr_reader :env

        def initialize(app, env)
          @app = app
          @env = env
          @logger = Log4r::Logger.new("vagrant_skytap::action::run_vm")
        end

        def call(env)
          env[:ui].info(I18n.t("vagrant_skytap.launching_vm"))
          environment.current_vm.run!

          @app.call(env)
        end

        def environment
          env[:environment]
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vagrant-skytap-0.2.3 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.2.2 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.2.1 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.2.0 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.11 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.10 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.9 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.8 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.7 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.6 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.5 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.4 lib/vagrant-skytap/action/run_vm.rb
vagrant-skytap-0.1.3 lib/vagrant-skytap/action/run_vm.rb