Sha256: b5848d5c1e19a896c6622fb3c3179f5760d51814e2da5d3015bbe9db32b361c3

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class Whatsup < ApiCommand
      on('-m', '--my-repos')

      def run
        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

        def recent
          return repos unless my_repos
          repos(:member => user.login)
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
travis-1.4.0 lib/travis/cli/whatsup.rb
travis-1.3.1 lib/travis/cli/whatsup.rb