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 11 |
# File 'lib/git/config.rb', line 7 def initialize @binary_path = nil @git_ssh = nil @timeout = nil end |
Instance Attribute Details
#binary_path
13 14 15 |
# File 'lib/git/config.rb', line 13 def binary_path @binary_path || ENV['GIT_PATH'] && File.join(ENV['GIT_PATH'], 'git') || 'git' end |
#git_ssh
17 18 19 |
# File 'lib/git/config.rb', line 17 def git_ssh @git_ssh || ENV['GIT_SSH'] end |
#timeout
21 22 23 |
# File 'lib/git/config.rb', line 21 def timeout @timeout || (ENV['GIT_TIMEOUT'] && ENV['GIT_TIMEOUT'].to_i) end |