Pass the path of ssh public key to scenario method
[yardstick.git] / yardstick / benchmark / core / __init__.py
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 """
10 Yardstick benchmark core.
11 """
12
13 from __future__ import print_function
14
15
16 class Param(object):
17     """This class converts a parameter dictionary to an object."""
18
19     def __init__(self, kwargs):
20         # list
21         self.inputfile = kwargs.get('inputfile')
22         self.task_args = kwargs.get('task-args')
23         self.task_args_file = kwargs.get('task-args-file')
24         self.keep_deploy = kwargs.get('keep-deploy')
25         self.parse_only = kwargs.get('parse-only')
26         self.render_only = kwargs.get('render-only')
27         self.output_file = kwargs.get('output-file', '/tmp/yardstick.out')
28         self.suite = kwargs.get('suite')
29         self.task_id = kwargs.get('task_id')
30         self.yaml_name = kwargs.get('yaml_name')
31
32         # list
33         self.input_file = kwargs.get('input_file')
34
35         # list
36         self.casename = kwargs.get('casename')
37
38         # list
39         self.type = kwargs.get('type')