class Git::Config

The global configuration for this gem

Attributes

binary_path[W]
git_ssh[W]
timeout[W]

Public Class Methods

new() click to toggle source
# File lib/git/config.rb, line 8
def initialize
  @binary_path = nil
  @git_ssh = nil
  @timeout = nil
end

Public Instance Methods

binary_path() click to toggle source
# File lib/git/config.rb, line 14
def binary_path
  @binary_path || (ENV.fetch('GIT_PATH', nil) && File.join(ENV.fetch('GIT_PATH', nil), 'git')) || 'git'
end
git_ssh() click to toggle source
# File lib/git/config.rb, line 18
def git_ssh
  @git_ssh || ENV.fetch('GIT_SSH', nil)
end
timeout() click to toggle source
# File lib/git/config.rb, line 22
def timeout
  @timeout || (ENV.fetch('GIT_TIMEOUT', nil) && ENV['GIT_TIMEOUT'].to_i)
end