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.

NagiosCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 18
ccs 0
cts 6
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 10 1
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.NagiosClient import NagiosClient
11
from enarksh.style.EnarkshStyle import EnarkshStyle
12
13
14
class NagiosCommand(Command):
15
    """
16
    Test whether Enarksh is running properly.
17
18
    nagios
19
    """
20
21
    # ------------------------------------------------------------------------------------------------------------------
22
    def handle(self):
23
        """
24
        Executes the Nagios command.
25
        """
26
        self.output = EnarkshStyle(self.input, self.output)
27
28
        client = NagiosClient(self.output)
29
        ret = client.main()
30
31
        return ret
32
33
# ----------------------------------------------------------------------------------------------------------------------
34