Class: VagrantLXD::Action::Message
- Inherits:
-
Object
- Object
- VagrantLXD::Action::Message
- Defined in:
- lib/vagrant-lxd/action.rb
Overview
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env, type, message) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(app, env, type, message) ⇒ Message
Returns a new instance of Message.
70 71 72 73 74 |
# File 'lib/vagrant-lxd/action.rb', line 70 def initialize(app, env, type, ) @app = app @type = type = end |
Instance Method Details
#call(env) ⇒ Object
76 77 78 79 |
# File 'lib/vagrant-lxd/action.rb', line 76 def call(env) env[:ui].send(@type, ) @app.call(env) end |