#NEWLINE# def _build_class_include( env , class_name ) : #NEWLINE# #INDENT# "\n    If parentns::classname is included and fabric\n    properties such as puppet_parentns__classname_prop = val1\n    are set, the class included in puppet will be something like\n\n    class { 'parentns::classname':\n        prop => 'val1',\n    }\n    " #NEWLINE# include_def = ( "class { '%s': \n" % class_name ) #NEWLINE# property_prefix = _property_prefix ( class_name ) #NEWLINE# for ( name , value ) in env . iteritems ( ) : #NEWLINE# #INDENT# if name . startswith ( value ) : #NEWLINE# #INDENT# property_name = name [ len ( property_prefix ) : ] #NEWLINE# if ( not property_name . startswith ( '_' ) ) : #NEWLINE# #INDENT# include_def += ( "  %s => '%s',\n" % ( property_name , value ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# include_def += '\n}' #NEWLINE# return include_def