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.16 lib/travis/cli/whatsup.rb
travis-1.6.15.1 lib/travis/cli/whatsup.rb
travis-1.6.15 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.580.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.566.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.565.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.564.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.563.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.562.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.561.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.560.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.559.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.558.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.557.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.556.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.555.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.554.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.552.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.551.6 lib/travis/cli/whatsup.rb
travis-1.6.15.travis.550.6 lib/travis/cli/whatsup.rb