PHP Class Collective\Remote\Console\TailCommand

Inheritance: extends Illuminate\Console\Command
显示文件 Open project: laravelcollective/remote

Protected Properties

Property Type Description
$description string The console command description.
$name string The console command name.

Public Methods

Method Description
fire ( ) : void Execute the console command.

Protected Methods

Method Description
findNewestLocalLogfile ( $path ) : mixed Get the path to the latest local Laravel log file.
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.
getPath ( string $connection ) : string Get the path to the Laravel log file.
getRemote ( string $connection ) : Collective\Remote\Connection Get a connection to the remote server.
getRoot ( string $connection ) : string Get the path to the Laravel install root.
tailLocalLogs ( string $path ) : string Tail a local log file for the application.
tailLogFile ( string $path, string $connection ) : void Tail the given log file for the connection.
tailRemoteLogs ( string $path, string $connection ) : void Tail a remote log file at the given path and connection.

Method Details

findNewestLocalLogfile() protected method

Get the path to the latest local Laravel log file.
protected findNewestLocalLogfile ( $path ) : mixed
$path
return mixed

fire() public method

Execute the console command.
public fire ( ) : void
return void

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

getPath() protected method

Get the path to the Laravel log file.
protected getPath ( string $connection ) : string
$connection string
return string

getRemote() protected method

Get a connection to the remote server.
protected getRemote ( string $connection ) : Collective\Remote\Connection
$connection string
return Collective\Remote\Connection

getRoot() protected method

Get the path to the Laravel install root.
protected getRoot ( string $connection ) : string
$connection string
return string

tailLocalLogs() protected method

Tail a local log file for the application.
protected tailLocalLogs ( string $path ) : string
$path string
return string

tailLogFile() protected method

Tail the given log file for the connection.
protected tailLogFile ( string $path, string $connection ) : void
$path string
$connection string
return void

tailRemoteLogs() protected method

Tail a remote log file at the given path and connection.
protected tailRemoteLogs ( string $path, string $connection ) : void
$path string
$connection string
return void

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$name protected_oe property

The console command name.
protected string $name
return string