Ruby command-line syntax

The basic command-line syntax to translate Ruby code is:

sourceanalyzer –b <build_id> <file>

where <file> is the name of the Ruby file you want to scan. To include multiple Ruby files, separate them with a space, as shown in the following example:

sourceanalyzer –b <build_id> file1.rb file2.rb file3.rb

In addition to listing individual Ruby files, you can use the asterisk (*) wildcard to select all Ruby files in a specified directory. For example, to find all the Ruby files in a directory called src, use the following sourceanalyzer command:

sourceanalyzer –b <build_id> src/*.rb

Note: When you translate Ruby code, make sure that you specify all source files together in one invocation. OpenText SAST does not support adding new files to the file list associated with the build ID on subsequent invocations.