Sha256: e484011627112a433fd876004351e1393eb09111c13479fcc45c37c86b18765b

Contents?: true

Size: 445 Bytes

Versions: 9

Compression:

Stored size: 445 Bytes

Contents

module Git

  class Config

    attr_writer :binary_path, :git_ssh, :timeout

    def initialize
      @binary_path = nil
      @git_ssh = nil
      @timeout = nil
    end

    def binary_path
      @binary_path || ENV['GIT_PATH'] && File.join(ENV['GIT_PATH'], 'git') || 'git'
    end

    def git_ssh
      @git_ssh || ENV['GIT_SSH']
    end

    def timeout
      @timeout || (ENV['GIT_TIMEOUT'] && ENV['GIT_TIMEOUT'].to_i)
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
git-2.3.3 lib/git/config.rb
git-2.3.2 lib/git/config.rb
git-2.3.1 lib/git/config.rb
git-2.3.0 lib/git/config.rb
git-2.2.0 lib/git/config.rb
git-2.1.1 lib/git/config.rb
git-2.1.0 lib/git/config.rb
git-2.0.0.pre3 lib/git/config.rb
git-2.0.0.pre2 lib/git/config.rb