Skip to content

Commit

Permalink
Merge pull request #59 from tormjens/5.6
Browse files Browse the repository at this point in the history
Update TailCommand
  • Loading branch information
tshafer authored Mar 16, 2018
2 parents abfae15 + 31c7b1d commit 1b25a41
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions src/Console/TailCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
class TailCommand extends Command
{
/**
* The console command name.
* The console command signature.
*
* @var string
*/
protected $name = 'tail';
protected $signature = 'tail
{connection? : The remote connection name}
{--path= : The fully qualified path to the log file.}
{--lines=20 : The number of lines to tail.}';

/**
* The console command description.
Expand All @@ -28,7 +31,7 @@ class TailCommand extends Command
*
* @return void
*/
public function fire()
public function handle()
{
$path = $this->getPath($this->argument('connection'));

Expand Down Expand Up @@ -162,29 +165,4 @@ protected function getRoot($connection)
{
return $this->laravel['config']['remote.connections.'.$connection.'.root'];
}

/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return [
['connection', InputArgument::OPTIONAL, 'The remote connection name'],
];
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['path', null, InputOption::VALUE_OPTIONAL, 'The fully qualified path to the log file.'],
['lines', null, InputOption::VALUE_OPTIONAL, 'The number of lines to tail.', 20],
];
}
}

0 comments on commit 1b25a41

Please sign in to comment.