Sha256: 72d68ac6af348e361829ffd2dd9596bba22cf05d469e5fec6e7d47d6646dad7b

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 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

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-vcenter-0.3.3 lib/vagrant-vcenter/action/message_cannot_suspend.rb