DeployRollback   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 2
1
<?php
2
3
namespace Reallyli\LaravelDeployer\Commands;
4
5
class DeployRollback extends BaseCommand
6
{
7
    protected $signature = 'deploy:rollback {stage? : Stage or hostname}';
8
    protected $description = 'Rollback to previous release';
9
10
    public function handle()
11
    {
12
        if ($this->confirm('Are you sure rollback to previous release')) {
13
            $this->dep('rollback');
14
        }
15
    }
16
}
17