Odyssey
Public Member Functions | Static Public Attributes | List of all members
cli.stack.CreateCommand Class Reference
Inheritance diagram for cli.stack.CreateCommand:
cli.s3.S3BucketMixin cli.base.HostingCommand

Public Member Functions

def setup_args (self, parser)
 
def check_name (self, name)
 
def create_passphrase (self)
 
def run (self, args)
 
- Public Member Functions inherited from cli.s3.S3BucketMixin
def prerun (self, *args, **kwargs)
 
def get_stack (self, name)
 
- Public Member Functions inherited from cli.base.HostingCommand
def add_stack_argument (self, *args, env=DEFAULT_STACK_ENV, help=None, metavar='STACK_NAME', **kwargs)
 
def check_requirements (self, stack)
 

Static Public Attributes

string name = 'create'
 
 dns_compat = re.compile("(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE)
 
- Static Public Attributes inherited from cli.s3.S3BucketMixin
string stacks_bucket = 'homecu.odyssey.stacks'
 
- Static Public Attributes inherited from cli.base.HostingCommand
 allowed_states = set()
 
string min_version = "0"
 
 max_version = VERSION
 

Additional Inherited Members

- Public Attributes inherited from cli.s3.S3BucketMixin
 stacks
 

Detailed Description

Create a new Odyssey stack in AWS <b>[use caution]</b>. 

Definition at line 572 of file stack.py.

Member Function Documentation

◆ check_name()

def cli.stack.CreateCommand.check_name (   self,
  name 
)
Raise exception if stack name is not valid. 

Definition at line 628 of file stack.py.

628  def check_name(self, name):
629  """ Raise exception if stack name is not valid. """
630  if len(name) > 12:
631  raise SystemExit('Name too long')
632  if not self.dns_compat.match(name):
633  raise SystemExit('Name is not DNS compatible')
634 

The documentation for this class was generated from the following file: