Sha256: 3cd565461e445a9962b8967265107edb031837ba4ee6eb43c5918c4db21b4d5a
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
require_relative 'configurator' require_relative 'models/board' require_relative 'board_validator' require_relative 'checkers/context_checker' module ScrumLint class Runner def self.call new.() end def call ScrumLint::Configurator.() ScrumLint::BoardValidator.(board) ScrumLint::ContextChecker.(board) end private def board @board ||= ScrumLint::Board.new(locate_board) end 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 def boards Trello::Board.all end def board_name ScrumLint.config.board_name end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrum_lint-0.0.2 | lib/scrum_lint/runner.rb |
scrum_lint-0.0.1 | lib/scrum_lint/runner.rb |