extract path into variable
This commit is contained in:
parent
6b3979d93b
commit
a85729c5f1
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
if File.exists?(File.join(File.expand_path('../../..', __FILE__), '.git'))
|
||||
git_path = File.join(File.expand_path('../../..', __FILE__), '.git')
|
||||
|
||||
if File.exists?(git_path)
|
||||
railties_path = File.expand_path('../../lib', __FILE__)
|
||||
$:.unshift(railties_path)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue