class Cp8Cli::CurrentUser
Public Instance Methods
github_login()
click to toggle source
# File lib/cp8_cli/current_user.rb, line 12 def github_login github_user.login end
initials()
click to toggle source
# 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
Private Instance Methods
git_user_name()
click to toggle source
# File lib/cp8_cli/current_user.rb, line 18 def git_user_name @_git_user_name ||= Command.read("git config user.name") end
github_user()
click to toggle source
# File lib/cp8_cli/current_user.rb, line 22 def github_user @_github_user ||= client.user end