Class: Dctl::Command::ZapCommand

Inherits:
NonRedirectibleCommand show all
Defined in:
lib/dctl/command.rb

Instance Method Summary collapse

Methods inherited from NonRedirectibleCommand

#initialize

Methods inherited from SmartCommand

#initialize

Constructor Details

This class inherits a constructor from Dctl::Command::NonRedirectibleCommand

Instance Method Details

#descriptionObject



79
80
81
# File 'lib/dctl/command.rb', line 79

def description
  "Manually set a daemonized instance of a specified application to 'stopped' state."
end

#execute(cmd_parser, args) ⇒ Object



83
84
85
86
# File 'lib/dctl/command.rb', line 83

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