VacuumCommand._handle_command()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
from backuppc_clone.DataLayer import DataLayer
2
from backuppc_clone.command.BaseCommand import BaseCommand
3
4
5
class VacuumCommand(BaseCommand):
6
    """
7
    Rebuilds the SQLite database freeing disk space.
8
9
    vacuum
10
        {clone.cfg : The configuration file of the clone}
11
    """
12
13
    # ------------------------------------------------------------------------------------------------------------------
14
    def _handle_command(self) -> None:
15
        """
16
        Executes the command.
17
        """
18
        DataLayer.instance.vacuum()
19
20
# ----------------------------------------------------------------------------------------------------------------------
21