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.7.3.travis.647.5 lib/travis/cli/whatsup.rb
travis-1.7.3.travis.646.5 lib/travis/cli/whatsup.rb
travis-1.7.3.travis.644.5 lib/travis/cli/whatsup.rb
travis-1.7.3.travis.641.5 lib/travis/cli/whatsup.rb
travis-1.7.3.travis.640.5 lib/travis/cli/whatsup.rb
travis-1.7.3.travis.637.5 lib/travis/cli/whatsup.rb
travis-1.7.2 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.636.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.635.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.634.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.633.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.632.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.630.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.627.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.626.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.625.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.623.5 lib/travis/cli/whatsup.rb
travis-1.7.2.travis.621.5 lib/travis/cli/whatsup.rb
travis-1.7.1 lib/travis/cli/whatsup.rb
travis-1.7.1.travis.613.5 lib/travis/cli/whatsup.rb