GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

LoadScheduleCommand.handle()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from cleo import Command
9
10
from enarksh.controller.client.LoadScheduleClient import LoadScheduleClient
11
from enarksh.style.EnarkshStyle import EnarkshStyle
12
13
14
class LoadScheduleCommand(Command):
15
    """
16
    Requests the controller to load schedule definitions
17
18
    load_schedule
19
        {schedule.xml?* : The schedule(s) to load}
20
    """
21
22
    # ------------------------------------------------------------------------------------------------------------------
23
    def handle(self):
24
        """
25
        Executes the load schedule command.
26
        """
27
        self.output = EnarkshStyle(self.input, self.output)
28
29
        client = LoadScheduleClient(self.output)
30
        ret = client.main(self.input.get_argument('schedule.xml'))
31
32
        return ret
33
34
# ----------------------------------------------------------------------------------------------------------------------
35