utils.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:remote-docker 作者: phizaz 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号