コード例 #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
コード例 #2
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)
コード例 #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)
コード例 #4
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