Method: RightScale::Platform::Shell#right_run_path
- Defined in:
- lib/right_agent/platform/windows/platform.rb
#right_run_path ⇒ String
Returns path to RightRun.exe or empty in cases where it is unneeded.
1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 |
# File 'lib/right_agent/platform/windows/platform.rb', line 1395 def right_run_path unless @right_run_path @right_run_path = '' if ::ENV['ProgramW6432'] && (@right_run_path = ::ENV['RS_RIGHT_RUN_EXE'].to_s).empty? temp_path = ::File.join( ::ENV['ProgramW6432'], ::RightScale::Platform::Filesystem::COMPANY_DIR_NAME, 'Shared', 'RightRun.exe') if ::File.file?(temp_path) @right_run_path = ::File.normalize_path(temp_path).gsub('/', "\\") end end end @right_run_path end |