Class: Dctl::Command::RunCommand

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



90
91
92
# File 'lib/dctl/command.rb', line 90

def description
  'Run a new un-daemonized instance of a specified application.'
end

#execute(cmd_parser, args) ⇒ Object



94
95
96
97
98
# File 'lib/dctl/command.rb', line 94

def execute(cmd_parser, args)
  cmd_args = args.slice! 1, args.length
  cmd = args[0] || raise(OptionParser::MissingArgument)
  Dctl::Daemon.new(cmd, $DIR).run(cmd_args)
end