Module: GitConfig

Included in:
Github, Haskell, Jenkins, Rails, Sinatra
Defined in:
lib/git_config.rb

Instance Method Summary collapse

Instance Method Details

#authorObject



11
12
13
# File 'lib/git_config.rb', line 11

def author
  git_attribute 'user.name', 'author'
end

#emailObject



7
8
9
# File 'lib/git_config.rb', line 7

def email
  git_attribute 'user.email', 'email'
end

#github_tokenObject



15
16
17
# File 'lib/git_config.rb', line 15

def github_token
  git_attribute 'github.token', 'token'
end

#github_userObject



19
20
21
# File 'lib/git_config.rb', line 19

def github_user
  git_attribute 'github.user', 'username'
end

#jenkins_passwordObject



31
32
33
# File 'lib/git_config.rb', line 31

def jenkins_password
  git_attribute 'jenkins.password', 'password'
end

#jenkins_serverObject



23
24
25
# File 'lib/git_config.rb', line 23

def jenkins_server
  git_attribute 'jenkins.server', 'server'
end

#jenkins_userObject



27
28
29
# File 'lib/git_config.rb', line 27

def jenkins_user
  git_attribute 'jenkins.user', 'user'
end