File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,15 @@ class Migrate extends Processor
18
18
public function handle (): void
19
19
{
20
20
$ this ->ensureRepository ();
21
+ $ this ->showCaption ();
21
22
$ this ->runActions ($ this ->getCompleted ());
22
23
}
23
24
25
+ protected function showCaption (): void
26
+ {
27
+ $ this ->notification ->info ('Launching Actions ' );
28
+ }
29
+
24
30
protected function ensureRepository (): void
25
31
{
26
32
$ this ->runCommand (Names::INSTALL , [
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public function handle(): void
21
21
if ($ actions = $ this ->getActions ($ this ->options ->step )) {
22
22
$ this ->fireEvent (ActionStarted::class, 'down ' );
23
23
24
+ $ this ->showCaption ();
24
25
$ this ->run ($ actions );
25
26
26
27
$ this ->fireEvent (ActionEnded::class, 'down ' );
@@ -31,6 +32,11 @@ public function handle(): void
31
32
$ this ->fireEvent (NoPendingActions::class, 'down ' );
32
33
}
33
34
35
+ protected function showCaption (): void
36
+ {
37
+ $ this ->notification ->info ('Rollback Actions ' );
38
+ }
39
+
34
40
protected function run (array $ actions ): void
35
41
{
36
42
foreach ($ actions as $ row ) {
Original file line number Diff line number Diff line change @@ -31,10 +31,16 @@ public function handle(): void
31
31
}
32
32
33
33
$ this ->showCaption ();
34
+ $ this ->showHeaders ();
34
35
$ this ->showStatus ($ files , $ completed );
35
36
}
36
37
37
38
protected function showCaption (): void
39
+ {
40
+ $ this ->notification ->info ('Show Status ' );
41
+ }
42
+
43
+ protected function showHeaders (): void
38
44
{
39
45
$ this ->notification ->twoColumn ($ this ->columnName , $ this ->columnStatus );
40
46
}
You can’t perform that action at this time.
0 commit comments