Sha256: f0613ab7c37440822f9780dd03be77b42a482c864d621c8afe562e51c76fca97

Contents?: true

Size: 300 Bytes

Versions: 323

Compression:

Stored size: 300 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class Whoami < ApiCommand
      description "outputs the current user"

      def run
        authenticate
        name = " (#{user.name})" unless user.name.to_s.empty?
        say user.login, "You are %s" << name.to_s
      end
    end
  end
end

Version data entries

323 entries across 323 versions & 3 rubygems

Version Path
travis-1.8.12.travis.1101.9 lib/travis/cli/whoami.rb
travis-1.8.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1098.9 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1081.9 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1059.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1058.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1056.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1051.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1048.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1044.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1041.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1040.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1026.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1025.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1024.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1022.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1021.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1020.11 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1012.9 lib/travis/cli/whoami.rb
travis-1.8.11.travis.1011.9 lib/travis/cli/whoami.rb