class ChooseProjectScreen

Public Instance Methods

handle_menu() click to toggle source
# File lib/kale/ui.rb, line 84
def handle_menu
  answer = gets.chomp

  if answer.length == 1
    @@project = Project[:id => answer]
  else
    @@project = Project[:name => answer]
  end

  if @@project
    ShowProjectScreen.new
  else
    system "clear"
    puts "You are a bad typer, or maybe that project does not exist."
    sleep(2)
    ChooseProjectScreen.new
  end
end
info() click to toggle source
# File lib/kale/ui.rb, line 76
def info
  show_projects true
end
menu() click to toggle source