Class: VagrantPlugins::Rimu::Actions::MessageWillNotStop

Inherits:
AbstractAction
  • Object
show all
Defined in:
lib/vagrant-rimu/actions/message_will_not_stop.rb

Instance Method Summary collapse

Methods inherited from AbstractAction

#call

Constructor Details

#initialize(app, env) ⇒ MessageWillNotStop

Returns a new instance of MessageWillNotStop.



7
8
9
10
# File 'lib/vagrant-rimu/actions/message_will_not_stop.rb', line 7

def initialize(app, env)
  @app = app
  @machine = env[:machine]
end

Instance Method Details

#execute(env) ⇒ Object



12
13
14
15
# File 'lib/vagrant-rimu/actions/message_will_not_stop.rb', line 12

def execute(env)
  env[:ui].info(I18n.t('vagrant_rimu.will_not_stop', {:name => @machine.name}))
  @app.call(env)
end