8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/travis/cli/accounts.rb', line 8
def run
authenticate
accounts.each do |account|
color = account.on_trial? ? :info : :green
say [
color(account.login, [color, :bold]),
color("(#{account.name || account.login.capitalize}):", color),
"#{description(account)},",
account.repos_count == 1 ? "1 repository" : "#{account.repos_count} repositories"
].join(" ")
end
unless accounts.none?(&:on_trial?) or session.config['host'].nil?
say session.config['host'], "To set up a subscription, please visit %s."
end
end
|