class ScrumLint::Runner
Public Class Methods
call()
click to toggle source
# File lib/scrum_lint/runner.rb, line 9 def self.call new.() end
Public Instance Methods
call()
click to toggle source
# File lib/scrum_lint/runner.rb, line 13 def call ScrumLint::Configurator.() ScrumLint::BoardValidator.(board) ScrumLint::ContextChecker.(board) end
Private Instance Methods
board()
click to toggle source
# File lib/scrum_lint/runner.rb, line 21 def board @board ||= ScrumLint::Board.new(locate_board) end
board_name()
click to toggle source
# File lib/scrum_lint/runner.rb, line 35 def board_name ScrumLint.config.board_name end
boards()
click to toggle source
# File lib/scrum_lint/runner.rb, line 31 def boards Trello::Board.all end
locate_board()
click to toggle source
# File lib/scrum_lint/runner.rb, line 25 def locate_board matching_boards = boards.select { |board| board.name == board_name } fail 'multiple boards match' if matching_boards.size > 1 matching_boards.first end