Class: Travis::CLI::Gh::Whoami

Inherits:
ApiCommand
  • Object
show all
Includes:
GitHub::Authenticated
Defined in:
lib/travis/cli/gh/whoami.rb

Instance Method Summary collapse

Methods included from GitHub::Authenticated

#auth, #gh, #plugin_config

Instance Method Details

#runObject



7
8
9
# File 'lib/travis/cli/gh/whoami.rb', line 7

def run
  say gh['user']['login'], 'logged in as %s'
end