Class: VagrantAutoDNS::Action::Start

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/vagrant-autodns/actions/start.rb

Instance Method Summary collapse

Methods included from Common

#call, #hostname, included, #initialize, #machine_name

Instance Method Details

#actionObject



16
17
18
19
20
21
22
# File 'lib/vagrant-autodns/actions/start.rb', line 16

def action
  require_relative '../daemon'
  #Daemon.ensure_running returns nil if already running, skip log message
  if VagrantAutoDNS::Daemon.ensure_running
    log.info('Starting AutoDNS daemon')
  end
end