Class: VagrantPlugins::Deltacloud::Action::Message

Inherits:
AbstractAction show all
Defined in:
lib/vagrant-deltacloud-provider/action/message.rb

Instance Method Summary collapse

Methods inherited from AbstractAction

#call

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, message)
  @app = app
  @message = 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