Actually Puppet is written in Ruby. Even more, there is ShadowPuppet gem (http://github.com/railsmachine/shadow_puppet/tree/master) which replaces the puppet's DSL with ruby classes and functions to directly manipulate Puppets manifests, so its all Ruby all the way down.