| 1 | <?php |
||
| 16 | class PublishLog extends Command |
||
| 17 | { |
||
| 18 | use ChecksEnv,RunsSSHCommands; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The name and signature of the console command. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $signature = 'publish:log {--server=} {--domain=}'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The console command description. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $description = 'Show logs on server (or localhost)'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * ForgePublishRCParser |
||
| 36 | * |
||
| 37 | * @var ForgePublishRCParser |
||
| 38 | */ |
||
| 39 | protected $parser; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Forge server. |
||
| 43 | * |
||
| 44 | * @var String |
||
| 45 | */ |
||
| 46 | protected $server; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Domain. |
||
| 50 | * |
||
| 51 | * @var String |
||
| 52 | */ |
||
| 53 | protected $domain; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Guzzle http client. |
||
| 57 | * |
||
| 58 | * @var Client |
||
| 59 | */ |
||
| 60 | protected $http; |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Create a new command instance. |
||
| 64 | * |
||
| 65 | */ |
||
| 66 | public function __construct(ForgePublishRCParser $parser, Client $http) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Execute the console command. |
||
| 75 | * |
||
| 76 | */ |
||
| 77 | public function handle() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Abort command execution. |
||
| 87 | * |
||
| 88 | */ |
||
| 89 | protected function abortCommandExecution() |
||
| 94 | } |
||
| 95 |