Odyssey
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
cli.s3.S3BucketMixin Class Reference
Inheritance diagram for cli.s3.S3BucketMixin:
cli.cumanage.CUManageCommand cli.deploy.DeployCommand cli.logs.LogsCommand cli.sched.ReloadCommand cli.stack.CreateCommand cli.stack.GetEnvCommand cli.stack.ListCommand cli.stack.MaintCommand cli.stack.MonitorCommand cli.stack.RemoveCommand cli.stack.ScaleCommand cli.stack.SetEnvCommand cli.stack.SetStackStateCommand cli.stack.ShowCommand cli.stack.UpgradeCommand

Public Member Functions

def prerun (self, *args, **kwargs)
 
def get_stack (self, name)
 

Public Attributes

 stacks
 

Static Public Attributes

string stacks_bucket = 'homecu.odyssey.stacks'
 

Detailed Description

Definition at line 127 of file s3.py.

Member Function Documentation

◆ get_stack()

def cli.s3.S3BucketMixin.get_stack (   self,
  name 
)
Load a tracker object from S3.  If the file does not exist just
return None. 

Definition at line 136 of file s3.py.

136  def get_stack(self, name):
137  """ Load a tracker object from S3. If the file does not exist just
138  return None. """
139  stack_obj = self.stacks.Object(name)
140  try:
141  stack_obj.load()
142  except botocore.exceptions.ClientError as e:
143  if e.response['Error']['Code'] != "404":
144  raise
145  else:
146  return StackTracker(stack_obj)

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