示例#1
0
 def __init__(self, key, sec, app_name, pk, reports): 
     bellatrix_util.checkPkFile(pk)
     self._ec2 = Ec2lib(key, sec) 
     #todo: take a look at: http://stackoverflow.com/questions/1389180/python-automatically-initialize-instance-variables
     self.key = key
     self.sec = sec
     self.pk = pk
     self.app_name = app_name
     self.CMD_OK = 0
     self.define_constants()
     self.reports = reports
     self.out_file = bellatrix_util.getOutFile(__file__)
示例#2
0
 def __init__(self, key, sec): 
     self._ec2 = Ec2lib(key, sec) 
     self.out_file = bellatrix_util.getOutFile(__file__)
示例#3
0
 def __init__(self, key, sec, app_name):
     self.WAIT = 30 
     self._ec2 = Ec2lib(key, sec) 
     self._app_name = app_name
     self.out_file = bellatrix_util.getOutFile(__file__)