Class: Cp8Cli::CurrentUser

Inherits:
Object
  • Object
show all
Includes:
Github::Api::Client
Defined in:
lib/cp8_cli/current_user.rb

Instance Method Summary collapse

Methods included from Github::Api::Client

#client

Instance Method Details

#github_loginObject



12
13
14
# File 'lib/cp8_cli/current_user.rb', line 12

def 
  github_user.
end

#initialsObject



7
8
9
10
# File 'lib/cp8_cli/current_user.rb', line 7

def initials
  Command.error("Please configure your git user.name using git config user.name Jane Doe") unless git_user_name
  git_user_name.parameterize(separator: " ").split.map(&:first).join
end