File: file_path_helpers.rb

package info (click to toggle)
ruby-excon 0.112.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,232 kB
  • sloc: ruby: 7,855; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Todo: s/tests/specs when migration is complete
def get_abs_path(*parts)
  File.join(File.expand_path('../../..', __FILE__), 'tests', *parts)
end

def data_path(*parts)
  get_abs_path('data', *parts)
end

def rackup_path(*parts)
  get_abs_path('rackups', *parts)
end

def webrick_path(*parts) rackup_path(*parts); end

def unicorn_path(*parts) rackup_path(*parts); end

def puma_path(*parts) rackup_path(*parts); end

def exec_path(*parts)
  get_abs_path('servers', *parts)
end