Sha256: 05dcb4941a8cea84b5ef73acefff014d8d977a778a922ee9a90722bb11d3c6e0

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

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

        def call(env)
          # FIXME: This error should be categorized
          env[:ui].info(I18n.t("vagrant_vcloud.will_not_destroy", name: env[:machine].name))
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-vcloud-0.1.2 lib/vagrant-vcloud/action/message_will_not_destroy.rb
vagrant-vcloud-0.1.1 lib/vagrant-vcloud/action/message_will_not_destroy.rb
vagrant-vcloud-0.1.0 lib/vagrant-vcloud/action/message_will_not_destroy.rb