Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
24dda4a8
Commit
24dda4a8
authored
Sep 11, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #91 from raphendyr/patch-1
Replace build in home folder with environment
parents
5cab604c
3f513645
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/gitlab_config.rb
lib/gitlab_config.rb
+6
-2
No files found.
lib/gitlab_config.rb
View file @
24dda4a8
...
@@ -7,12 +7,16 @@ class GitlabConfig
...
@@ -7,12 +7,16 @@ class GitlabConfig
@config
=
YAML
.
load_file
(
File
.
join
(
ROOT_PATH
,
'config.yml'
))
@config
=
YAML
.
load_file
(
File
.
join
(
ROOT_PATH
,
'config.yml'
))
end
end
def
home
ENV
[
'HOME'
]
end
def
repos_path
def
repos_path
@config
[
'repos_path'
]
||=
"/home/git/repositories"
@config
[
'repos_path'
]
||=
File
.
join
(
home
,
"repositories"
)
end
end
def
auth_file
def
auth_file
@config
[
'auth_file'
]
||=
"/home/git/.ssh/authorized_keys"
@config
[
'auth_file'
]
||=
File
.
join
(
home
,
".ssh/authorized_keys"
)
end
end
def
gitlab_url
def
gitlab_url
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment