|
def | add_stack_argument (self, *args, env=DEFAULT_STACK_ENV, help=None, metavar='STACK_NAME', **kwargs) |
|
def | check_requirements (self, stack) |
|
|
| allowed_states = set() |
|
string | min_version = "0" |
|
| max_version = VERSION |
|
Definition at line 48 of file base.py.
◆ check_requirements()
def cli.base.HostingCommand.check_requirements |
( |
|
self, |
|
|
|
stack |
|
) |
| |
Used to assert a stack is compatible and in a viable state.
Definition at line 65 of file base.py.
65 def check_requirements(self, stack):
66 """ Used to assert a stack is compatible and in a viable state. """ 67 ver = stack.stack_version
68 if not (self.min_version <= ver <= self.max_version):
69 raise SystemExit(
"Incompatible version: %s" % ver)
70 if stack.state
not in self.allowed_states:
71 raise SystemExit(
"Improper stack state: %s" % stack.state)
The documentation for this class was generated from the following file: