def __init__(self, service, is_remote=True):
        DictWrapper.__init__(self, service)

        self.set_host(is_remote)
        self.set_ports()
        self.set_exposed_ports()
        self.set_advertised_ports()
예제 #2
0
    def __init__(self, service, is_remote=True):
        DictWrapper.__init__(self, service)

        self.set_host(is_remote)
        self.set_ports()
        self.set_exposed_ports()
        self.set_advertised_ports()
예제 #3
0
    def __init__(self, test):
        DictWrapper.__init__(self, test)

        if self.has('docker'):
            self.set('docker', StackTestDocker(self.get('docker')))

        if self.has('shell'):
            self.set('shell', StackTestShell(self.get('shell')))
    def __init__(self, stack, conf=""):
        # apply template
        stack = apply_template(stack, conf)

        with open(SCHEMA) as stack_schema:
            DictWrapper.__init__(self, stack, stack_schema)

        self.set("services", self.parse_services())
        self.set("nodes", self.parse_nodes())
        self.set("security_groups", self.parse_list("security_groups", StackSecurityGroup))
        self.set("tests", self.parse_list("tests", StackTest))
예제 #5
0
    def __init__(self, stack, conf=""):
        # apply template
        stack = apply_template(stack, conf)

        with open(SCHEMA) as stack_schema:
            DictWrapper.__init__(self, stack, stack_schema)

        self.set('services', self.parse_services())
        self.set('nodes', self.parse_nodes())
        self.set('security_groups',
                 self.parse_list('security_groups', StackSecurityGroup))
        self.set('tests', self.parse_list('tests', StackTest))
예제 #6
0
 def __init__(self, node):
     DictWrapper.__init__(self, node)
예제 #7
0
 def __init__(self, config_file):
     with open(SCHEMA) as schema:
         DictWrapper.__init__(self, config_file, schema)
 def __init__(self, node):
     DictWrapper.__init__(self, node)
예제 #9
0
 def __init__(self, shell):
     DictWrapper.__init__(self, shell)
예제 #10
0
 def __init__(self, docker):
     DictWrapper.__init__(self, docker)
예제 #11
0
 def __init__(self, config_file):
     with open(SCHEMA) as schema:
         DictWrapper.__init__(self, config_file, schema)