Class: Dctl::Command::StopCommand
- Inherits:
-
NonRedirectibleCommand
- Object
- CommandParser::Command
- SmartCommand
- NonRedirectibleCommand
- Dctl::Command::StopCommand
- Defined in:
- lib/dctl/command.rb
Instance Method Summary collapse
Methods inherited from NonRedirectibleCommand
Methods inherited from SmartCommand
Constructor Details
This class inherits a constructor from Dctl::Command::NonRedirectibleCommand
Instance Method Details
#description ⇒ Object
68 69 70 |
# File 'lib/dctl/command.rb', line 68 def description 'Stop a daemonized instance of a specified application.' end |
#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 |