frapposelli/vagrant-vcloud

View on GitHub
lib/vagrant-vcloud/action/message_will_not_destroy.rb

Summary

Maintainability
A
0 mins
Test Coverage
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