Sha256: 7c6e0fa4fb8eb3d0dbb61bf68750911046c205f4d25ccf03e4e9e2ace07c6727

Contents?: true

Size: 240 Bytes

Versions: 63

Compression:

Stored size: 240 Bytes

Contents

require 'travis/cli'

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

      def run
        authenticate
        say user.login, "You are %s (#{user.name})"
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
travis-1.6.2.travis.366.4 lib/travis/cli/whoami.rb
travis-1.6.2.travis.365.4 lib/travis/cli/whoami.rb
travis-1.6.2.travis.364.4 lib/travis/cli/whoami.rb
travis-1.6.1 lib/travis/cli/whoami.rb
travis-1.6.1.travis.363.4 lib/travis/cli/whoami.rb
travis-1.6.0 lib/travis/cli/whoami.rb
travis-1.5.9.travis.362.4 lib/travis/cli/whoami.rb
travis-1.5.9.travis.361.4 lib/travis/cli/whoami.rb
travis-1.5.9.travis.360.4 lib/travis/cli/whoami.rb
travis-1.5.9.travis.358.4 lib/travis/cli/whoami.rb
travis-1.5.8 lib/travis/cli/whoami.rb
travis-1.5.8.travis.356.4 lib/travis/cli/whoami.rb
travis-1.5.7 lib/travis/cli/whoami.rb
travis-1.5.7.travis.345.4 lib/travis/cli/whoami.rb
travis-1.5.7.travis.341.4 lib/travis/cli/whoami.rb
travis-1.5.7.travis.338.4 lib/travis/cli/whoami.rb
travis-1.5.6 lib/travis/cli/whoami.rb
travis-1.5.6.travis.337.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.336.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.333.4 lib/travis/cli/whoami.rb