A very primitive version of switch manager in Ruby (refs #361).