Class: Jobly::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/jobly/cli.rb

Overview

Command line interface router. This is called by bin/jobly.

Class Method Summary collapse

Class Method Details

.routerObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/jobly/cli.rb', line 9

def self.router
  router = MisterBin::Runner.new version: Jobly::VERSION,
    header: 'Jobly',
    footer: 'Run m`jobly COMMAND --help` for more information'

  router.route 'init',      to: Commands::InitCmd
  router.route 'server',    to: Commands::ServerCmd
  router.route 'worker',    to: Commands::WorkerCmd
  router.route 'send',      to: Commands::SendCmd
  router.route 'run',       to: Commands::RunCmd
  router.route 'config',    to: Commands::ConfigCmd
  router.route 'info',      to: Commands::InfoCmd

  router
end