Module: Epi::Cli
- Defined in:
- lib/epi/cli.rb,
lib/epi/cli/command.rb,
lib/epi/cli/commands/job.rb,
lib/epi/cli/commands/stop.rb,
lib/epi/cli/commands/start.rb,
lib/epi/cli/commands/config.rb,
lib/epi/cli/commands/daemon.rb,
lib/epi/cli/commands/status.rb,
lib/epi/cli/commands/restart.rb,
lib/epi/cli/commands/concerns/daemon.rb
Defined Under Namespace
Modules: Commands, Concerns Classes: Command
Class Method Summary collapse
Class Method Details
.run(args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/epi/cli.rb', line 8 def run(args) command = args.shift || 'status' # The default command begin Command.run command, args rescue Exceptions::Fatal => error STDERR << error. STDERR << "\n" EventMachine.stop_event_loop end end |