class VagrantPlugins::DockerProvider::Action::Message
XXX: Is this really needed? Should we contribute this back to Vagrant’s core?
Public Class Methods
new(app, env, msg_key, type = :info)
click to toggle source
# File lib/docker-provider/action/message.rb, line 6 def initialize(app, env, msg_key, type = :info) @app = app @msg_key = msg_key @type = type end
Public Instance Methods
call(env)
click to toggle source
# File lib/docker-provider/action/message.rb, line 12 def call(env) machine = env[:machine] message = I18n.t("docker_provider.messages.#{@msg_key}", name: machine.name) env[:ui].send @type, message @app.call env end