Class: VagrantAutoDNS::Command::Reload

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-autodns/commands/reload_all.rb

Instance Method Summary collapse

Instance Method Details

#executeObject

Raises:

  • (Vagrant::Errors::CLIInvalidUsage)


13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/vagrant-autodns/commands/reload_all.rb', line 13

def execute
  require_relative '../daemon'

  opts = OptionParser.new do |optp|
    optp.banner = "Usage: vagrant autodns [re]start"
  end
  argv = parse_options(opts) || return
  #Takes no arguments
  raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if (argv.length != 0)

  #TODO: Fixme
  0
end