コード例 #1
0
ファイル: task.py プロジェクト: rorz99/parallel-ssh
 def get_data(self):
     return {
         'started': psshutil.convert_task_time(self.timestamp).isoformat(),
         'host': self.host,
         'command': self.raw_cmd,
         'stdout': self.outputbuffer,
         'stderr': self.errorbuffer,
         'exitcode': self.exitstatus
     }
コード例 #2
0
ファイル: task.py プロジェクト: gyf19/parallel-ssh
 def get_data(self):
     return {
         "started": psshutil.convert_task_time(self.timestamp).isoformat(),
         "host": self.host,
         "name": self.name,
         "command": self.raw_cmd,
         "stdout": self.outputbuffer,
         "stderr": self.errorbuffer,
         "exitcode": self.exitstatus,
     }
コード例 #3
0
ファイル: output.py プロジェクト: cainiaocome/parallel-ssh
 def capture_data(self, task):
     started = psshutil.convert_task_time(task.timestamp).isoformat()
     entries = (None, started, task.host, task.raw_cmd, task.outputbuffer, task.errorbuffer, task.exitstatus)
     self.insert('tasks', entries)
     self.conn.commit()
コード例 #4
0
 def capture_data(self, task):
     started = psshutil.convert_task_time(task.timestamp).isoformat()
     entries = (None, started, task.host, task.raw_cmd, task.outputbuffer,
                task.errorbuffer, task.exitstatus)
     self.insert('tasks', entries)
     self.conn.commit()