Sha256: cb0a78865eea647ef5e0a11fd6e6e5c9ee9dee911ed43871dd1e7f169724e3b8

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

module VagrantPlugins
  module VCenter
    module Action
      # Prints out a message that the VM will not be destroyed.
      class MessageWillNotDestroy
        def initialize(app, env)
          @app = app
        end

        def call(env)
          env[:ui].info(I18n.t('vagrant_vcenter.power.will_not_destroy',
                               name: env[:machine].name))
          @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_will_not_destroy.rb
vagrant-vcenter-0.3.1 lib/vagrant-vcenter/action/message_will_not_destroy.rb
vagrant-vcenter-0.3.0 lib/vagrant-vcenter/action/message_will_not_destroy.rb
vagrant-vcenter-0.2.1 lib/vagrant-vcenter/action/message_will_not_destroy.rb
vagrant-vcenter-0.2.0 lib/vagrant-vcenter/action/message_will_not_destroy.rb
vagrant-vcenter-0.1.1 lib/vagrant-vcenter/action/message_will_not_destroy.rb
vagrant-vcenter-0.1.0 lib/vagrant-vcenter/action/message_will_not_destroy.rb
vagrant-vcenter-0.0.2.pre.dev lib/vagrant-vcenter/action/message_will_not_destroy.rb