Class: Gitwrab::Conf

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

Overview

to configure settings for gitwrab allow to specify :

  • path for git binary

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env: ENV) ⇒ Conf

Returns a new instance of Conf.



10
11
12
13
14
# File 'lib/gitwrab/conf.rb', line 10

def initialize(env: ENV)
  @env = env

  @git_path = @env['GIT_PATH'] || 'git'
end

Instance Attribute Details

#git_pathObject

Returns the value of attribute git_path.



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

def git_path
  @git_path
end