Class: MediaWikiVagrant::Reload

Inherits:
Object
  • Object
show all
Includes:
PluginEnvironment
Defined in:
lib/mediawiki-vagrant/reload.rb

Instance Method Summary collapse

Methods included from PluginEnvironment

#initialize, #interactive_out?

Instance Method Details

#provisionObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/mediawiki-vagrant/reload.rb', line 7

def provision
  return unless @mwv.reload?
  @mwv.cancel_reload

  @machine.ui.warn 'Reloading vagrant...'

  @machine.action(:reload, {})
  sleep 0.5 until @machine.communicate.ready?

  @machine.ui.success 'Vagrant reloaded.'
end