Commits

Pior Bastida committed 5d47bd1

added doctrings in awstools.Application

Comments (0)

Files changed (1)

awstools/application.py

 
 
 class Application(object):
+    """
+    Represents the properties of an application (direct and inherited from
+    a model).
+    """
+
     def __init__(self, properties):
         if not isinstance(properties, dict):
             raise ApplicationInvalid
 
 
 class Applications(object):
+    """
+    Collection of Application
+    """
     def __init__(self, yamldata=None):
         self._apps = []
         if yamldata:
         return pprint.pformat(self._apps)
 
     def load_from_yaml(self, yamldata):
+        """
+        Load a set of Application definition from multiple document yaml stream
+        """
         docs = yaml.load_all(yamldata)
 
         self._apps = [Application(d) for d in docs]
             app.validate()
 
     def get(self, name=None, shortname=None, stackname=None):
+        """
+        Return the first matching Application.
+        Only compare the name or shortname even when matching with a stackname
+        """
         if stackname:
             shortname = stackname.split('-')[0]