Class: VagrantAutoDNS::Action::Teardown
- Inherits:
-
Object
- Object
- VagrantAutoDNS::Action::Teardown
- Includes:
- Common
- Defined in:
- lib/vagrant-autodns/actions/teardown.rb
Instance Method Summary collapse
Methods included from Common
#call, #hostname, included, #initialize, #machine_name
Instance Method Details
#action ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/vagrant-autodns/actions/teardown.rb', line 16 def action require_relative '../daemon' if VagrantAutoDNS.autodnsdb.dependent_vms.empty? and VagrantAutoDNS::Daemon.running? log.info('Stopping AutoDNS Daemon') VagrantAutoDNS::Daemon.stop end end |