Cross Reference: paths.rb
xref
: /
ontohub
/
config
/
initializers
/
paths.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
paths.rb revision 43b3e7c742a93b0a02f38afc10e81b5eb0b33bc6
Ontohub
::
Application.configure
do
|
app
|
c =
app.config
if
Rails.env.test
?
c.data
_root
=
Rails.root.join
(
'tmp'
,
'data'
)
else
c.data
_root
=
Rails.root.join
(
'data'
)
end
c.git
_root
=
c.data_root.join
(
'repositories'
)
c.git
_working_copies_root
=
c.data_root.join
(
'working_copies'
)
c.max
_read_filesize
=
512
*
1024
if
(
settings
=
Settings.git
)
&&
settings.user
c.git
_user
=
settings.user
c.git
_group
=
settings.group
c.git
_home
= %x[
echo
~
#{
c.git
_user}].strip
else
c.git
_user
=
nil
c.git
_group
=
nil
c.git
_home
=
Rails.root.join
(
'tmp'
,
'git'
)
end
end