class Travis::CLI::Branches
Public Instance Methods
run()
click to toggle source
# File lib/travis/cli/branches.rb, line 8 def run repository.last_on_branch.each do |build| say [ color("#{build.branch_info}:".ljust(longest + 2), [:info, :bold]), color("##{build.number.to_s.ljust(4)} #{build.state}".ljust(16), build.color), build.commit.subject ].join(" ").strip + "\n" end end
Private Instance Methods
longest()
click to toggle source
# File lib/travis/cli/branches.rb, line 20 def longest repository.branches.keys.map { |b| b.size }.max end