From 8c227a784b948b98d35a386da5d203bd54ea35e5 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 13:19:15 -0700 Subject: Add comment as to why the cloud object/wrapper is useful --- cloudinit/cloud.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cloudinit/cloud.py b/cloudinit/cloud.py index 8372d123..a2a5cfdb 100644 --- a/cloudinit/cloud.py +++ b/cloudinit/cloud.py @@ -27,6 +27,16 @@ from cloudinit import log as logging LOG = logging.getLogger(__name__) +# This class is the high level wrapper that provides +# access to cloud-init objects without exposing the stage objects +# to handler and or transform manipulation. It allows for cloud +# init to restrict what those types of user facing code may see +# and or adjust (which helps avoid code messing with each other) +# +# It also provides util functions that avoid having to know +# how to get a certain member from this submembers as well +# as providing a backwards compatible object that can be maintained +# while the stages/other objects can be worked on independently... class Cloud(object): def __init__(self, datasource, paths, cfg, distro, runners): -- cgit v1.2.3