Sha256: 1ca0961023f280e1768f83a16b7284a607efce0a31a179beeb49fe06739abb1e

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

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