Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 4 |
DockerApi | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
handle | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
1 | <?php |
2 | |
3 | namespace Qmp\Laravel\DockerScale\Console; |
4 | |
5 | use Docker\Docker; |
6 | use Illuminate\Console\Command; |
7 | |
8 | class DockerApi extends Command |
9 | { |
10 | /** |
11 | * The name and signature of the console command. |
12 | * |
13 | * @var string |
14 | */ |
15 | protected $signature = 'docker:api'; |
16 | |
17 | /** |
18 | * The console command description. |
19 | * |
20 | * @var string |
21 | */ |
22 | protected $description = 'Run test artisan command in docker context'; |
23 | |
24 | |
25 | /** |
26 | * Execute the console command. |
27 | * |
28 | * @return mixed |
29 | */ |
30 | public function handle() |
31 | { |
32 | $docker = Docker::create(); |
33 | |
34 | $new = $docker->containerList(['limit' => 1])[0]; |
35 | |
36 | ddebug($new->getId()); |
37 | |
38 | |
39 | } |
40 | } |