Class: Git::Config
- Inherits:
-
Object
- Object
- Git::Config
- Defined in:
- lib/git/config.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 |
# File 'lib/git/config.rb', line 7 def initialize @binary_path = nil @git_ssh = nil end |
Instance Attribute Details
#binary_path
12 13 14 |
# File 'lib/git/config.rb', line 12 def binary_path @binary_path || ENV['GIT_PATH'] && File.join(ENV['GIT_PATH'], 'git') || 'git' end |
#git_ssh
16 17 18 |
# File 'lib/git/config.rb', line 16 def git_ssh @git_ssh || ENV['GIT_SSH'] end |