class Travis::CLI::Whatsup
Public Instance Methods
run()
click to toggle source
# File lib/travis/cli/whatsup.rb, line 9 def run say "nothing to show" if recent.empty? recent.each do |repo| say [ color(repo.slug, [:bold, repo.color]), color("#{repo.last_build.state}: ##{repo.last_build.number}", repo.color) ].join(" ") end end
Private Instance Methods
recent()
click to toggle source
# File lib/travis/cli/whatsup.rb, line 22 def recent @recent ||= begin recent = my_repos ? repos : repos(:member => user.login) recent.select { |repo| repo.last_build } end end