Method: Dctl::Command::StopCommand#execute

Defined in:
lib/dctl/command.rb

#execute(cmd_parser, args) ⇒ Object



72
73
74
75
# File 'lib/dctl/command.rb', line 72

def execute(cmd_parser, args)
  cmd = args[0] || raise(OptionParser::MissingArgument)
  Dctl::Daemon.new(cmd, $DIR).stop
end