backuppc_clone.command.VacuumCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A VacuumCommand._handle_command() 0 5 1
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