Method: RightScale::Platform::Shell#format_powershell_command

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

#format_powershell_command(shell_script_file_path, *arguments) ⇒ String

Formats a powershell command using the given script path and arguments. Allows for specifying powershell from a specific installed location. This method is only implemented for Windows.

Parameters:

  • shell_script_file_path (String)

    for formatting

  • arguments (Array)

    for command or empty

Returns:

  • (String)

    executable command string



1311
1312
1313
1314
1315
1316
1317
1318
# File 'lib/right_agent/platform/windows/platform.rb', line 1311

def format_powershell_command(shell_script_file_path, *arguments)
  return format_powershell_command4(
    POWERSHELL_V1x0_EXECUTABLE_PATH,
    lines_before_script = nil,
    lines_after_script = nil,
    shell_script_file_path,
    *arguments)
end