Example #1
0
 def getResultFile(self):
     #get the output file
     scpCopyfile(self, self.botoInstInfo.ip_address, self.user,
                 "~/" + self.fileName, self.conf.res_folder + self.fileName,
                 self.conf.getKeyFile(), self.timeout,
                 utils.FROM_REMOTE_SYSTEM)
     return
    def actionWithInInstRunScripts(self):
        for files in self.conf.scriptFiles:
           #copy the script files to the instance home directory 
           utils.scpCopyfile(self,self.botoInstInfo.ip_address,self.user,files,"/home/"+self.user,self.conf.getKeyFile(),self.timeout,utils.INTO_REMOTE_SYSTEM)
           # execute the script 
           res=execCmd(self,self.fileName,"./"+files,True)
	   self.scriptStatus.append(res)
Example #3
0
 def actionWithInInstRunScripts(self):
     for files in self.conf.scriptFiles:
         #copy the script files to the instance home directory
         utils.scpCopyfile(self, self.botoInstInfo.ip_address, self.user,
                           files, "/home/" + self.user,
                           self.conf.getKeyFile(), self.timeout,
                           utils.INTO_REMOTE_SYSTEM)
         # execute the script
         res = execCmd(self, self.fileName, "./" + files, True)
         self.scriptStatus.append(res)
 def getResultFile(self):
     #get the output file
     scpCopyfile(self,self.botoInstInfo.ip_address,self.user,"~/"+self.fileName,self.conf.res_folder+self.fileName,self.conf.getKeyFile(),self.timeout,utils.FROM_REMOTE_SYSTEM) 
     return