1 | <?php |
||
9 | class HoneybadgerDeployCommand extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'honeybadger:deploy {--apiKey=} {--environment=} {--revision=} {--repository=} {--username=}'; |
||
17 | |||
18 | /** |
||
19 | * @var \GuzzleHttp\Client |
||
20 | */ |
||
21 | protected $client; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Send deployment to Honeybadger'; |
||
29 | |||
30 | /** |
||
31 | * @var \GuzzleHttp\Client |
||
32 | */ |
||
33 | public function __construct(Client $client) |
||
39 | |||
40 | /** |
||
41 | * Execute the console command. |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function handle() |
||
63 | |||
64 | private function resolveParams() : array |
||
71 | |||
72 | private function resolveConfigValues() : array |
||
82 | |||
83 | private function resolveOptions() : array |
||
93 | |||
94 | private function gitHash() : string |
||
98 | |||
99 | private function gitRemote() : string |
||
103 | } |
||
104 |