def __init__(self, tag, hosts, using_host,
remote_path, command, step, docker='docker',
start_time=None, container=None, oth=None):
assert isinstance(hosts, list)
import arrow
self.tag = tag
self.hosts = hosts
self.using_host = using_host
self.remote_path = remote_path
self.command = command
self.step = step
self.docker = docker
if not start_time:
self.start_time = arrow.utcnow()
else:
self.start_time = arrow.get(start_time)
self.container = container
self.oth = oth
评论列表
文章目录