gosddc/vagrant-vcloudair

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

Summary

Maintainability
A
0 mins
Test Coverage
module VagrantPlugins
  module VCloudAir
    module Action
      class MessageWillNotDestroy
        def initialize(app, env)
          @app = app
        end

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