class CommandBuilder (View source)

Methods

string
buildCommand(Event $event)

Build the command for the given event.

string
buildForegroundCommand(Event $event)

Build the command for running the event in the foreground.

string
buildBackgroundCommand(Event $event)

Build the command for running the event in the background.

string
ensureCorrectUser(Event $event, string $command)

Finalize the event's command syntax with the correct user.

Details

string buildCommand(Event $event)

Build the command for the given event.

Parameters

Event $event

Return Value

string

protected string buildForegroundCommand(Event $event)

Build the command for running the event in the foreground.

Parameters

Event $event

Return Value

string

protected string buildBackgroundCommand(Event $event)

Build the command for running the event in the background.

Parameters

Event $event

Return Value

string

protected string ensureCorrectUser(Event $event, string $command)

Finalize the event's command syntax with the correct user.

Parameters

Event $event
string $command

Return Value

string