Class: DeveloperInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/developer_info.rb

Instance Method Summary collapse

Constructor Details

#initialize(git_repository_path) ⇒ DeveloperInfo

Returns a new instance of DeveloperInfo.



4
5
6
# File 'lib/developer_info.rb', line 4

def initialize(git_repository_path)
  @git_repository_path = git_repository_path
end

Instance Method Details

#editorObject



8
9
10
# File 'lib/developer_info.rb', line 8

def editor
  git_config.config["core.editor"]
end

#emailObject



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

def email
  git_config.config["user.email"]
end

#nameObject



16
17
18
# File 'lib/developer_info.rb', line 16

def name
  git_config.config["user.name"]
end

#to_sObject



20
21
22
# File 'lib/developer_info.rb', line 20

def to_s
  "#{name} (#{email})"
end