Class: PlatinaWorld::Command
- Inherits:
-
Object
- Object
- PlatinaWorld::Command
- Defined in:
- lib/platina_world/command.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(argv = ARGV) ⇒ Command
constructor
A new instance of Command.
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
#call ⇒ Object
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 |