Class: MediaWikiVagrant::Reload
- Includes:
- PluginEnvironment
- Defined in:
- lib/mediawiki-vagrant/reload.rb
Instance Method Summary collapse
Methods included from PluginEnvironment
#initialize, #interactive_out?
Instance Method Details
#provision ⇒ Object
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 |