Sha256: 73b7ef4f7db628fcbabad79b3ac512e0790bd2e24c5a6182dbb625c30d770226

Contents?: true

Size: 575 Bytes

Versions: 215

Compression:

Stored size: 575 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class Whatsup < ApiCommand
      description "lists most recent builds"
      on('-m', '--my-repos', 'Only display my own repositories')

      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

215 entries across 215 versions & 1 rubygems

Version Path
travis-1.6.6.travis.419.4 lib/travis/cli/whatsup.rb
travis-1.6.6.travis.417.4 lib/travis/cli/whatsup.rb
travis-1.6.5 lib/travis/cli/whatsup.rb
travis-1.6.4.travis.414.4 lib/travis/cli/whatsup.rb
travis-1.6.4.travis.413.4 lib/travis/cli/whatsup.rb
travis-1.6.4.travis.410.4 lib/travis/cli/whatsup.rb
travis-1.6.4.travis.411.4 lib/travis/cli/whatsup.rb
travis-1.6.4.travis.406.4 lib/travis/cli/whatsup.rb
travis-1.6.4.travis.405.4 lib/travis/cli/whatsup.rb
travis-1.6.4.travis.395.4 lib/travis/cli/whatsup.rb
travis-1.6.3 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.394.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.392.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.390.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.389.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.388.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.387.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.386.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.385.4 lib/travis/cli/whatsup.rb
travis-1.6.3.travis.384.4 lib/travis/cli/whatsup.rb