Module: Tr3llo::Command::Board::Select

Extended by:
Select
Included in:
Select
Defined in:
lib/3llo/command/board/select.rb

Instance Method Summary collapse

Instance Method Details

#execute(board_key) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/3llo/command/board/select.rb', line 7

def execute(board_key)
  board_id = Entities.parse_id(:board, board_key)
  assert_board_id!(board_id, board_key)

  board = API::Board.find(board_id)
  Application.register_board!(board)

  interface = Application.fetch_interface!()

  interface.print_frame do
    interface.puts("Board #{Utils.format_highlight(board.name)} selected")
  end
end