Method: RightScale::Platform::Shell#format_ruby_command

Defined in:
lib/right_agent/platform.rb

#format_ruby_command(shell_script_file_path, *arguments) ⇒ String

Formats a ruby command using the given script path and arguments and the sandbox ruby path.

Parameters:

  • shell_script_file_path (String)

    for formatting

  • arguments (Array)

    for command or empty

Returns:

  • (String)

    executable command string



510
511
512
# File 'lib/right_agent/platform.rb', line 510

def format_ruby_command(shell_script_file_path, *arguments)
  return format_executable_command(sandbox_ruby, [shell_script_file_path, arguments])
end