Class: Gitwrab::Conf
- Inherits:
-
Object
- Object
- Gitwrab::Conf
- Defined in:
- lib/gitwrab/conf.rb
Overview
to configure settings for gitwrab allow to specify :
-
path for git binary
Instance Attribute Summary collapse
-
#git_path ⇒ Object
Returns the value of attribute git_path.
Instance Method Summary collapse
-
#initialize(env: ENV) ⇒ Conf
constructor
A new instance of Conf.
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_path ⇒ Object
Returns the value of attribute git_path.
8 9 10 |
# File 'lib/gitwrab/conf.rb', line 8 def git_path @git_path end |