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.

EnarkshApplication   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 29
ccs 0
cts 12
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 5 1
A get_default_commands() 0 16 1
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from cleo import Application
9
10
from enarksh.command.BootstrapCommand import BootstrapCommand
11
from enarksh.command.HaltCommand import HaltCommand
12
from enarksh.command.LoadHostCommand import LoadHostCommand
13
from enarksh.command.LoadScheduleCommand import LoadScheduleCommand
14
from enarksh.command.NagiosCommand import NagiosCommand
15
from enarksh.command.NodeActionCommand import NodeActionCommand
16
17
18
class EnarkshApplication(Application):
19
    """
20
    The Enarksh application.
21
    """
22
23
    # ------------------------------------------------------------------------------------------------------------------
24
    def __init__(self):
25
        """
26
        Object constructor
27
        """
28
        Application.__init__(self, 'Enarksh', '0.9.0')
29
30
    # ------------------------------------------------------------------------------------------------------------------
31
    def get_default_commands(self):
32
        """
33
        Returns the default commands of this application.
34
35
        :rtype: list[cleo.Command]
36
        """
37
        commands = Application.get_default_commands(self)
38
39
        self.add(BootstrapCommand())
40
        self.add(HaltCommand())
41
        self.add(LoadHostCommand())
42
        self.add(LoadScheduleCommand())
43
        self.add(NagiosCommand())
44
        self.add(NodeActionCommand())
45
46
        return commands
47
48
# ----------------------------------------------------------------------------------------------------------------------
49