Sha256: 807f409652f5e374f65d7d674111368ce5540b55a9089541ccc1c0b905e80b65
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
require 'travis/cli' module Travis module CLI class Accounts < ApiCommand def run authenticate accounts.each do |account| color = account.subscribed? ? :green : :info say [ color(account.login, [color, :bold]), color("(#{account.name}):", color), account.subscribed? ? "subscribed," : "not subscribed,", account.repos_count == 1 ? "1 repository" : "#{account.repos_count} repositories" ].join(" ") end say session.config['host'], "To set up a subscription, please visit %s." unless accounts.all?(&:subscribed?) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
travis-1.5.2 | lib/travis/cli/accounts.rb |
travis-1.5.1 | lib/travis/cli/accounts.rb |
travis-1.5.0 | lib/travis/cli/accounts.rb |