Completed
Push — master ( 25f226...cc0a72 )
by Morgan
03:23
created

DeployInfoCommand::fire()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 20
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 12
CRAP Score 4

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 20
ccs 12
cts 12
cp 1
rs 9.2
cc 4
eloc 13
nc 3
nop 0
crap 4
1
<?php
2
3
namespace Morphatic\AutoDeploy\Commands;
4
5
use Illuminate\Console\Command;
6
7
class DeployInfoCommand extends Command
8
{
9
    /**
10
     * The console command name.
11
     *
12
     * @var string
13
     */
14
    protected $name = 'deploy:info';
15
16
    /**
17
     * The console command description.
18
     *
19
     * @var string
20
     */
21
    protected $description = 'Display information necessary to set up a deployment webhook';
22
23
    /**
24
     * Execute the console command.
25
     */
26 2
    public function handle()
27
    {
28 2
        $this->call('deploy:init', ['--show' => true]);
29 2
    }
30
}
31