tableau_hyper_management.BasicNeedsForPublisher   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A BasicNeedsForPublisher.__init__() 0 2 1
A BasicNeedsForPublisher.fn_check_inputs_specific() 0 7 1
1
"""
2
Class Publisher Specific Needs
3
4
Handling specific needs for Publisher script
5
"""
6
# package to facilitate common operations
7
from tableau_hyper_management.BasicNeeds import os, BasicNeeds
8
9
10
class BasicNeedsForPublisher:
11
    lcl_bn = None
12
13
    def __init__(self):
14
        self.lcl_bn = BasicNeeds()
15
16
    def fn_check_inputs_specific(self, input_parameters):
17
        self.lcl_bn .fn_validate_single_value(input_parameters.input_file,
18
                                              'file', 'input file')
19
        self.lcl_bn .fn_validate_single_value(input_parameters.input_credentials_file,
20
                                              'file', 'credentials file')
21
        self.lcl_bn .fn_validate_single_value(input_parameters.tableau_server,
22
                                              'url', 'Tableau Server URL')
23