Class: PlatinaWorld::Command

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

Instance Method Summary collapse

Constructor Details

#initialize(argv = ARGV) ⇒ Command

Returns a new instance of Command.



9
10
11
# File 'lib/platina_world/command.rb', line 9

def initialize(argv = ARGV)
  @argv = argv
end

Instance Method Details

#callObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/platina_world/command.rb', line 13

def call
  case
  when list?
    template_manager.all
  when setup?
    template_manager.setup
  else
    runner.run
  end
end