Sha256: 458497cc95aab269d3238a6455be5697e13d13bc361823413fbc9974002d2554

Contents?: true

Size: 442 Bytes

Versions: 8

Compression:

Stored size: 442 Bytes

Contents

module VagrantPlugins
  module VCenter
    module Action
      # Prints out a message that the VM is already halted and cannot be
      # suspended
      class MessageCannotSuspend
        def initialize(app, env)
          @app = app
        end

        def call(env)
          env[:ui].info(I18n.t(
                        'vagrant_vcenter.power.vm_halted_cannot_suspend'))
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vagrant-vcenter-0.3.2 lib/vagrant-vcenter/action/message_cannot_suspend.rb
vagrant-vcenter-0.3.1 lib/vagrant-vcenter/action/message_cannot_suspend.rb
vagrant-vcenter-0.3.0 lib/vagrant-vcenter/action/message_cannot_suspend.rb
vagrant-vcenter-0.2.1 lib/vagrant-vcenter/action/message_cannot_suspend.rb
vagrant-vcenter-0.2.0 lib/vagrant-vcenter/action/message_cannot_suspend.rb
vagrant-vcenter-0.1.1 lib/vagrant-vcenter/action/message_cannot_suspend.rb
vagrant-vcenter-0.1.0 lib/vagrant-vcenter/action/message_cannot_suspend.rb
vagrant-vcenter-0.0.2.pre.dev lib/vagrant-vcenter/action/message_cannot_suspend.rb