Completed
Pull Request — master (#543)
by
unknown
03:20 queued 51s
created

ChefClientRunner   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
1
#!/usr/bin/env python2.7
2
3
from lib.chef_runner import ChefRunner
4
5
6
class ChefClientRunner(ChefRunner):
7
    '''
8
    ChefRunner type implementation.
9
    Invokes chef-client binary with given arguments.
10
    '''
11
    cmdline_options = [
12
        ('-r', '--rewrite_runlist', {})
13
    ]
14
15
    def __init__(self):
16
        super(ChefClientRunner, self).__init__()
17
        self.cmdline_options += ChefRunner.cmdline_options
18
        self.chef_binary = 'chef-client'
19
20
21
if __name__ == '__main__':
22
    runner = ChefClientRunner()
23
    runner.execute()
24