Sha256: a094749826c8288ad8702277ea77e7ce5cdd97625705b6ee52b73b1ce3f9e514

Contents?: true

Size: 458 Bytes

Versions: 25

Compression:

Stored size: 458 Bytes

Contents

module VagrantPlugins
  module Parallels
    module Action
      class Resume
        def initialize(app, env)
          @app = app
        end

        def call(env)
          current_state = env[:machine].state.id

          if current_state == :suspended
            env[:ui].info I18n.t("vagrant.actions.vm.resume.resuming")
            env[:machine].provider.driver.resume
          end

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
vagrant-parallels-1.4.2 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.4.1 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.4.0 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.4.0.rc1 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.13 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.12 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.10 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.9 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.8 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.7 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.6 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.5 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.4 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.3 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.3.rc1 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.2 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.1 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.3.0 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.2.2 lib/vagrant-parallels/action/resume.rb
vagrant-parallels-1.2.1 lib/vagrant-parallels/action/resume.rb