As we're flushing out Jigs, I'd like to throw out this pattern as an idea (Rdoc rules, but this is not yet committed):
=begin The Jig (base class) provides abstract interface for jig implementations. The general pattern is that the base class provides class methods, that either: - locate the appropriate Jig instance and call the instance method on them - call the respective instance method on all jig's The exact pattern depends on the operation - some operations are 'broadcast' in nature, while some should only target a particular jig instance. =end Some examples: * Applying a proposal - should only be sent to the Jig that should handle that proposal. * Creating(e.g. when a node is discovered)/Deleting(e.g. user deletes) a node - should probably be a broadcast to all Jig's. Thoughts?
_______________________________________________ Crowbar mailing list Crowbar@dell.com https://lists.us.dell.com/mailman/listinfo/crowbar For more information: http://crowbar.github.com/