Module: GitConfig

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

Instance Method Summary collapse

Instance Method Details

#author ⇒ Object



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

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

#email ⇒ Object



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

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

#github_token ⇒ Object



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

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

#github_user ⇒ Object



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

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

#jenkins_password ⇒ Object



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

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

#jenkins_server ⇒ Object



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

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

#jenkins_user ⇒ Object



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

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