33
44Use the {Project} CLI to create a permission table.
55
6- .Procedure
7- . Ensure that the required packages are installed.
8- Execute the following command on {ProjectServer}:
6+ ifndef::satellite[]
7+ .Prerequisites
8+ * Ensure that the `foreman-console` package is installed on {ProjectServer}:
99+
1010[options="nowrap", subs="+quotes,verbatim,attributes"]
1111----
1212# {project-package-install} foreman-console
1313----
14+ endif::[]
15+
16+ .Procedure
1417. Start the {Project} console with the following command:
1518+
1619[options="nowrap", subs="+quotes,verbatim,attributes"]
1720----
1821# foreman-rake console
1922----
20- +
21- Insert the following code into the console:
23+ . Insert the following code into the console:
2224+
2325[options="nowrap", subs="+quotes,verbatim,attributes"]
2426----
@@ -34,14 +36,13 @@ f.write(result)
3436+
3537The above syntax creates a table of permissions and saves it to the `/tmp/table.html` file.
3638. Press `*Ctrl*` + `*D*` to exit the {Project} console.
37- Insert the following text at the first line of `/tmp/table.html`:
39+ . Insert the following text at the first line of `/tmp/table.html`:
3840+
3941[options="nowrap", subs="+quotes,verbatim,attributes"]
4042----
4143<table border="1"><tr><td>Permission name</td><td>Actions</td><td>Resource type</td></tr>
4244----
43- +
44- Append the following text at the end of `/tmp/table.html`:
45+ . Append the following text at the end of `/tmp/table.html`:
4546+
4647[options="nowrap", subs="+quotes,verbatim,attributes"]
4748----
0 commit comments