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

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def setup_args (self, parser)
 
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)
 

Public Attributes

 terse_headers
 
 verbose_headers
 
 table_args_parser
 
- Public Attributes inherited from cli.s3.S3BucketMixin
 stacks
 

Static Public Attributes

string name = 'ls'
 
dictionary state_style
 
- 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
 

Private Member Functions

def _get_stack_data (self, stack)
 

Detailed Description

List Odyssey stacks used in AWS. 

Definition at line 48 of file stack.py.

Constructor & Destructor Documentation

◆ __init__()

def cli.stack.ListCommand.__init__ (   self,
args,
**  kwargs 
)
List Command Initialization

Definition at line 62 of file stack.py.

62  def __init__(self, *args, **kwargs):
63  '''List Command Initialization'''
64  super().__init__(*args, **kwargs)
65  self.terse_headers = [
66  'Stack',
67  'Status',
68  'Version',
69  'URL(s)',
70  'Region',
71  'Last Deploy'
72  ]
73  self.verbose_headers = [
74  'Stack',
75  'Stack Version',
76  'Status',
77  'Version',
78  'Creator',
79  'URL(s)',
80  'Region',
81  'Created',
82  'Last Deploy'
83  ]
84 

Member Data Documentation

◆ state_style

dictionary cli.stack.ListCommand.state_style
static
Initial value:
= {
'init': 'blue',
'ready': 'green',
'active': 'green',
'partial_deploy': 'red',
'corrupt': 'red',
'deploying': 'b',
'removing': 'b'
}

Definition at line 52 of file stack.py.


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