PHP, Ruby, Node.js all have excellent tooling for making command line applications as well as websites. While none of them have focused much on having a GUI, projects do exist.
Ruby in particular is very widely used as a system automation language.
I thought Ruby is/was mostly known for the Rail framework.
I know that both Chef and Puppet are written in Ruby, but is there any particular reason why Ruby is better as configuration management/system automation language?