Class: VagrantPlugins::Deltacloud::Action::Message
- Inherits:
-
AbstractAction
- Object
- AbstractAction
- VagrantPlugins::Deltacloud::Action::Message
- Defined in:
- lib/vagrant-deltacloud-provider/action/message.rb
Instance Method Summary collapse
- #execute(env) ⇒ Object
-
#initialize(app, _env, message) ⇒ Message
constructor
A new instance of Message.
Methods inherited from AbstractAction
Constructor Details
#initialize(app, _env, message) ⇒ Message
Returns a new instance of Message.
7 8 9 10 |
# File 'lib/vagrant-deltacloud-provider/action/message.rb', line 7 def initialize(app, _env, ) @app = app @message = end |
Instance Method Details
#execute(env) ⇒ Object
12 13 14 15 |
# File 'lib/vagrant-deltacloud-provider/action/message.rb', line 12 def execute(env) env[:ui].info(@message) @app.call(env) end |