class Git::Pr::GitProperties
Public Instance Methods
api_endpoint()
click to toggle source
# File lib/git/pr/git_properties.rb, line 4 def api_endpoint `git config --get github.apiEndpoint`.chomp end
api_token()
click to toggle source
# File lib/git/pr/git_properties.rb, line 8 def api_token `git config --get github.token`.chomp end
base_branch()
click to toggle source
# File lib/git/pr/git_properties.rb, line 12 def base_branch 'master' end
current_branch()
click to toggle source
# File lib/git/pr/git_properties.rb, line 16 def current_branch `git symbolic-ref HEAD`.split('/').last.chomp end
login()
click to toggle source
# File lib/git/pr/git_properties.rb, line 24 def login `git config --get github.user`.chomp end
repository()
click to toggle source
# File lib/git/pr/git_properties.rb, line 20 def repository `git config --get remote.origin.url`.split(':').last.sub(/\.git/, '').chomp end
repository_profile(profile)
click to toggle source
# File lib/git/pr/git_properties.rb, line 28 def repository_profile(profile) `git config --get-all pr.repository_profile.#{profile}`.split(/\n/) end