Maven migration (first draft)
This commit is contained in:
parent
da79ac3e1d
commit
fee48b0b50
1711 changed files with 662 additions and 0 deletions
33
legacy/utilities/LoadTesting/scripts/subscripts/common.rb
Normal file
33
legacy/utilities/LoadTesting/scripts/subscripts/common.rb
Normal file
|
@ -0,0 +1,33 @@
|
|||
#
|
||||
# The path to the LoadTesting directory. Everything is based on this
|
||||
#
|
||||
@home = File.expand_path("../..", File.dirname(__FILE__))
|
||||
|
||||
#
|
||||
# 'require' should look in the scripts directory
|
||||
#
|
||||
$: << File.expand_path('scripts', @home)
|
||||
|
||||
#
|
||||
# convenience methods to access files
|
||||
#
|
||||
def version_file(path)
|
||||
"#{@home}/versions/#{@version_name}/#{path}"
|
||||
end
|
||||
|
||||
def distro_file(path)
|
||||
"#{@home}/distros/#{@distro_name}/#{path}"
|
||||
end
|
||||
|
||||
def site_file(path)
|
||||
"#{@home}/sites/#{@site_name}/#{path}"
|
||||
end
|
||||
|
||||
def test_file(path)
|
||||
"#{@home}/testinfo/#{path}"
|
||||
end
|
||||
|
||||
#
|
||||
# All of the scripts need to load these parms. (Except _setVersion and _setTest)
|
||||
#
|
||||
require 'subscripts/loadParms'
|
Loading…
Add table
Add a link
Reference in a new issue