class Startling::Commands::CheckWip
Public Instance Methods
execute()
click to toggle source
# File lib/startling/commands/check_wip.rb, line 12 def execute logger.info "Checking WIP..." wip = Work.in_progress if wip.count >= Startling.wip_limit WorkPrinter.new.print wip puts question = [ "Would you like to start anyway (", 'anything but "yes" will abort'.underline, ")? " ].map { |string| string.yellow }.join confirm = ask(question) exit unless confirm == "yes" end end