Sha256: 053a9f462b5a5a2c91a3458918ee430f783e4c707750f7745c652d6070f2de17

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

module VagrantPlugins
  module Cosmic
    module Action
      class MessageWillNotDestroy
        def initialize(app, env)
          @app = app
        end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-cosmic-0.2.0 lib/vagrant-cosmic/action/message_will_not_destroy.rb
vagrant-cosmic-0.1.0 lib/vagrant-cosmic/action/message_will_not_destroy.rb