Sha256: 7100f0f879683d3d8b9943ecd82441a898a90316291f49f68508f19bc7340666

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

module VagrantPlugins
  module Packet
    module Action
      class MessageWillNotDestroy
        def initialize(app, _env)
          @app = app
        end

        def call(env)
          env[:ui].info(I18n.t('vagrant_packet.will_not_destroy', name: env[:machine].name))
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vagrant-packet-0.1.6 lib/vagrant-packet/action/message_will_not_destroy.rb
vagrant-packet-0.1.5 lib/vagrant-packet/action/message_will_not_destroy.rb
vagrant-packet-0.1.4 lib/vagrant-packet/action/message_will_not_destroy.rb
vagrant-packet-0.1.3 lib/vagrant-packet/action/message_will_not_destroy.rb
vagrant-packet-0.1.2 lib/vagrant-packet/action/message_will_not_destroy.rb
vagrant-packet-0.1.1 lib/vagrant-packet/action/message_will_not_destroy.rb