1 | <?php |
||
10 | class HoneybadgerDeployCommand extends Command |
||
11 | { |
||
12 | /** |
||
13 | * The name and signature of the console command. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $signature = 'honeybadger:deploy {--apiKey=} {--environment=} {--revision=} {--repository=} {--username=}'; |
||
18 | |||
19 | /** |
||
20 | * @var \GuzzleHttp\Client |
||
21 | */ |
||
22 | protected $client; |
||
23 | |||
24 | /** |
||
25 | * The console command description. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $description = 'Send deployment to Honeybadger'; |
||
30 | |||
31 | /** |
||
32 | * @var \GuzzleHttp\Client |
||
33 | */ |
||
34 | public function __construct(Client $client) |
||
40 | |||
41 | /** |
||
42 | * Execute the console command. |
||
43 | * |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function handle() |
||
68 | |||
69 | private function resolveParams() : array |
||
81 | |||
82 | private function resolveOptions() : array |
||
91 | |||
92 | private function gitHash() : string |
||
96 | |||
97 | private function gitRemote() : string |
||
101 | } |
||
102 |