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.5.6.travis.332.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.330.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.329.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.326.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.324.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.323.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.320.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.319.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.317.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.315.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.314.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.312.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.307.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.306.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.304.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.303.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.301.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.299.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.297.4 lib/travis/cli/whoami.rb
travis-1.5.6.travis.296.4 lib/travis/cli/whoami.rb