Class: VagrantAutoDNS::Command::Restart
- Inherits:
-
Object
- Object
- VagrantAutoDNS::Command::Restart
- Defined in:
- lib/vagrant-autodns/commands/restart.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vagrant-autodns/commands/restart.rb', line 13 def execute require_relative '../daemon' opts = OptionParser.new do |optp| optp. = "Usage: vagrant autodns [re]start" end argv = (opts) || return #Takes no arguments raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if (argv.length != 0) VagrantAutoDNS::Daemon.restart 0 end |