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.8.travis.452.6 lib/travis/cli/whatsup.rb
travis-1.6.8.travis.451.6 lib/travis/cli/whatsup.rb
travis-1.6.8.travis.450.6 lib/travis/cli/whatsup.rb
travis-1.6.8.travis.449.6 lib/travis/cli/whatsup.rb
travis-1.6.8.travis.447.6 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.446.6 lib/travis/cli/whatsup.rb
travis-1.6.7 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.445.6 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.443.6 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.442.6 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.441.6 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.434.6 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.431.6 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.428.9 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.427.9 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.426.8 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.425.8 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.422.4 lib/travis/cli/whatsup.rb
travis-1.6.7.travis.420.4 lib/travis/cli/whatsup.rb
travis-1.6.6 lib/travis/cli/whatsup.rb