Class: Contracto::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/contracto/command.rb

Defined Under Namespace

Classes: Init, Start, Stop

Class Method Summary collapse

Class Method Details

.run(command, args) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/contracto/command.rb', line 7

def run(command, args)
  case command
    when 'init'
      Contracto::Command::Init.new(args).execute
    when 'start'
      Contracto::Command::Start.new(args).execute
    when 'stop'
      Contracto::Command::Stop.new(args).execute
  end
end