class Kurgan::List

Public Instance Methods

display() click to toggle source
# File lib/kurgan/list.rb, line 17
def display
  puts Terminal::Table.new( 
    :headings => ['Component', 'Git URL', 'Last Updated'], 
    :rows => @hl_repos.sort
  )
end
get_repos() click to toggle source
# File lib/kurgan/list.rb, line 9
def get_repos
  repos = Kurgan::GitHub.get_repos()
  if repos.nil?
    abort "Error: Somthing went wrong with connecting to the github api"
  end
  @hl_repos = repos.map {|repo| [repo[:name], repo[:url], repo[:updated_at]]}
end