Exemplo n.º 1
0
 def from_domain(cls, domain, *args, **kwargs):
     """
     Try to download the hive file from the domain using the defined
     beekeeper spec of domain/api/hive.json.
     """
     version = kwargs.pop('version', None)
     require = kwargs.pop('require_https', False)
     return cls(Hive.from_domain(domain, version, require), *args, **kwargs)
Exemplo n.º 2
0
 def from_domain(cls, domain, *args, **kwargs):
     """
     Try to download the hive file from the domain using the defined
     beekeeper spec of domain/api/hive.json.
     """
     version = kwargs.pop('version', None)
     require = kwargs.pop('require_https', False)
     return cls(Hive.from_domain(domain, version, require), *args, **kwargs)