Sha256: 1f8c9cd48f987140911750d7510b7fdd33540264987c61320e826f275a3ee6d2

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

module Vagrant
  module Backports
    module Action
      # This middleware simply outputs a message to the UI.
      class Message
        def initialize(app, env, message, **opts)
          @app     = app
          @message = message
        end

        def call(env)
          env[:ui].info(@message)
          @app.call(env)
        end
      end
    end
  end
end

Vagrant::Action::Builtin.const_set :Message, Vagrant::Backports::Action::Message

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-lxc-1.0.1 lib/vagrant-backports/action/message.rb
vagrant-lxc-1.0.0 lib/vagrant-backports/action/message.rb
vagrant-lxc-1.0.0.alpha.3 lib/vagrant-backports/action/message.rb
vagrant-lxc-1.0.0.alpha.2 lib/vagrant-backports/action/message.rb
vagrant-lxc-1.0.0.alpha.1 lib/vagrant-backports/action/message.rb