Skip to content

Commit da89642

Browse files
committed
Update docs
1 parent 56fac01 commit da89642

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

docs-src/queuing.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,12 @@ Enqueue.Command(() => Console.WriteLine("Hello, world!"))
107107
The **exec** command allows for external programs to be executed.
108108

109109
```bash
110-
inengine queue:publish --plugin=InEngine.Core --command=exec --args="command=/usr/bin/python" "args=--version"
110+
inengine queue:publish --plugin=InEngine.Core --command=exec --args="executable=ls" "args=-lhp"
111111
```
112112

113-
!!! note "Do not include "--" for the command and args parameters."
113+
!!! note "Do not include "--" for the executable and args parameters."
114114
This is purely to make parsing easier internally.
115115

116-
117116

118117
### Sequentially In a Chain
119118

src/InEngine.Core/Commands/Exec.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ public class Exec : AbstractCommand
2121

2222
public override void Run()
2323
{
24+
var settings = InEngineSettings.Make();
2425
if (ExecWhitelist == null)
25-
ExecWhitelist = InEngineSettings.Make().ExecWhitelist;
26+
ExecWhitelist = settings.ExecWhitelist;
2627
if (!ExecWhitelist.ContainsKey(Executable))
2728
throw new CommandFailedException("Executable is not whitelisted.");
2829
var fileName = ExecWhitelist[Executable];

src/InEngine/appsettings.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"InEngine": {
33
"Plugins": {
4+
"InEngine.Commands": ""
45
},
56
"ExecWhitelist": {
7+
"ls": "/bin/ls"
68
},
79
"Mail": {
810
"Host": "localhost",
@@ -11,8 +13,8 @@
1113
},
1214
"Queue": {
1315
"UseCompression": false,
14-
"PrimaryQueueConsumers": 4,
15-
"SecondaryQueueConsumers": 2,
16+
"PrimaryQueueConsumers": 1,
17+
"SecondaryQueueConsumers": 1,
1618
"QueueDriver": "rabbitmq",
1719
"QueueName": "InEngineQueue",
1820
"Redis": {

0 commit comments

Comments
 (0)