Method: RightScale::Platform::Shell#format_right_run_path

Defined in:
lib/right_agent/platform/windows/platform.rb

#format_right_run_path(executable_file_path, executable_arguments) ⇒ Array

Formats an executable path and arguments by inserting a reference to RightRun.exe only when necessary.

Parameters:

  • executable_file_path (String)

    for formatting

  • arguments (Array)

    for command or empty

Returns:

  • (Array)

    tuple for updated [executable_path, executable_arguments]



1270
1271
1272
1273
1274
1275
1276
1277
# File 'lib/right_agent/platform/windows/platform.rb', line 1270

def format_right_run_path(executable_file_path, executable_arguments)
  unless right_run_path.empty?
    executable_arguments.unshift(executable_file_path)
    executable_file_path = right_run_path
  end

  return executable_file_path, executable_arguments
end