Module: Jura::Command::Board
- Defined in:
- lib/jura/command/board.rb,
lib/jura/command/board/select.rb
Defined Under Namespace
Classes: RequiredBoardIdError, Select
Class Method Summary collapse
Class Method Details
.execute!(sub_cmd, args) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jura/command/board.rb', line 10 def self.execute!(sub_cmd, args) case sub_cmd when "list" boards = Api::Board.all puts Component::Board.render(boards) when "select" Command::Board::Select.execute else Command::Invalid.execute("Command not found: #{sub_cmd.inspect}. Run #{"help".inspect} for more informations") end end |