Sha256: 164b8799712d16864eda070d670120fb3ab3b5aaa24c1448837baf7f5e3bd9a8
Contents?: true
Size: 533 Bytes
Versions: 7
Compression:
Stored size: 533 Bytes
Contents
module Cp8Cli class LocalConfig PATH = ".trello_flow" def initialize(store = nil) @store = store || ConfigStore.new(PATH) end def board @_board ||= Trello::Board.find(board_id) end private attr_reader :store def board_id @_board_id ||= store[:board_id] || configure_board_id end def configure_board_id store.save :board_id, Table.pick(trello_user.boards.active).id end def trello_user Trello::Member.current end end end
Version data entries
7 entries across 7 versions & 1 rubygems