Example #1
0
    def __init__(self, args):
        super(ConsulVCommand, self).__init__(args)

        sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
        from v_consul import ConsulV

        self._consul = ConsulV()
Example #2
0
class ConsulVCommand(VCommand):
    """Consul related commands."""

    name = "consul"

    def __init__(self, args):
        super(ConsulVCommand, self).__init__(args)

        from v_consul import ConsulV

        self._consul = ConsulV()

    def process(self):
        """Validate consul status."""
        self._consul.validate(self.v_type, self.args)
Example #3
0
class ConsulVCommand(VCommand):
    """Consul related commands."""

    name = "consul"

    def __init__(self, args):
        super(ConsulVCommand, self).__init__(args)

        sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
        from v_consul import ConsulV

        self._consul = ConsulV()

    def process(self):
        """Validate consul status."""

        self._consul.validate(self.v_type, self.args)
Example #4
0
    def __init__(self, args):
        super(ConsulVCommand, self).__init__(args)

        from v_consul import ConsulV

        self._consul = ConsulV()