Skip to content

Commit

Permalink
Improve creating permissions table
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennonka committed Sep 2, 2024
1 parent e5c4ba8 commit 763d727
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@

Use the {Project} CLI to create a permission table.

.Procedure
. Ensure that the required packages are installed.
Execute the following command on {ProjectServer}:
ifndef::satellite[]
.Prerequisites
* Ensure that the `foreman-console` package is installed on {ProjectServer}:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
# {package-install-project} foreman-console
----
endif::[]

.Procedure
. Start the {Project} console with the following command:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
# foreman-rake console
----
+
Insert the following code into the console:
. Insert the following code into the console:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
Expand All @@ -34,14 +36,13 @@ f.write(result)
+
The above syntax creates a table of permissions and saves it to the `/tmp/table.html` file.
. Press `*Ctrl*` + `*D*` to exit the {Project} console.
Insert the following text at the first line of `/tmp/table.html`:
. Insert the following text at the first line of `/tmp/table.html`:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
<table border="1"><tr><td>Permission name</td><td>Actions</td><td>Resource type</td></tr>
----
+
Append the following text at the end of `/tmp/table.html`:
. Append the following text at the end of `/tmp/table.html`:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
Expand Down

0 comments on commit 763d727

Please sign in to comment.